@font-face { font-family: Metropolis; src: url("../assets/fonts/Metropolis-Regular.otf") format("opentype"); font-weight: 400; font-display: swap; }
@font-face { font-family: Metropolis; src: url("../assets/fonts/Metropolis-Medium.otf") format("opentype"); font-weight: 500 600; font-display: swap; }
@font-face { font-family: Metropolis; src: url("../assets/fonts/Metropolis-Bold.otf") format("opentype"); font-weight: 700 900; font-display: swap; }

:root {
  --noche: #061521;
  --petroleo: #0b4663;
  --oro: #e5b457;
  --oro-2: #f6d58e;
  --rojo: #b8353a;
  --papel: #f4f3ef;
  --tinta: #0e1c27;
  --gris: #55646f;
  --linea: #e1e4e5;
  --radio: 22px;
  --sombra: 0 30px 60px -30px rgba(6, 21, 33, .4);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Metropolis, "Helvetica Neue", Arial, sans-serif; font-size: 16px; line-height: 1.65; color: var(--tinta); background: #fff; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.12; margin: 0 0 .6em; font-weight: 700; letter-spacing: -.025em; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6.6vw, 5rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: 1.15rem; letter-spacing: -.01em; }
p { margin: 0 0 1rem; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--oro); outline-offset: 3px; }

.contenedor { width: min(1200px, 100% - 40px); margin-inline: auto; }
.oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.saltar { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--oro); color: var(--noche); padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.saltar:focus { top: 12px; }
.icono { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.antetitulo { display: flex; align-items: center; gap: 12px; margin-bottom: 1rem; font-size: .76rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--rojo); }
.antetitulo::before { content: ""; width: 32px; height: 2px; background: currentColor; flex: none; }

