/* teofilonava.com · estilos
   Sin color-mix() ni :has() en lo esencial: Safari 15 y navegadores viejos deben verse bien. */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --tinta: #1d1d1f; --tinta2: #6e6e73; --tinta3: #86868b;
  --fondo: #ffffff; --gris: #f5f5f7; --linea: #d2d2d7; --linea2: #e8e8ed;
  --azul: #0071e3; --azul-h: #0077ed; --azul-claro: #2997ff;
  --verde: #1d8a3a; --verde-o: #30d158; --rojo: #d70015; --rojo-o: #ff453a;
  --negro: #000000; --carbon: #161617;
  --radio: 18px; --radio-g: 28px;
  --fuente: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ancho: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--fuente); font-size: 17px; line-height: 1.47; letter-spacing: -0.011em; color: var(--tinta);
  background: var(--fondo); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
img, svg, video, canvas { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--azul); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid rgba(0, 113, 227, .55); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tn-hp { position: absolute !important; left: -9999px !important; top: auto; width: 1px; height: 1px; overflow: hidden; }

.cont { width: 100%; max-width: var(--ancho); margin: 0 auto; padding: 0 22px; }
.cont--angosto { max-width: 760px; }
.cont--medio { max-width: 980px; }

/* ── navegación */
.nav { position: sticky; top: 0; z-index: 100; height: 52px; background: rgba(22, 22, 23, .82);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); color: #f5f5f7; }
.nav__in { height: 52px; display: flex; align-items: center; gap: 28px; }
.nav__logo { display: flex; align-items: center; gap: 9px; color: #f5f5f7; font-weight: 600; font-size: 16px; letter-spacing: -.02em; white-space: nowrap; }
.nav__logo:hover { text-decoration: none; opacity: .85; }
.nav__logo svg { width: 18px; height: 18px; }
.nav__links { display: flex; gap: 30px; margin: 0 auto; }
.nav__links a, .nav__der a, .nav__der button { color: #f5f5f7; opacity: .8; font-size: 14px; letter-spacing: -.01em; transition: opacity .2s; }
.nav__links a:hover, .nav__der a:hover, .nav__der button:hover, .nav__links a[aria-current] { opacity: 1; text-decoration: none; }
.nav__der { display: flex; align-items: center; gap: 18px; }
.nav__idioma { display: inline-flex; border: 1px solid rgba(255, 255, 255, .22); border-radius: 980px; overflow: hidden; font-size: 12px; }
.nav__idioma a, .nav__idioma span { padding: 3px 9px; font-size: 12px; font-weight: 500; letter-spacing: .02em; }
.nav__idioma span { background: #f5f5f7; color: #1d1d1f; }
.nav__cta { background: #f5f5f7; color: #1d1d1f !important; opacity: 1 !important; padding: 5px 13px; border-radius: 980px; font-weight: 500; }
.nav__cta:hover { background: #fff; }
.nav__avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.nav__menu { display: none; background: none; border: 0; padding: 8px; margin-left: auto; color: #f5f5f7; }
.nav__menu svg { width: 20px; height: 20px; }
.nav__forma { display: inline; }
.nav__forma button { background: none; border: 0; padding: 0; }

@media (max-width: 860px) {
  .nav__menu { display: block; }
  .nav__links, .nav__der { display: none; }
  .nav.abierta { height: auto; background: rgba(22, 22, 23, .98); }
  .nav.abierta .nav__in { flex-wrap: wrap; height: auto; min-height: 52px; padding-bottom: 26px; gap: 0; }
  .nav.abierta .nav__links, .nav.abierta .nav__der { display: flex; flex-direction: column; width: 100%; gap: 0; margin: 0; align-items: stretch; }
  .nav.abierta .nav__links a, .nav.abierta .nav__der > a, .nav.abierta .nav__forma button { font-size: 24px; font-weight: 600; padding: 12px 0; opacity: 1; letter-spacing: -.02em; text-align: left; width: 100%; }
  .nav.abierta .nav__cta { background: none; color: #f5f5f7 !important; padding: 12px 0; border-radius: 0; }
  .nav.abierta .nav__idioma { align-self: flex-start; margin: 16px 0 6px; }
  .nav.abierta .nav__idioma a, .nav.abierta .nav__idioma span { font-size: 14px; padding: 6px 14px; }
  .nav.abierta .nav__avatar { display: none; }
}

/* ── botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 980px; padding: 12px 24px;
  font-size: 17px; font-weight: 400; line-height: 1.2; background: var(--azul); color: #fff; transition: background .2s, transform .1s; text-align: center; }
.btn:hover { background: var(--azul-h); text-decoration: none; }
.btn:active { transform: scale(.98); }
.btn--chico { padding: 8px 16px; font-size: 14px; }
.btn--gris { background: #e8e8ed; color: var(--tinta); }
.btn--gris:hover { background: #dedee3; }
.btn--borde { background: transparent; color: var(--azul); box-shadow: inset 0 0 0 1px var(--azul); }
.btn--borde:hover { background: var(--azul); color: #fff; }
.btn--vidrio { background: rgba(255, 255, 255, .16); color: #fff; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.btn--vidrio:hover { background: rgba(255, 255, 255, .26); }
.btn--rojo { background: #fff0f0; color: var(--rojo); }
.btn--rojo:hover { background: #ffe0e0; }
.btn--ancho { width: 100%; }
.btn[disabled] { opacity: .5; cursor: default; }
.enlace { font-size: 19px; color: var(--azul); display: inline-flex; align-items: center; gap: 4px; }
.enlace::after { content: "›"; font-size: 1.2em; line-height: 1; transform: translateY(-1px); }
.oscura .enlace, .hero .enlace { color: var(--azul-claro); }

/* ── secciones y tipografía */
.sec { padding: 110px 0; }
.sec--gris { background: var(--gris); }
.oscura { background: var(--negro); color: #f5f5f7; }
.sec--chica { padding: 70px 0; }
.ceja { font-size: 15px; font-weight: 600; letter-spacing: .02em; color: var(--tinta3); text-transform: uppercase; margin-bottom: 14px; }
.oscura .ceja { color: #a1a1a6; }
.h1 { font-size: clamp(40px, 7.2vw, 88px); line-height: 1.04; font-weight: 600; letter-spacing: -.035em; }
.h2 { font-size: clamp(32px, 5vw, 56px); line-height: 1.07; font-weight: 600; letter-spacing: -.028em; }
.h3 { font-size: clamp(22px, 2.6vw, 28px); line-height: 1.16; font-weight: 600; letter-spacing: -.02em; }
.guia { font-size: clamp(19px, 2.2vw, 24px); line-height: 1.38; color: var(--tinta2); font-weight: 400; letter-spacing: -.015em; }
.oscura .guia { color: #a1a1a6; }
.centro { text-align: center; }
.cab { max-width: 760px; margin: 0 auto 64px; text-align: center; }
.cab .guia { margin-top: 18px; }
.cab--izq { margin-left: 0; text-align: left; }
.acciones { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; margin-top: 30px; }
.centro .acciones, .cab .acciones { justify-content: center; }
.degradado { background: linear-gradient(92deg, #7ee8a6 0%, #5ac8fa 45%, #0a84ff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }

.js .revela { opacity: 0; transform: translateY(26px); transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1); }
.js .revela.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .revela { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ── hero */
.hero { position: relative; background: #000; color: #f5f5f7; overflow: hidden; min-height: min(92vh, 900px); display: flex; flex-direction: column; }
.hero__fondo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 80% at 50% 0%, rgba(0, 0, 0, .25) 0%, rgba(0, 0, 0, .78) 62%, #000 100%); }
.hero__txt { position: relative; z-index: 2; text-align: center; padding: clamp(70px, 13vh, 150px) 22px 30px; max-width: 980px; margin: 0 auto; }
.hero__txt .guia { color: #c7c7cc; max-width: 640px; margin: 22px auto 0; }
.hero__ceja { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: #d1d1d6; border: 1px solid rgba(255, 255, 255, .2);
  padding: 6px 14px; border-radius: 980px; margin-bottom: 26px; background: rgba(255, 255, 255, .06); }
.hero__punto { width: 7px; height: 7px; border-radius: 50%; background: var(--verde-o); box-shadow: 0 0 0 4px rgba(48, 209, 88, .2); }
.hero__lienzo { position: relative; z-index: 1; width: 100%; height: clamp(180px, 34vh, 340px); margin-top: auto; }
.hero__nota { position: absolute; z-index: 3; right: 16px; bottom: 10px; font-size: 11px; color: rgba(255, 255, 255, .42); }

/* ── mosaico de mercados */
.mosaico { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.loseta { position: relative; border-radius: var(--radio-g); overflow: hidden; min-height: 440px; color: #fff; background: #111; grid-column: span 6; display: flex; align-items: flex-end; }
.loseta--7 { grid-column: span 7; } .loseta--5 { grid-column: span 5; }
.loseta img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.loseta:hover img { transform: scale(1.04); }
.loseta::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, .82) 100%); }
.loseta__txt { position: relative; z-index: 2; padding: 30px; }
.loseta__txt h3 { font-size: clamp(24px, 3vw, 34px); font-weight: 600; letter-spacing: -.025em; line-height: 1.1; }
.loseta__txt p { margin-top: 8px; font-size: 16px; color: rgba(255, 255, 255, .82); max-width: 420px; }
.loseta__tick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.loseta__tick span { font-size: 12px; font-weight: 600; letter-spacing: .04em; padding: 4px 9px; border-radius: 6px; background: rgba(255, 255, 255, .16); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
@media (max-width: 860px) { .loseta, .loseta--7, .loseta--5 { grid-column: span 12; min-height: 340px; } .sec { padding: 76px 0; } .cab { margin-bottom: 44px; } }

/* ── tres columnas */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.trio__c { background: #fff; border-radius: var(--radio-g); padding: 34px 30px; }
.sec:not(.sec--gris) .trio__c { background: var(--gris); }
.trio__c svg { width: 34px; height: 34px; color: var(--azul); margin-bottom: 18px; }
.trio__c h3 { font-size: 21px; font-weight: 600; letter-spacing: -.02em; margin-bottom: 8px; }
.trio__c p { color: var(--tinta2); font-size: 16px; }
@media (max-width: 860px) { .trio { grid-template-columns: 1fr; } }

/* ── dos columnas (libro, sobre mí) */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.duo__img { display: flex; justify-content: center; }
.duo__txt .guia { margin-top: 18px; }
.duo__txt ul { margin-top: 24px; display: grid; gap: 12px; }
.duo__txt li { position: relative; padding-left: 30px; color: var(--tinta); }
.oscura .duo__txt li { color: #f5f5f7; }
.duo__txt li::before { content: ""; position: absolute; left: 0; top: 5px; width: 18px; height: 18px; border-radius: 50%; background: var(--azul) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.6L13 6.6' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat; }
.libro__img { width: min(360px, 78%); filter: drop-shadow(0 34px 44px rgba(0, 0, 0, .28)); transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.libro__img:hover { transform: translateY(-8px) rotate(-1.5deg); }
.retrato { width: 100%; max-width: 520px; -webkit-mask-image: linear-gradient(180deg, #000 78%, rgba(0, 0, 0, 0) 99%); mask-image: linear-gradient(180deg, #000 78%, rgba(0, 0, 0, 0) 99%); }
@media (max-width: 860px) { .duo { grid-template-columns: 1fr; gap: 40px; } .duo--inv .duo__img { order: -1; } }

/* ── operaciones */
.cifras { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 26px; }
.cifra { background: #fff; border-radius: var(--radio); padding: 22px; }
.sec:not(.sec--gris) .cifra { background: var(--gris); }
.cifra__n { font-size: clamp(26px, 3.4vw, 38px); font-weight: 600; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.cifra__e { font-size: 13px; color: var(--tinta2); margin-top: 4px; }
.pos { color: var(--verde); } .neg { color: var(--rojo); }
.oscura .pos { color: var(--verde-o); } .oscura .neg { color: var(--rojo-o); }
@media (max-width: 720px) { .cifras { grid-template-columns: repeat(2, 1fr); } }

.ops { background: #fff; border-radius: var(--radio-g); overflow: hidden; }
.sec:not(.sec--gris) .ops { background: var(--gris); }
.op { display: grid; grid-template-columns: 96px 1fr auto; gap: 18px; align-items: center; padding: 18px 24px; border-top: 1px solid var(--linea2); }
.op:first-child { border-top: 0; }
.op__fecha { font-size: 13px; color: var(--tinta2); line-height: 1.3; font-variant-numeric: tabular-nums; }
.op__inst { font-weight: 600; font-size: 18px; letter-spacing: -.02em; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.op__det { font-size: 14px; color: var(--tinta2); margin-top: 2px; font-variant-numeric: tabular-nums; }
.op__nota { font-size: 14px; color: var(--tinta); margin-top: 6px; max-width: 640px; }
.op__res { font-size: 19px; font-weight: 600; letter-spacing: -.02em; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.op__res small { display: block; font-size: 12px; font-weight: 400; color: var(--tinta2); }
.op__links { display: flex; gap: 14px; margin-top: 8px; font-size: 14px; }
.chapa { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; background: #e8e8ed; color: var(--tinta2); }
.chapa--largo { background: #e3f5e8; color: var(--verde); } .chapa--corto { background: #fdecec; color: var(--rojo); }
.chapa--sim { background: #fff4d6; color: #8a5a00; } .chapa--azul { background: #e5f1fd; color: var(--azul); }
@media (max-width: 640px) { .op { grid-template-columns: 1fr auto; padding: 16px 18px; } .op__fecha { grid-column: 1 / -1; } }
.filtros { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 22px; }
.filtros select { height: 40px; border-radius: 980px; border: 1px solid var(--linea); background: #fff; padding: 0 34px 0 16px; font-size: 15px; -webkit-appearance: none; appearance: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%236e6e73' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") right 14px center/11px no-repeat; }
.vacio { text-align: center; padding: 64px 24px; background: #fff; border-radius: var(--radio-g); }
.sec:not(.sec--gris) .vacio { background: var(--gris); }
.vacio svg { width: 44px; height: 44px; color: var(--tinta3); margin: 0 auto 16px; }
.vacio p { color: var(--tinta2); max-width: 520px; margin: 8px auto 0; }
.nota-legal { font-size: 12px; line-height: 1.5; color: var(--tinta3); margin-top: 22px; }
.nota-legal a { color: inherit; text-decoration: underline; }

/* ── comunidad: tarjetas */
.pestanas { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; align-items: center; }
.pestana { padding: 8px 16px; border-radius: 980px; background: #e8e8ed; color: var(--tinta); font-size: 15px; }
.pestana:hover { text-decoration: none; background: #dedee3; }
.pestana[aria-current] { background: var(--tinta); color: #fff; }
.pestanas__der { margin-left: auto; }
.rejilla { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) { .rejilla { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
@media (max-width: 560px) { .rejilla { grid-template-columns: 1fr; } }
.tarjeta { background: #fff; border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 10px 30px rgba(0, 0, 0, .06); transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s; }
.tarjeta:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(0, 0, 0, .05), 0 18px 44px rgba(0, 0, 0, .11); }
.tarjeta__img { position: relative; display: block; aspect-ratio: 4 / 3; background: #e8e8ed; overflow: hidden; }
.tarjeta__img img { width: 100%; height: 100%; object-fit: cover; }
.tarjeta__multi { position: absolute; top: 12px; right: 12px; width: 22px; height: 22px; color: #fff; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .5)); }
.tarjeta__cat { position: absolute; left: 12px; top: 12px; }
.tarjeta__cuerpo { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.tarjeta__tit { font-size: 18px; font-weight: 600; line-height: 1.25; letter-spacing: -.02em; color: var(--tinta); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tarjeta__tit:hover { text-decoration: none; color: var(--azul); }
.tarjeta__pie { display: flex; align-items: center; gap: 10px; margin-top: auto; font-size: 13px; color: var(--tinta2); }
.autor { display: inline-flex; align-items: center; gap: 8px; color: var(--tinta); font-weight: 500; font-size: 14px; min-width: 0; }
.autor span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.autor:hover { text-decoration: none; }
.avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; background: #d2d2d7; flex: none; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; color: #fff; text-transform: uppercase; }
.avatar--g { width: 44px; height: 44px; font-size: 16px; }
.avatar--xl { width: 112px; height: 112px; font-size: 40px; }
.cuenta-mg { margin-left: auto; display: inline-flex; gap: 12px; align-items: center; font-variant-numeric: tabular-nums; }
.cuenta-mg span { display: inline-flex; gap: 4px; align-items: center; }
.cuenta-mg svg { width: 15px; height: 15px; }
.mas { display: flex; justify-content: center; gap: 12px; margin-top: 44px; }

/* ── publicación */
.pub { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr); background: #fff; border-radius: var(--radio-g); overflow: hidden; box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 12px 40px rgba(0, 0, 0, .08); }
.pub__medios { background: #000; position: relative; min-height: 320px; display: flex; align-items: center; }
.carrusel { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; width: 100%; }
.carrusel::-webkit-scrollbar { display: none; }
.carrusel img { flex: 0 0 100%; width: 100%; max-height: 78vh; object-fit: contain; scroll-snap-align: center; }
.carrusel__n { position: absolute; top: 14px; right: 14px; background: rgba(0, 0, 0, .6); color: #fff; font-size: 12px; padding: 4px 10px; border-radius: 980px; }
.pub__lado { display: flex; flex-direction: column; min-width: 0; max-height: 78vh; }
.pub__cab { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--linea2); }
.pub__cab .autor { font-size: 15px; flex: 1; }
.pub__cab small { display: block; font-weight: 400; color: var(--tinta2); font-size: 13px; }
.pub__scroll { overflow-y: auto; padding: 18px; flex: 1; }
.pub__texto { font-size: 16px; line-height: 1.5; overflow-wrap: anywhere; }
.pub__texto h1 { font-size: 22px; line-height: 1.2; letter-spacing: -.02em; margin-bottom: 10px; font-weight: 600; }
.pub__meta { font-size: 13px; color: var(--tinta2); margin-top: 12px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.pub__acc { display: flex; align-items: center; gap: 16px; padding: 12px 18px; border-top: 1px solid var(--linea2); }
.icobtn { background: none; border: 0; padding: 4px; display: inline-flex; align-items: center; gap: 6px; color: var(--tinta); font-size: 15px; font-variant-numeric: tabular-nums; }
.icobtn svg { width: 24px; height: 24px; transition: transform .2s; }
.icobtn:hover svg { transform: scale(1.1); }
.icobtn.activo { color: #ff2d55; }
.icobtn.activo svg { fill: #ff2d55; }
.coment { display: flex; gap: 10px; margin-top: 18px; }
.coment__c { min-width: 0; flex: 1; font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; }
.coment__c b { font-weight: 600; }
.coment__c b a { color: var(--tinta); }
.coment__m { font-size: 12px; color: var(--tinta2); margin-top: 3px; display: flex; gap: 12px; align-items: center; }
.coment__m button { background: none; border: 0; padding: 0; font-size: 12px; color: var(--tinta2); }
.coment__m button:hover { color: var(--rojo); }
.coment--rev { opacity: .6; }
.pub__form { padding: 12px 18px 16px; border-top: 1px solid var(--linea2); }
.pub__form form { display: flex; gap: 10px; align-items: flex-end; }
.pub__form textarea { flex: 1; min-height: 44px; max-height: 140px; resize: none; border: 1px solid var(--linea); border-radius: 22px; padding: 10px 16px; font-size: 15px; background: #fff; }
.pub__form textarea:focus { outline: none; border-color: var(--azul); box-shadow: 0 0 0 4px rgba(0, 113, 227, .16); }
@media (max-width: 900px) { .pub { grid-template-columns: 1fr; } .pub__lado { max-height: none; } .pub__scroll { overflow: visible; } }

.articulo { max-width: 720px; margin: 0 auto; }
.articulo__cab { text-align: center; margin-bottom: 36px; }
.articulo__cab h1 { font-size: clamp(30px, 5vw, 48px); line-height: 1.1; font-weight: 600; letter-spacing: -.03em; margin: 14px 0 18px; }
.articulo__port { border-radius: var(--radio-g); overflow: hidden; margin: 0 auto 40px; max-width: 980px; }
.articulo__port img { width: 100%; max-height: 560px; object-fit: cover; }
.prosa { font-size: 19px; line-height: 1.62; letter-spacing: -.012em; overflow-wrap: anywhere; }
.prosa > * + * { margin-top: 1.05em; }
.prosa h2 { font-size: 30px; line-height: 1.15; letter-spacing: -.025em; margin-top: 1.7em; font-weight: 600; }
.prosa h3 { font-size: 23px; line-height: 1.2; letter-spacing: -.02em; margin-top: 1.5em; font-weight: 600; }
.prosa h4 { font-size: 19px; font-weight: 600; margin-top: 1.4em; }
.prosa ul, .prosa ol { padding-left: 1.3em; } .prosa ul { list-style: disc; } .prosa ol { list-style: decimal; }
.prosa li + li { margin-top: .35em; }
.prosa img { border-radius: 14px; margin: 1.6em auto; height: auto; }
.prosa blockquote { border-left: 3px solid var(--tinta); padding-left: 20px; font-size: 22px; line-height: 1.4; letter-spacing: -.02em; }
.prosa iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 14px; }
.prosa table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.prosa th, .prosa td { border: 1px solid var(--linea); padding: 8px 10px; text-align: left; }
.prosa pre { background: var(--gris); padding: 16px; border-radius: 12px; overflow-x: auto; font-size: 14px; }
.prosa hr { border: 0; border-top: 1px solid var(--linea); margin: 2em 0; }
.caja { background: #fff; border-radius: var(--radio-g); padding: 26px; box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 10px 30px rgba(0, 0, 0, .06); }
.caja + .caja { margin-top: 22px; }

/* ── perfil */
.perfil { display: flex; gap: 34px; align-items: center; margin-bottom: 44px; }
.perfil h1 { font-size: 30px; font-weight: 600; letter-spacing: -.025em; line-height: 1.15; }
.perfil__u { color: var(--tinta2); font-size: 16px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.perfil__u img { width: 20px; height: 15px; border-radius: 2px; }
.perfil__c { display: flex; gap: 26px; margin: 14px 0; font-size: 16px; }
.perfil__c b { font-weight: 600; font-variant-numeric: tabular-nums; }
.perfil__bio { max-width: 560px; overflow-wrap: anywhere; }
.perfil__acc { margin-top: 16px; display: flex; gap: 10px; flex-wrap: wrap; }
.mallita { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.mallita a { position: relative; aspect-ratio: 1; overflow: hidden; background: #e8e8ed; border-radius: 6px; display: block; }
.mallita img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.mallita a:hover img { transform: scale(1.05); }
.mallita__ov { position: absolute; inset: 0; background: rgba(0, 0, 0, .42); color: #fff; display: flex; gap: 18px; align-items: center; justify-content: center; opacity: 0; transition: opacity .2s; font-weight: 600; font-size: 15px; }
.mallita a:hover .mallita__ov { opacity: 1; }
.mallita__ov span { display: inline-flex; gap: 5px; align-items: center; } .mallita__ov svg { width: 18px; height: 18px; fill: #fff; }
@media (max-width: 640px) { .perfil { flex-direction: column; align-items: flex-start; gap: 18px; } .mallita { gap: 3px; } .mallita a { border-radius: 0; } }

/* ── formularios */
.forma { display: grid; gap: 20px; }
.fila2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .fila2 { grid-template-columns: 1fr; } }
.campo { display: grid; gap: 7px; min-width: 0; }
.campo > label, .campo > .etq { font-size: 14px; font-weight: 500; color: var(--tinta); }
.campo small { font-size: 13px; color: var(--tinta2); line-height: 1.35; }
.inp, .campo textarea, .campo select { width: 100%; min-height: 52px; border: 1px solid var(--linea); border-radius: 12px; padding: 13px 16px; background: #fff; font-size: 17px; transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none; }
.campo textarea { min-height: 150px; resize: vertical; line-height: 1.45; }
.campo select { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%236e6e73' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") right 16px center/12px no-repeat; padding-right: 40px; }
.inp:focus, .campo textarea:focus, .campo select:focus, .sel__btn:focus { outline: none; border-color: var(--azul); box-shadow: 0 0 0 4px rgba(0, 113, 227, .16); }
.inp::placeholder, .campo textarea::placeholder { color: #a1a1a6; }
.campo.mal .inp, .campo.mal textarea, .campo.mal select, .campo.mal .sel__btn, .campo.mal .seg { border-color: var(--rojo); }
.campo__err { font-size: 13px; color: var(--rojo); display: flex; gap: 6px; align-items: flex-start; line-height: 1.35; }
.campo__err::before { content: "!"; flex: none; width: 15px; height: 15px; border-radius: 50%; background: var(--rojo); color: #fff; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; margin-top: 1px; }
.cuenta-c { font-size: 12px; color: var(--tinta3); text-align: right; font-variant-numeric: tabular-nums; }
.alerta { border-radius: 14px; padding: 14px 18px; font-size: 15px; line-height: 1.4; display: flex; gap: 10px; align-items: flex-start; }
.alerta--mal { background: #fff0f0; color: #a3000f; }
.alerta--bien { background: #e9f8ee; color: #14602a; }
.alerta--info { background: #eaf3fe; color: #004a99; }
.alerta svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }

.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; background: #e8e8ed; border-radius: 12px; padding: 4px; border: 1px solid transparent; }
.seg label { position: relative; text-align: center; }
.seg input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; margin: 0; }
.seg span { display: block; padding: 11px 8px; border-radius: 9px; font-size: 15px; font-weight: 500; color: var(--tinta); transition: background .15s, box-shadow .15s; line-height: 1.2; }
.seg input:checked + span { background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .14); }
.seg input:focus-visible + span { box-shadow: 0 0 0 3px rgba(0, 113, 227, .5); }
.seg--4 { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 720px) { .seg--4 { grid-template-columns: repeat(2, 1fr); } }

.marca { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.45; color: var(--tinta2); cursor: pointer; }
.marca input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--azul); }
.marca a { text-decoration: underline; }

/* selector de país con banderas */
.sel { position: relative; }
.sel__btn { width: 100%; min-height: 52px; border: 1px solid var(--linea); border-radius: 12px; background: #fff; padding: 0 40px 0 14px; display: flex; align-items: center; gap: 10px; font-size: 17px; text-align: left;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%236e6e73' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") right 16px center/12px no-repeat; }
.sel__btn img, .sel__op img { width: 24px; height: 18px; border-radius: 3px; flex: none; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); object-fit: cover; }
.sel__btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sel__btn .sel__vac { color: #a1a1a6; }
.sel__pop { position: absolute; z-index: 60; left: 0; right: 0; top: calc(100% + 6px); background: #fff; border-radius: 16px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08), 0 18px 50px rgba(0, 0, 0, .22); overflow: hidden; min-width: 280px; }
.sel__bus { padding: 10px; border-bottom: 1px solid var(--linea2); }
.sel__bus input { width: 100%; height: 40px; border: 0; border-radius: 10px; background: #f0f0f3; padding: 0 14px 0 38px; font-size: 16px;
  background: #f0f0f3 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='8.5' cy='8.5' r='5.5' fill='none' stroke='%236e6e73' stroke-width='1.7'/%3E%3Cpath d='M13 13l4.5 4.5' stroke='%236e6e73' stroke-width='1.7' stroke-linecap='round'/%3E%3C/svg%3E") 12px center/17px no-repeat; }
.sel__bus input:focus { outline: none; box-shadow: 0 0 0 3px rgba(0, 113, 227, .3); }
.sel__lista { max-height: 300px; overflow-y: auto; padding: 6px; overscroll-behavior: contain; }
.sel__op { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; font-size: 16px; cursor: pointer; }
.sel__op em { margin-left: auto; font-style: normal; color: var(--tinta2); font-variant-numeric: tabular-nums; font-size: 15px; }
.sel__op.act, .sel__op:hover { background: #f0f0f3; }
.sel__op[aria-selected="true"] { background: #e5f1fd; }
.sel__sep { height: 1px; background: var(--linea2); margin: 6px 8px; }
.sel__nada { padding: 18px; text-align: center; color: var(--tinta2); font-size: 15px; }
.tel { display: grid; grid-template-columns: minmax(150px, 190px) 1fr; gap: 10px; }
.tel .sel__pop { right: auto; width: min(360px, 88vw); }
@media (max-width: 480px) { .tel { grid-template-columns: 132px 1fr; } }

/* ── contacto */
.contacto { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 60px; align-items: start; }
.contacto__lado { position: sticky; top: 92px; }
.contacto__lado .h2 { font-size: clamp(34px, 4.6vw, 52px); }
.contacto__pts { margin-top: 34px; display: grid; gap: 20px; }
.contacto__pts li { display: flex; gap: 14px; align-items: flex-start; font-size: 16px; color: var(--tinta2); }
.contacto__pts svg { width: 26px; height: 26px; color: var(--tinta); flex: none; }
.contacto__pts b { display: block; color: var(--tinta); font-weight: 600; }
.forma-caja { background: #fff; border-radius: var(--radio-g); padding: 36px; box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 14px 44px rgba(0, 0, 0, .08); scroll-margin-top: 80px; }
.exito { text-align: center; padding: 30px 10px; }
.exito svg { width: 64px; height: 64px; color: var(--verde); margin: 0 auto 18px; }
@media (max-width: 900px) { .contacto { grid-template-columns: 1fr; gap: 36px; } .contacto__lado { position: static; } .forma-caja { padding: 24px 20px; } }

/* ── páginas de acceso */
.acceso { min-height: calc(100vh - 52px); background: var(--gris); display: flex; align-items: center; justify-content: center; padding: 56px 20px; }
.acceso__caja { width: 100%; max-width: 460px; background: #fff; border-radius: var(--radio-g); padding: 40px 36px; box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 14px 44px rgba(0, 0, 0, .08); }
.acceso__caja h1 { font-size: 30px; font-weight: 600; letter-spacing: -.028em; line-height: 1.12; margin-bottom: 8px; }
.acceso__caja > p { color: var(--tinta2); margin-bottom: 26px; font-size: 16px; }
.acceso__pie { margin-top: 22px; font-size: 15px; color: var(--tinta2); text-align: center; display: grid; gap: 8px; }
.acceso__ico { width: 56px; height: 56px; color: var(--azul); margin-bottom: 18px; }
@media (max-width: 480px) { .acceso__caja { padding: 30px 22px; } }

/* ── publicar */
.suelta { border: 2px dashed var(--linea); border-radius: 18px; padding: 34px 20px; text-align: center; background: #fafafc; transition: border-color .15s, background .15s; cursor: pointer; display: block; }
.suelta:hover, .suelta.sobre { border-color: var(--azul); background: #f2f8ff; }
.suelta svg { width: 38px; height: 38px; margin: 0 auto 10px; color: var(--tinta3); }
.suelta b { display: block; font-weight: 600; }
.suelta small { color: var(--tinta2); font-size: 13px; }
.suelta input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.previas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 12px; }
.previas img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; }
.editor__barra { display: flex; flex-wrap: wrap; gap: 4px; padding: 8px; background: #f0f0f3; border: 1px solid var(--linea); border-bottom: 0; border-radius: 12px 12px 0 0; }
.editor__barra button { min-width: 36px; height: 34px; border: 0; background: transparent; border-radius: 8px; font-size: 14px; font-weight: 600; padding: 0 9px; }
.editor__barra button:hover { background: #fff; }
.editor__area { min-height: 380px; border: 1px solid var(--linea); border-radius: 0 0 12px 12px; padding: 20px; background: #fff; overflow-wrap: anywhere; }
.editor__area:focus { outline: none; border-color: var(--azul); box-shadow: 0 0 0 4px rgba(0, 113, 227, .16); }

/* ── legales */
.legal h1 { font-size: clamp(32px, 5vw, 48px); line-height: 1.08; letter-spacing: -.03em; font-weight: 600; }
.legal__f { color: var(--tinta2); margin: 12px 0 40px; font-size: 15px; }
.legal .prosa { font-size: 17px; line-height: 1.6; }
.legal .prosa h2 { font-size: 24px; }
.legal .prosa h3 { font-size: 19px; }
.legal__dest { background: var(--gris); border-radius: 16px; padding: 22px 24px; font-size: 16px; }
.legal__idx { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }

/* ── pie */
.pie { background: var(--gris); color: var(--tinta2); font-size: 12px; line-height: 1.5; padding: 44px 0 34px; }
.pie a { color: #424245; }
.pie__cols { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 30px; padding-bottom: 28px; border-bottom: 1px solid var(--linea); }
.pie__cols h4 { font-size: 12px; font-weight: 600; color: var(--tinta); margin-bottom: 10px; }
.pie__cols li + li { margin-top: 8px; }
.pie__marca { font-size: 17px; font-weight: 600; color: var(--tinta); letter-spacing: -.02em; margin-bottom: 8px; }
.pie__redes { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.pie__redes a { width: 36px; height: 36px; border-radius: 50%; background: #e3e3e8; display: inline-flex; align-items: center; justify-content: center; color: #1d1d1f; transition: background .2s, color .2s; }
.pie__redes a:hover { background: #1d1d1f; color: #fff; }
.pie__redes svg { width: 17px; height: 17px; }
.pie__aviso { padding: 22px 0; border-bottom: 1px solid var(--linea); font-size: 11px; line-height: 1.55; color: #6e6e73; }
.pie__aviso p + p { margin-top: 8px; }
.pie__aviso strong { color: #424245; font-weight: 600; }
.pie__fin { display: flex; flex-wrap: wrap; gap: 8px 22px; padding-top: 18px; align-items: center; }
.pie__fin span { margin-right: auto; }
@media (max-width: 760px) { .pie__cols { grid-template-columns: 1fr 1fr; } .pie__cols > div:first-child { grid-column: 1 / -1; } }

/* ── panel */
.panel { display: grid; grid-template-columns: 220px 1fr; min-height: calc(100vh - 52px); background: var(--gris); }
.panel__nav { background: #fff; border-right: 1px solid var(--linea2); padding: 26px 14px; }
.panel__nav a { display: flex; justify-content: space-between; padding: 9px 12px; border-radius: 10px; color: var(--tinta); font-size: 15px; }
.panel__nav a:hover { background: var(--gris); text-decoration: none; }
.panel__nav a[aria-current] { background: var(--tinta); color: #fff; }
.panel__cuerpo { padding: 34px; min-width: 0; }
.panel__cuerpo h1 { font-size: 30px; font-weight: 600; letter-spacing: -.028em; margin-bottom: 22px; }
.tabla { width: 100%; border-collapse: collapse; background: #fff; border-radius: 16px; overflow: hidden; font-size: 14px; }
.tabla th { text-align: left; font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--tinta2); padding: 12px 14px; background: #fafafc; }
.tabla td { padding: 12px 14px; border-top: 1px solid var(--linea2); vertical-align: top; overflow-wrap: anywhere; }
.tabla img { width: 64px; min-width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }
.tabla form { display: inline; }
.tabla .acc { display: flex; flex-wrap: wrap; gap: 6px; }
.tabla-envuelve { overflow-x: auto; border-radius: 16px; }
.mini { border: 0; border-radius: 8px; padding: 6px 10px; font-size: 13px; background: #e8e8ed; color: var(--tinta); }
.mini:hover { background: #dedee3; }
.mini--azul { background: var(--azul); color: #fff; } .mini--azul:hover { background: var(--azul-h); }
.mini--rojo { background: #fff0f0; color: var(--rojo); } .mini--rojo:hover { background: #ffdcdc; }
.msj { background: #fff; border-radius: 16px; padding: 20px 22px; margin-bottom: 14px; }
.msj__cab { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: baseline; margin-bottom: 8px; }
.msj__cab b { font-size: 17px; }
.msj__dat { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.msj__txt { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; margin: 12px 0; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 26px; }
.kpi { background: #fff; border-radius: 16px; padding: 20px; color: var(--tinta); display: block; }
.kpi:hover { text-decoration: none; box-shadow: 0 6px 20px rgba(0, 0, 0, .08); }
.kpi b { font-size: 34px; font-weight: 600; letter-spacing: -.03em; display: block; line-height: 1.1; }
.kpi span { font-size: 13px; color: var(--tinta2); }
@media (max-width: 860px) { .panel { grid-template-columns: 1fr; } .panel__nav { display: flex; overflow-x: auto; gap: 4px; padding: 10px; border-right: 0; border-bottom: 1px solid var(--linea2); } .panel__nav a { white-space: nowrap; } .panel__cuerpo { padding: 22px 16px; } .kpis { grid-template-columns: 1fr 1fr; } }

/* ── varios */
.banda { background: linear-gradient(135deg, #0b0b0d 0%, #1b1f2a 100%); color: #f5f5f7; border-radius: var(--radio-g); padding: clamp(40px, 7vw, 84px) clamp(24px, 6vw, 80px); text-align: center; }
.banda .guia { color: #a1a1a6; margin: 16px auto 0; max-width: 560px; }
.cinta { display: flex; gap: 34px; overflow: hidden; white-space: nowrap; padding: 16px 0; border-top: 1px solid rgba(255, 255, 255, .12); border-bottom: 1px solid rgba(255, 255, 255, .12); font-size: 13px; letter-spacing: .06em; color: #a1a1a6; font-weight: 600; }
.cinta div { display: flex; gap: 34px; animation: cinta 46s linear infinite; }
@keyframes cinta { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .cinta div { animation: none; } }
.luz { position: fixed; inset: 0; background: rgba(0, 0, 0, .9); z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; cursor: zoom-out; }
.luz img { max-width: 100%; max-height: 100%; border-radius: 10px; }
