/* Dynsenet 2026 — una sola hoja, sin frameworks. Celular primero. */
:root {
  --tinta: #0f1b2d;        /* azul noche: fondos oscuros y texto */
  --tinta-2: #1d2d44;
  --texto: #2a3442;
  --suave: #5a6574;        /* texto secundario: 5,9:1 sobre blanco */
  --verde: #91da32;        /* verde de marca: sólo sobre fondo oscuro o como relleno */
  --verde-osc: #2e6b12;    /* verde para texto sobre blanco: 6,6:1 */
  --gris: #f3f5f7;
  --borde: #dde2e8;
  --radio: 12px;
  --ancho: 1120px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--texto);
  line-height: 1.6;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-size: 1.0625rem; background: #fff; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { color: var(--tinta); line-height: 1.2; margin: 0 0 .5em; text-wrap: balance; }
h2 { font-size: clamp(1.6rem, 4vw, 2.25rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
a { color: var(--verde-osc); }
:focus-visible { outline: 3px solid var(--verde); outline-offset: 3px; border-radius: 4px; }

.sprite { display: none; }
.icono { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.contenedor { width: min(100% - 2.5rem, var(--ancho)); margin-inline: auto; }

.saltar { position: absolute; left: 1rem; top: -4rem; background: var(--verde); color: var(--tinta); padding: .6rem 1rem; z-index: 10; font-weight: 600; }
.saltar:focus { top: 1rem; }

/* Botones */
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .7rem 1.4rem; border: 2px solid var(--verde); border-radius: 999px;
  background: var(--verde); color: var(--tinta); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
}
.boton:hover { background: #a6e852; border-color: #a6e852; }
.boton--borde { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.boton--borde:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.boton--chico { min-height: 40px; padding: .4rem 1.1rem; font-size: .95rem; }

/* Cabecera */
.cabecera { position: sticky; top: 0; z-index: 5; background: rgba(15,27,45,.96); backdrop-filter: blur(6px); }
.cabecera__fila { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.marca .logo { width: 150px; height: auto; display: block; }
.helice { transform-box: view-box; transform-origin: 233.48px 71.58px; animation: helice-gira 1.6s cubic-bezier(.2,.7,.2,1) .3s 1; }
@keyframes helice-gira { from { transform: rotate(0); } to { transform: rotate(720deg); } }
@media (prefers-reduced-motion: reduce) { .helice { animation: none !important; } }
.menu { display: none; list-style: none; margin: 0; padding: 0; gap: 1.75rem; }
.menu a { color: #dfe6ee; text-decoration: none; font-weight: 500; padding: .5rem 0; }
.menu a:hover { color: var(--verde); }
@media (min-width: 760px) { .menu { display: flex; } .marca .logo { width: 168px; } }

/* Hero */
.hero { background: radial-gradient(circle at 85% 20%, #1f3a5c 0, transparent 55%), var(--tinta); color: #d5dde7; padding: 3rem 0 3.5rem; }
.hero h1 { color: #fff; font-size: clamp(2rem, 6vw, 3.25rem); letter-spacing: -.01em; }
.hero__grilla { display: grid; gap: 2rem; align-items: center; }
.volanta { color: var(--verde); font-weight: 600; font-size: .95rem; letter-spacing: .02em; text-transform: uppercase; }
.hero__bajada { font-size: 1.15rem; max-width: 38rem; }
.hero__acciones { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.75rem 0; }
.hero__chips { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 0; padding: 0; }
.hero__chips li { border: 1px solid rgba(255,255,255,.2); border-radius: 999px; padding: .2rem .7rem; font-size: .875rem; color: #c3cdd9; }
/* Escritorio: 5 y 5 en dos líneas (el 5.º empuja al siguiente a la línea de abajo). */
@media (min-width: 1000px) { .hero__chips li:nth-child(5) { margin-right: 100%; } }
.hero__ilustracion { width: 100%; max-width: 420px; margin-inline: auto; }
@media (min-width: 900px) {
  .hero { padding: 5rem 0; }
  .hero__grilla { grid-template-columns: 1.25fr 1fr; gap: 3rem; }
}

/* Secciones */
.seccion { padding: 4rem 0; }
.seccion--gris { background: var(--gris); }
.seccion--oscura { background: var(--tinta); color: #d5dde7; }
.seccion--oscura h2 { color: #fff; }
.seccion__bajada { color: var(--suave); font-size: 1.1rem; max-width: 40rem; margin-bottom: 2rem; }
.seccion--oscura .seccion__bajada { color: #c3cdd9; }

/* Servicios */
.tarjetas { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .tarjetas { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .tarjetas { grid-template-columns: repeat(3, 1fr); } }
.tarjeta { border: 1px solid var(--borde); border-radius: var(--radio); padding: 1.5rem; background: #fff; }
.tarjeta__icono { width: 44px; height: 44px; padding: 9px; border-radius: 10px; background: var(--tinta); fill: none; stroke: var(--verde); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 1rem; }
.tarjeta p { color: var(--suave); }
.tarjeta ul { margin: 0; padding-left: 1.1rem; font-size: .975rem; }
.tarjeta li { margin-bottom: .3rem; }
.tarjeta li::marker { color: var(--verde-osc); }
.tarjeta--ancha { border-color: var(--verde-osc); }
@media (min-width: 760px) { .tarjeta__dos-columnas { columns: 2; column-gap: 2.5rem; } .tarjeta__dos-columnas li { break-inside: avoid; } }
@media (min-width: 640px) { .tarjeta--ancha { grid-column: 1 / -1; } }
.extra { display: flex; gap: .6rem; align-items: flex-start; margin: 2rem 0 0; color: var(--suave); }
.extra .icono { color: var(--verde-osc); margin-top: .2rem; }

/* Cómo trabajamos */
.pasos { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; counter-reset: paso; }
@media (min-width: 760px) { .pasos { grid-template-columns: repeat(4, 1fr); } }
.pasos li { counter-increment: paso; background: #fff; border-radius: var(--radio); padding: 1.5rem; border-top: 4px solid var(--verde); }
.pasos li::before { content: counter(paso, decimal-leading-zero); display: block; font-weight: 800; font-size: 1.5rem; color: var(--verde-osc); font-variant-numeric: tabular-nums; margin-bottom: .4rem; }
.pasos p { margin: 0; color: var(--suave); }

/* Por qué */
.motivos { display: grid; gap: 1.5rem 2.5rem; }
@media (min-width: 760px) { .motivos { grid-template-columns: repeat(2, 1fr); } }
.motivo { padding-left: 1rem; border-left: 3px solid var(--verde); }
.motivo p { margin: 0; color: var(--suave); }
.aliado { margin: 2.5rem 0 0; padding: 1rem 1.25rem; background: var(--gris); border-radius: var(--radio); }

/* Contacto */
.contacto { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .contacto { grid-template-columns: 1fr 1.1fr; align-items: start; } }
.canales { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.canales a, .canales span { display: inline-flex; align-items: center; gap: .7rem; min-height: 44px; color: #fff; text-decoration: none; font-size: 1.1rem; }
.canales a:hover { color: var(--verde); }
.canales .icono { color: var(--verde); }
.formulario { background: #fff; color: var(--texto); border-radius: var(--radio); padding: 1.5rem; display: grid; gap: 1rem; }
.campo { display: grid; gap: .35rem; }
.campo label { font-weight: 600; color: var(--tinta); }
.opcional { font-weight: 400; color: var(--suave); }
.campo input, .campo textarea {
  font: inherit; color: inherit; width: 100%; min-height: 48px; padding: .6rem .8rem;
  border: 1px solid #b8c1cc; border-radius: 8px; background: #fff;
}
.campo textarea { resize: vertical; }
.campo [aria-invalid="true"] { border-color: #b3261e; box-shadow: 0 0 0 1px #b3261e; }
.formulario .boton { justify-self: start; }
.trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.formulario__estado { margin: 0; min-height: 1.5em; color: var(--tinta); font-weight: 500; }

/* Pie */
.pie { background: #0a1320; color: #9aa7b6; font-size: .95rem; }
.pie__fila { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; padding: 1.5rem 0; }
.pie p { margin: 0; }
.pie__marca img { display: block; width: 120px; height: auto; }
.pie__fila { align-items: center; }
.pie a { color: #c3cdd9; }
.pie__ig { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
.pie__ig:hover { color: var(--verde); }

/* Consultas técnicas (misión 2850) */
.pagina-titulo { padding: 3rem 0 1rem; }
.pagina-titulo h1 { font-size: clamp(1.9rem, 5vw, 2.75rem); }
.servicio-nombre { color: var(--verde-osc); font-weight: 600; margin: 0 0 .5rem; }
.servicio-nombre:empty { display: none; }
.aviso { border: 2px solid var(--tinta); border-left-width: 8px; background: #fff8e1; color: var(--tinta); border-radius: var(--radio); padding: 1.1rem 1.25rem; margin: 1.5rem 0; }
.aviso p { margin: 0; }
.aviso p + p { margin-top: .6rem; }
.aviso__fuerte { font-weight: 700; font-size: 1.1rem; }
.consultas-vias { display: grid; gap: 1.5rem; }
@media (min-width: 760px) { .consultas-vias { grid-template-columns: 1fr 1fr; } }
.via { background: var(--gris); border-radius: var(--radio); padding: 1.5rem; }
.via ul { padding-left: 1.2rem; margin: 0 0 1em; }
.via .canales ul, .via .canales { padding-left: 0; }
.via .canales a, .via .canales span { color: var(--tinta); }
.via .canales a:hover { color: var(--verde-osc); }
.via .canales .icono { color: var(--verde-osc); }
.campo--opciones { border: 0; margin: 0; padding: 0; min-width: 0; }
.campo--opciones legend { font-weight: 600; color: var(--tinta); padding: 0; margin-bottom: .35rem; }
.opciones { display: flex; gap: 1rem; }
.opciones label { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: 0 .9rem; border: 1px solid #b8c1cc; border-radius: 8px; font-weight: 500; }
.opciones input { width: 1.2rem; height: 1.2rem; min-height: 0; accent-color: var(--verde-osc); }
.campo--opciones[aria-invalid="true"] .opciones label { border-color: #b3261e; }
.campo__ayuda { margin: 0; font-size: .95rem; color: var(--suave); }
.formulario__pie { margin: 0; font-size: .95rem; }
.faq details { border-bottom: 1px solid var(--borde); padding: .75rem 0; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--tinta); min-height: 40px; }
.faq details p { margin: .5rem 0 0; }

/* Videos en ventanita (misión 2907) */
[hidden] { display: none !important; }
.tarjeta__destacada { font-weight: 700; font-size: 1.15rem; color: var(--tinta); border-left: 4px solid var(--verde); padding-left: .9rem; margin: 1rem 0 0; }
.boton-video { display: inline-flex; align-items: center; gap: .75rem; margin-top: 1rem; min-height: 48px; padding: .3rem 1.1rem .3rem .3rem; border: 2px solid var(--borde); border-radius: 999px; background: #fff; color: var(--tinta); font: inherit; font-weight: 600; cursor: pointer; }
.boton-video:hover { border-color: var(--verde-osc); }
.boton-video img { width: 27px; height: 48px; object-fit: cover; border-radius: 6px; background: var(--tinta); }
#por-que .boton-video { margin: 0 0 1.5rem; }
.carrusel { display: flex; gap: 1rem; margin: 0; padding: 0 0 .75rem; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; }
.carrusel li { flex: 0 0 auto; scroll-snap-align: start; }
.carrusel__item { display: grid; gap: .4rem; width: 140px; padding: 0; border: 0; background: none; color: var(--tinta); font: inherit; font-size: .9rem; font-weight: 600; text-align: left; cursor: pointer; }
.carrusel__item img { width: 140px; height: 249px; object-fit: cover; border-radius: var(--radio); background: var(--tinta); }
.video-modal { width: min(420px, 94vw); max-height: 96dvh; padding: 0; border: 0; border-radius: var(--radio); background: var(--tinta); color: #fff; overflow: hidden; }
.video-modal::backdrop { background: rgba(8, 14, 24, .8); }
.video-modal__caja { position: relative; display: grid; gap: .75rem; padding: 3.25rem 1rem 1rem; max-height: 96dvh; overflow-y: auto; }
.video-modal__titulo { margin: 0; font-size: 1rem; color: #fff; }
.video-modal__video { width: 100%; max-height: 62dvh; aspect-ratio: 9 / 16; background: #000; border-radius: 8px; justify-self: center; }
.video-modal__cerrar { position: absolute; top: .4rem; right: .4rem; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; font-size: 1.7rem; line-height: 1; cursor: pointer; }
.video-modal__cerrar:hover { background: rgba(255, 255, 255, .28); }
.video-modal__miniaturas { display: flex; gap: .5rem; margin: 0; padding: 0; list-style: none; overflow-x: auto; }
.video-modal__miniaturas button { width: 48px; height: 84px; padding: 0; border: 2px solid transparent; border-radius: 6px; background: none; cursor: pointer; overflow: hidden; }
.video-modal__miniaturas button[aria-current] { border-color: var(--verde); }
.video-modal__miniaturas img { width: 100%; height: 100%; object-fit: cover; }
.video-modal__acciones { display: grid; gap: .5rem; justify-items: center; }
.video-modal__acciones .boton { width: 100%; }
.video-modal__pagina { color: var(--verde); min-height: 44px; display: inline-flex; align-items: center; }
@media (max-width: 640px) {
  .video-modal { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; }
  .video-modal__caja { height: 100dvh; max-height: 100dvh; align-content: start; }
  .video-modal__video { max-height: 58dvh; }
}
@media (prefers-reduced-motion: no-preference) {
  .video-modal[open] { animation: video-entra .18s ease-out; }
  @keyframes video-entra { from { opacity: 0; } to { opacity: 1; } }
}
.video-pagina { max-width: 480px; margin: 0 auto; }
.video-pagina video { width: 100%; aspect-ratio: 9 / 16; background: #000; border-radius: var(--radio); }

/* Mascota / WhatsApp flotante (misión 2907) */
.chat-flotante { position: fixed; right: 1rem; bottom: 1rem; z-index: 5; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: var(--verde); color: var(--tinta); box-shadow: 0 4px 14px rgba(15, 27, 45, .35); overflow: hidden; }
.chat-flotante:hover { background: #a6e852; }
.chat-flotante .icono { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.chat-flotante img { width: 100%; height: 100%; object-fit: cover; }
.pie { padding-bottom: 5rem; }