/* Botones */
.boton { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 28px; border-radius: 999px; border: 1.5px solid transparent; font-weight: 700; font-size: .93rem; text-decoration: none; text-align: center; transition: transform .2s, background .2s; }
.boton:hover { transform: translateY(-2px); }
.boton--oro { background: linear-gradient(135deg, var(--oro-2), var(--oro)); color: var(--noche); box-shadow: 0 14px 30px -14px rgba(229, 180, 87, .8); }
.boton--linea { border-color: rgba(255,255,255,.45); color: #fff; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.boton--linea:hover { background: rgba(255,255,255,.12); }
.boton--chico { min-height: 42px; padding: 0 22px; font-size: .86rem; }
.acciones { display: flex; flex-wrap: wrap; gap: 12px; }

/* Cabecera */
.cabecera { position: fixed; inset: 0 0 auto; z-index: 50; color: #fff; background: linear-gradient(rgba(6,21,33,.75), transparent); transition: background .3s, box-shadow .3s; }
.cabecera.fija, .cabecera.abierta { background: rgba(6, 21, 33, .93); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 1px 0 rgba(255,255,255,.08); }
.cabecera__fila { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 20px; }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.logo__marca { width: 46px; height: 41px; }
.logo__texto { height: 36px; width: auto; }
.menu { display: flex; align-items: center; gap: 30px; font-size: .9rem; font-weight: 500; }
.menu > a:not(.boton) { text-decoration: none; opacity: .86; }
.menu > a:not(.boton):hover { opacity: 1; text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--oro); }
.menu-boton { display: none; width: 46px; height: 46px; border: 0; background: transparent; color: #fff; position: relative; }
.menu-boton__barras, .menu-boton__barras::before, .menu-boton__barras::after { content: ""; position: absolute; left: 12px; width: 22px; height: 2px; background: currentColor; transition: transform .25s, background .25s; }
.menu-boton__barras { top: 22px; }
.menu-boton__barras::before { left: 0; top: -7px; }
.menu-boton__barras::after { left: 0; top: 7px; }
.menu-boton[aria-expanded="true"] .menu-boton__barras { background: transparent; }
.menu-boton[aria-expanded="true"] .menu-boton__barras::before { transform: translateY(7px) rotate(45deg); }
.menu-boton[aria-expanded="true"] .menu-boton__barras::after { transform: translateY(-7px) rotate(-45deg); }

/* Portada */
.portada { position: relative; display: flex; align-items: center; min-height: max(640px, 92vh); max-height: 920px; padding: 120px 0 150px; color: #fff; background: var(--noche); overflow: hidden; isolation: isolate; }
.portada__foto { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 60% 40%; animation: acercar 18s ease-out both; }
.portada::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgba(5,18,29,.96) 0%, rgba(6,24,38,.86) 36%, rgba(8,38,58,.4) 66%, rgba(8,38,58,.15) 100%), linear-gradient(0deg, rgba(6,21,33,.9), transparent 45%); }
.portada__contenido > * { max-width: 620px; }
.portada .antetitulo { color: var(--oro); }
.portada h1 em { font-style: normal; background: linear-gradient(100deg, var(--oro-2), var(--oro) 70%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.portada .entrada { font-size: 1.12rem; color: #d3e0e7; margin-bottom: 2rem; max-width: 52ch; }
@keyframes acercar { from { transform: scale(1.1); } }

/* Accesos por categoría */
.accesos { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: -88px; }
.accesos a { position: relative; display: block; aspect-ratio: 4 / 3.4; border-radius: 18px; overflow: hidden; color: #fff; background: var(--noche); text-decoration: none; box-shadow: 0 24px 44px -20px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.16); transition: translate .3s; }
.accesos a:hover { translate: 0 -8px; }
.accesos img { width: 100%; height: 100%; object-fit: cover; transition: scale .5s; }
.accesos a:hover img { scale: 1.08; }
.accesos span { position: absolute; inset: auto 0 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 40px 16px 14px; font-weight: 700; font-size: .88rem; line-height: 1.25; background: linear-gradient(transparent, rgba(4,16,26,.95)); }
.accesos .icono { width: 18px; height: 18px; color: var(--oro); }

/* Secciones */
.seccion { padding: clamp(72px, 9vw, 120px) 0; }
.seccion--suave { background: var(--papel); }
.seccion--noche { color: #fff; background: radial-gradient(70% 60% at 90% 0%, #0f4f72 0%, transparent 60%), radial-gradient(50% 50% at 0% 100%, #0a3450 0%, transparent 70%), var(--noche); }
.seccion--noche .antetitulo { color: var(--oro); }
.encabezado { max-width: 740px; margin: 0 auto 56px; text-align: center; }
.encabezado .antetitulo { justify-content: center; }
.encabezado .antetitulo::after { content: ""; width: 32px; height: 2px; background: currentColor; }
.encabezado > p:last-child { font-size: 1.08rem; color: var(--gris); margin: 0; }
.seccion--noche .encabezado > p:last-child { color: #b9cdd8; }
.nota { margin: 32px 0 0; text-align: center; font-size: .76rem; opacity: .6; }

/* Tarjetas */
.rejilla { display: grid; gap: 26px; }
.rejilla--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rejilla--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.rejilla--6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.rejilla--6 > * { grid-column: span 2; }
.rejilla--6 > .ancha { grid-column: span 3; }
.tarjeta { display: flex; flex-direction: column; border-radius: var(--radio); overflow: hidden; background: #fff; color: var(--tinta); box-shadow: 0 0 0 1px var(--linea); transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .25s ease-out, box-shadow .3s; }
.tarjeta:hover { box-shadow: var(--sombra), 0 0 0 1px var(--linea); }
.seccion--noche .tarjeta { background: rgba(255,255,255,.055); color: #fff; box-shadow: 0 0 0 1px rgba(255,255,255,.12); }
.seccion--noche .tarjeta:hover { box-shadow: 0 34px 60px -28px #000, 0 0 0 1px rgba(229,180,87,.55); }
.tarjeta__foto { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #0a2436; cursor: zoom-in; }
.tarjeta__foto:focus-visible { outline-offset: -4px; }
.tarjeta__foto img { width: 100%; height: 100%; object-fit: cover; transition: scale .6s ease; }
.tarjeta:hover .tarjeta__foto img { scale: 1.07; }
.foto--toga-azul, .foto--toga-blanca, .foto--toga-dorada { object-position: 50% 12%; }
.rejilla--togas .tarjeta__foto { aspect-ratio: 3 / 4; }
.rejilla--togas .tarjeta--horizontal { grid-column: 1 / -1; flex-direction: row; }
.rejilla--togas .tarjeta--horizontal .tarjeta__foto { flex: 0 0 55%; aspect-ratio: 16 / 9; }
.rejilla--togas .tarjeta--horizontal .tarjeta__texto { justify-content: center; padding: 32px 40px; }
.tarjeta--horizontal .etiquetas { margin-top: 0; }
.tarjeta__lupa { position: absolute; right: 14px; bottom: 14px; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.94); color: var(--petroleo); opacity: 0; translate: 0 8px; transition: opacity .25s, translate .25s; }
.tarjeta:hover .tarjeta__lupa, .tarjeta__foto:focus-visible .tarjeta__lupa { opacity: 1; translate: 0 0; }
.tarjeta__texto { display: flex; flex-direction: column; flex: 1; padding: 24px 24px 26px; }
.tarjeta h3 { margin-bottom: 10px; }
.tarjeta p { font-size: .92rem; color: var(--gris); }
.seccion--noche .tarjeta p { color: #bdd0da; }
.rejilla--4 .tarjeta__texto { padding: 18px 18px 20px; }
.rejilla--4 h3 { font-size: 1.02rem; }
.rejilla--4 p { font-size: .86rem; }
.etiquetas { display: flex; flex-wrap: wrap; gap: 7px; margin-top: auto; }
.etiquetas li { padding: 4px 12px; border-radius: 99px; background: #e9f0f3; color: var(--petroleo); font-size: .72rem; font-weight: 700; }
.seccion--noche .etiquetas li { background: rgba(229,180,87,.16); color: var(--oro-2); }

/* Galería de fotos propias */
.galeria { columns: 3 260px; column-gap: 18px; }
.galeria li { break-inside: avoid; margin-bottom: 18px; }
.galeria img { width: 100%; border-radius: var(--radio); }

/* Visor de fotos */
.visor { width: min(1100px, 100% - 32px); max-width: none; max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: var(--radio); background: var(--noche); color: #fff; overflow: hidden; box-shadow: 0 40px 90px -20px #000; }
.visor::backdrop { background: rgba(2, 10, 17, .85); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.visor img { width: 100%; max-height: calc(100dvh - 100px); object-fit: contain; }
.visor p { margin: 0; padding: 16px 22px; font-weight: 700; text-align: center; }
.visor__cerrar { position: absolute; z-index: 1; top: 14px; right: 14px; display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 50%; background: rgba(255,255,255,.94); color: var(--noche); }

/* Contacto */
.contacto__panel { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); max-width: 1080px; margin-inline: auto; border-radius: 28px; overflow: hidden; background: linear-gradient(160deg, rgba(255,255,255,.09), rgba(255,255,255,.025)); box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 50px 90px -50px #000; }
.contacto__panel::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, transparent, var(--oro), var(--oro-2), var(--oro), transparent); }
.medio { display: flex; flex-direction: column; align-items: center; gap: 20px; padding: 48px 20px 34px; text-align: center; text-decoration: none; transition: background .3s; }
.medio + .medio { border-left: 1px solid rgba(255,255,255,.1); }
.medio:hover { background: rgba(255,255,255,.07); }
.medio:focus-visible { outline-offset: -5px; }
.medio__icono { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; color: var(--oro-2); background: rgba(229,180,87,.1); box-shadow: inset 0 0 0 1px rgba(229,180,87,.45); transition: background .3s, color .3s, scale .3s; }
.medio__icono .icono { width: 30px; height: 30px; }
.medio:hover .medio__icono { background: linear-gradient(135deg, var(--oro-2), var(--oro)); color: var(--noche); scale: 1.08; }
.medio--whatsapp .medio__icono { color: #52e08b; background: rgba(37,211,102,.12); box-shadow: inset 0 0 0 1px rgba(37,211,102,.5); }
.medio--whatsapp:hover .medio__icono { background: #1fa855; color: #fff; }
.medio__texto { display: grid; gap: 8px; min-width: 0; max-width: 100%; }
.medio__tipo { font-size: .72rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: #9fbac8; }
.medio__dato { font-size: clamp(.98rem, 1.6vw, 1.22rem); font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
.medio__flecha { width: 20px; height: 20px; margin-top: auto; color: var(--oro); opacity: .55; transition: opacity .25s, translate .25s; }
.medio:hover .medio__flecha { opacity: 1; translate: 5px 0; }
.contacto__extra { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 32px; margin-top: 28px; color: #b9cdd8; }
.contacto__extra:not(:has(li:not([hidden]))) { display: none; }
.contacto__extra li { display: flex; align-items: center; gap: 10px; }
.contacto__extra .icono { color: var(--oro); }

/* Pie */
.pie { background: #030d16; color: #9fb3bf; padding: 34px 0; font-size: .8rem; }
.pie__fila { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.pie p { margin: 0; }


/* Tarjeta con los dos números */
div.medio:hover { background: transparent; }
div.medio:hover .medio__icono { scale: none; background: rgba(37,211,102,.12); color: #52e08b; }
.medio__numeros { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; min-width: 0; }
.numero { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 20px; border-radius: 99px; font-size: clamp(.95rem, 1.4vw, 1.08rem); font-weight: 700; white-space: nowrap; text-decoration: none; background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); transition: background .25s, translate .25s; }
.numero:hover { translate: 0 -2px; background: rgba(255,255,255,.14); }
.numero .icono { width: 19px; height: 19px; color: var(--oro-2); }
.numero--whatsapp { background: #178a43; box-shadow: none; }
.numero--whatsapp:hover { background: #1fa855; }
.numero--whatsapp .icono { color: #fff; }

/* Formulario */
.formulario { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: 1080px; margin: 40px auto 0; padding: clamp(22px, 4vw, 44px); border-radius: 28px; background: #fff; color: var(--tinta); box-shadow: 0 50px 90px -50px #000; }
.formulario__titulo { grid-column: 1 / -1; margin-bottom: 4px; }
.formulario__titulo h3 { margin-bottom: 6px; font-size: 1.6rem; }
.formulario__titulo p { margin: 0; font-size: .9rem; color: var(--gris); }
.campo { display: grid; gap: 7px; min-width: 0; font-size: .82rem; font-weight: 600; }
.campo--ancho { grid-column: 1 / -1; }
.campo input, .campo textarea { width: 100%; min-width: 0; min-height: 50px; padding: 12px 15px; font: inherit; font-size: 1rem; font-weight: 400; color: inherit; border: 1.5px solid var(--linea); border-radius: 12px; background: #fbfbfa; transition: border-color .2s, box-shadow .2s; }
.campo textarea { resize: vertical; }
.campo input:focus, .campo textarea:focus { outline: 0; border-color: var(--petroleo); box-shadow: 0 0 0 4px rgba(11,70,99,.14); }
.campo input:user-invalid, .campo textarea:user-invalid { border-color: var(--rojo); }
.campo--trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.autorizacion { display: flex; align-items: flex-start; gap: 12px; font-size: .86rem; color: var(--gris); cursor: pointer; }
.autorizacion input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--petroleo); }
.formulario__acciones { display: flex; flex-wrap: wrap; gap: 12px; }
.formulario__acciones .boton { cursor: pointer; }
.formulario__acciones .boton:disabled { opacity: .6; cursor: wait; transform: none; }
.boton--verde { background: #178a43; color: #fff; }
.boton--verde:hover { background: #1fa855; }
.formulario__estado { margin: 0; padding: 14px 18px; border-radius: 12px; font-size: .9rem; font-weight: 600; background: #e8f5ed; color: #14663a; }
.formulario__estado.es-error { background: #fbecec; color: #8f242b; }
.formulario__estado:empty { display: none; }

/* Experiencia */
.experiencia { position: relative; overflow: hidden; }
.titular { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: end; gap: 28px clamp(32px, 6vw, 80px); margin-bottom: 56px; }
.titular__sello { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px; padding: 8px 18px 8px 8px; border-radius: 99px; background: var(--papel); box-shadow: inset 0 0 0 1px var(--linea); font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--petroleo); }
.titular__sello .icono { width: 34px; height: 34px; padding: 7px; border-radius: 50%; background: linear-gradient(135deg, var(--oro-2), var(--oro)); color: var(--noche); }
.titular h2 { margin: 0; font-size: clamp(2.3rem, 5.2vw, 4.1rem); line-height: 1.06; letter-spacing: -.035em; }
.titular h2 em { font-style: normal; white-space: nowrap; color: var(--petroleo); background: linear-gradient(transparent 68%, rgba(229,180,87,.5) 68%, rgba(246,213,142,.5) 92%, transparent 92%); }
.titular__texto { margin: 0 0 8px; padding-left: 24px; border-left: 3px solid var(--oro); font-size: 1.15rem; line-height: 1.7; color: var(--gris); }
.titular__texto strong { color: var(--tinta); }
.cifras { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.cifra { position: relative; padding: 42px 28px 34px; border-radius: var(--radio); overflow: hidden; text-align: center; color: #fff; background: radial-gradient(90% 100% at 100% 0%, #12597c 0%, transparent 65%), var(--noche); box-shadow: var(--sombra); }
.cifra::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--oro-2), var(--oro)); }
.cifra .cifra__numero { margin: 0 0 6px; font-size: clamp(3.6rem, 7vw, 5.4rem); font-weight: 700; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; color: var(--oro); }
.cifra .cifra__numero > span[aria-hidden] { font-size: .6em; vertical-align: .35em; margin-right: 2px; color: var(--oro-2); }
.cifra h3 { font-size: 1.15rem; margin-bottom: 8px; }
.cifra p { margin: 0; font-size: .9rem; color: #bdd0da; }
.pilares { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 24px; }
.pilares li { display: flex; align-items: flex-start; gap: 18px; padding: 26px; border-radius: var(--radio); background: var(--papel); }
.pilares .icono { width: 52px; height: 52px; padding: 12px; border-radius: 16px; background: #fff; color: var(--petroleo); box-shadow: 0 12px 24px -16px rgba(6,21,33,.5); }
.pilares h3 { margin-bottom: 6px; font-size: 1rem; }
.pilares p { margin: 0; font-size: .88rem; color: var(--gris); }

/* Asistente virtual */
.asistente { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.asistente__boton { position: relative; display: grid; place-items: center; width: 64px; height: 64px; border: 0; border-radius: 50%; background: linear-gradient(135deg, var(--oro-2), var(--oro)); color: var(--noche); box-shadow: 0 18px 36px -10px rgba(0,0,0,.55), 0 0 0 3px rgba(255,255,255,.35); transition: transform .2s; }
.asistente__boton:hover { transform: translateY(-3px) scale(1.04); }
.asistente__boton .icono { grid-area: 1 / 1; width: 32px; height: 32px; transition: opacity .2s, rotate .25s; }
.asistente__boton-cerrar, .asistente__boton[aria-expanded="true"] .asistente__boton-abrir { opacity: 0; rotate: -60deg; }
.asistente__boton[aria-expanded="true"] .asistente__boton-cerrar { opacity: 1; rotate: 0deg; }
.asistente__invitacion { display: flex; align-items: center; border-radius: 99px; background: #fff; color: var(--tinta); box-shadow: 0 18px 40px -14px rgba(0,0,0,.45), 0 0 0 1px var(--linea); animation: surgir .35s ease both; }
.asistente__invitacion button { border: 0; background: transparent; }
.asistente__invitacion-texto { padding: 13px 6px 13px 20px; font-weight: 700; font-size: .88rem; }
.asistente__invitacion-cerrar { display: grid; place-items: center; width: 40px; height: 40px; margin-right: 4px; color: var(--gris); }
.asistente__invitacion-cerrar .icono { width: 16px; height: 16px; }
.asistente__ventana { display: flex; flex-direction: column; width: min(390px, 100vw - 32px); height: min(620px, 100dvh - 120px); border-radius: 24px; overflow: hidden; background: var(--papel); color: var(--tinta); box-shadow: 0 40px 80px -24px rgba(0,0,0,.6), 0 0 0 1px rgba(6,21,33,.12); animation: surgir .3s ease both; }
.asistente__cabecera { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 18px; background: linear-gradient(120deg, #10587a, var(--noche)); color: #fff; }
.asistente__avatar { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.12); }
.asistente__avatar svg { width: 28px; height: 25px; }
.asistente__cabecera h2 { margin: 0; font-size: .95rem; letter-spacing: 0; }
.asistente__cabecera p { display: flex; align-items: center; gap: 7px; margin: 0; font-size: .74rem; color: #bdd6e2; }
.asistente__cabecera p::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #52e08b; }
.asistente__cerrar { display: grid; place-items: center; width: 40px; height: 40px; margin-left: auto; border: 0; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; }
.asistente__cerrar .icono { width: 18px; height: 18px; }
.asistente__charla { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 10px; padding: 18px 16px; overflow-y: auto; overscroll-behavior: contain; }
.mensaje { max-width: 86%; padding: 11px 15px; border-radius: 18px; font-size: .88rem; line-height: 1.55; white-space: pre-line; overflow-wrap: anywhere; animation: surgir .25s ease both; }
.mensaje--bot { align-self: flex-start; border-bottom-left-radius: 6px; background: #fff; box-shadow: 0 6px 16px -12px rgba(6,21,33,.5); }
.mensaje--yo { align-self: flex-end; border-bottom-right-radius: 6px; background: var(--petroleo); color: #fff; }
.mensaje a { display: inline-block; margin-top: 6px; font-weight: 700; color: var(--petroleo); }
.asistente__opciones { display: flex; flex-wrap: wrap; gap: 8px; max-height: 34%; padding: 4px 16px 12px; overflow-y: auto; flex: none; }
.asistente__opciones:empty { display: none; }
.asistente__opciones button { min-height: 36px; padding: 6px 14px; border-radius: 99px; border: 1.5px solid var(--petroleo); background: #fff; color: var(--petroleo); font-size: .8rem; font-weight: 700; transition: background .2s, color .2s; }
.asistente__opciones button:hover { background: var(--petroleo); color: #fff; }
.asistente__entrada { display: flex; gap: 8px; padding: 10px 12px; background: #fff; border-top: 1px solid var(--linea); }
.asistente__entrada input { flex: 1; min-width: 0; min-height: 44px; padding: 0 16px; font: inherit; font-size: 1rem; border: 1.5px solid var(--linea); border-radius: 99px; background: #fbfbfa; }
.asistente__entrada input:focus { outline: 0; border-color: var(--petroleo); box-shadow: 0 0 0 3px rgba(11,70,99,.15); }
.asistente__entrada button { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--noche); color: #fff; }
.asistente__entrada .icono { width: 20px; height: 20px; }
.asistente__whatsapp { flex: none; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; margin: 0 12px 12px; border-radius: 99px; background: #1b9c4d; color: #fff; font-weight: 700; font-size: .93rem; text-decoration: none; transition: background .2s; }
.asistente__whatsapp:hover { background-color: #157f3e; }
.asistente__whatsapp.destacar { animation: latir 1.1s ease 3; }
@keyframes surgir { from { opacity: 0; translate: 0 14px; } }
@keyframes latir { 50% { scale: 1.035; box-shadow: 0 0 0 8px rgba(27,156,77,.18); } }

/* Aparición al desplazar (solo si hay JavaScript) */
.con-js .aparecer { opacity: 0; translate: 0 28px; }
.con-js .aparecer.visto { opacity: 1; translate: 0 0; transition: opacity .7s ease, translate .7s ease, transform .25s ease-out, box-shadow .3s; }

/* Pantallas medianas */
@media (max-width: 1180px) and (min-width: 1041px) { .menu { gap: 20px; font-size: .85rem; } }
@media (max-width: 1040px) {
  .menu-boton { display: block; }
  .menu { position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 24px; background: rgba(6, 21, 33, .98); max-height: calc(100dvh - 76px); overflow-y: auto; }
  .menu.abierto { display: flex; }
  .menu > a:not(.boton) { padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,.1); font-size: 1rem; }
  .menu .boton { margin-top: 18px; min-height: 50px; }
  .rejilla--3, .rejilla--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pilares { grid-template-columns: minmax(0, 1fr); }
  .cifras { gap: 14px; }
  .titular { grid-template-columns: minmax(0, 1fr); }
  .cifra { padding: 32px 14px 26px; }
  .rejilla--6 > *, .rejilla--6 > .ancha { grid-column: span 3; }
  .rejilla--6 > :last-child:nth-child(odd) { grid-column: 2 / span 4; }
  .accesos { grid-template-columns: repeat(3, 1fr); }
}

/* Celulares */
@media (max-width: 640px) {
  .portada { min-height: 88vh; padding: 120px 0 130px; align-items: flex-end; }
  .portada__foto { object-position: 55% 0; height: 70%; }
  .portada::after { background: linear-gradient(0deg, var(--noche) 30%, rgba(6,21,33,.82) 55%, rgba(6,21,33,.12) 100%); }
  .accesos { display: flex; width: 100%; padding: 4px 20px 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 20px; scrollbar-width: none; margin-top: -76px; }
  .accesos a { flex: 0 0 46%; scroll-snap-align: start; }
  .rejilla--3, .rejilla--4, .rejilla--6 { grid-template-columns: minmax(0, 1fr); }
  .rejilla--6 > *, .rejilla--6 > .ancha, .rejilla--6 > :last-child:nth-child(odd) { grid-column: auto; }
  .rejilla--togas .tarjeta--horizontal { flex-direction: column; }
  .rejilla--togas .tarjeta--horizontal .tarjeta__foto { flex: none; aspect-ratio: 4 / 3; }
  .rejilla--togas .tarjeta--horizontal .tarjeta__texto { padding: 24px; }
  .portada .acciones .boton { flex: 1 1 100%; }
  .pie__fila { flex-direction: column; text-align: center; }
  .pie { padding-bottom: 100px; }
  .formulario { grid-template-columns: minmax(0, 1fr); }
  .formulario__acciones .boton { flex: 1 1 100%; }
  div.medio { flex-wrap: wrap; row-gap: 14px; }
  div.medio .medio__tipo { flex: 1; }
  div.medio .medio__numeros { flex: 1 1 100%; justify-content: stretch; }
  div.medio .numero { flex: 1 1 100%; justify-content: center; }
  .titular { grid-template-columns: minmax(0, 1fr); margin-bottom: 36px; }
  .titular__texto { margin: 0; padding-left: 18px; font-size: 1.02rem; }
  .cifras, .pilares { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .asistente { right: 14px; bottom: 14px; }
  .asistente__ventana { position: fixed; inset: auto 8px 8px; width: auto; height: min(680px, 100dvh - 16px); }
  .asistente.abierto .asistente__boton { display: none; }
  .contacto__panel { grid-auto-flow: row; }
  .medio { flex-direction: row; gap: 18px; padding: 24px 20px; text-align: left; }
  .medio + .medio { border-left: 0; border-top: 1px solid rgba(255,255,255,.1); }
  .medio__icono { flex: none; width: 56px; height: 56px; }
  .medio__icono .icono { width: 25px; height: 25px; }
  .medio__texto { flex: 1; gap: 4px; }
  .medio__flecha { flex: none; margin-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .con-js .aparecer { opacity: 1; translate: 0 0; }
}
