/* ============================================================================
   ConsultArg - estilos comunes de todas las paginas (inicio, EqualRP, Asimetric).
   Los colores del sitio anterior: negro y blanco, grises para el texto y el rojo de los botones; titulos en Oswald.
   Emint 360 conserva su azul (es otro producto) solo dentro de su seccion.
   ============================================================================ */
:root {
  --negro: #0d0d0d;        /* barra, portada, pie */
  --fondo: #ffffff;        /* pagina */
  --fondo-2: #f4f4f4;      /* secciones alternas */
  --tarjeta: #ffffff;
  --tinta: #1f1f1f;        /* texto */
  --tinta-2: #666666;      /* texto secundario (el gris del sitio anterior) */
  --regla: #e2e2e2;
  --rojo: #e02b20;         /* acento: botones y detalles */
  --rojo-fuerte: #c4231a;
  --emint: #0a63c2;        /* azul de Emint 360 */
  --f-titulo: "Oswald", "Arial Narrow", Arial, sans-serif;
  --f-texto: "Open Sans", "Segoe UI", Roboto, Arial, sans-serif;
  --ancho: 1160px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --fondo: #121212; --fondo-2: #1a1a1a; --tarjeta: #202020; --tinta: #ececec; --tinta-2: #a9a9a9; --regla: #2e2e2e;
    --emint: #5aa7f2; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --fondo: #121212; --fondo-2: #1a1a1a; --tarjeta: #202020; --tinta: #ececec; --tinta-2: #a9a9a9; --regla: #2e2e2e;
  --emint: #5aa7f2; color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--fondo); color: var(--tinta); font-family: var(--f-texto); font-size: 16px; line-height: 1.65; }
img { max-width: 100%; display: block; }
a { color: var(--rojo); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid var(--rojo); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--f-titulo); line-height: 1.12; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: 0.01em; }
p { margin: 0; }
.marco { max-width: var(--ancho); margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.etiqueta { font: 600 0.8rem var(--f-titulo); letter-spacing: 0.32em; text-transform: uppercase; color: var(--rojo); }
.boton { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; font: 600 0.95rem var(--f-texto); padding: 0.75rem 1.5rem;
  border-radius: 999px; border: 2px solid var(--rojo); text-decoration: none; cursor: pointer; transition: background 0.15s, color 0.15s; }
.boton.rojo { background: var(--rojo); color: #fff; }
.boton.rojo:hover { background: var(--rojo-fuerte); border-color: var(--rojo-fuerte); }
.boton.borde { background: transparent; color: var(--rojo); }
.boton.borde:hover { background: var(--rojo); color: #fff; }
.boton.blanco { background: transparent; color: #fff; border-color: #fff; }
.boton.blanco:hover { background: #fff; color: var(--negro); }
.acciones { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* barra */
.barra { position: sticky; top: 0; z-index: 20; background: var(--negro); border-bottom: 1px solid #222; }
.barra .marco { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.marca img { height: 34px; width: auto; }
.nav { display: flex; align-items: center; gap: 1.2rem; }
.nav a.menu { white-space: nowrap; color: #fff; text-decoration: none; font: 500 0.95rem var(--f-titulo); letter-spacing: 0.04em; }
.nav a.menu:hover, .nav a.menu[aria-current="page"] { color: var(--rojo); }
.nav .boton { padding: 0.5rem 1.1rem; font-size: 0.88rem; }
.idioma { display: inline-flex; border: 1px solid #444; border-radius: 6px; overflow: hidden; }
.idioma button { font: 600 0.78rem var(--f-texto); padding: 0.3rem 0.55rem; border: 0; background: transparent; color: #bbb; cursor: pointer; }
.idioma button[aria-pressed="true"] { background: #fff; color: var(--negro); }
/* fondo claro / oscuro: la barra es negra en los dos, el boton muestra el sol o la luna */
.tema { display: inline-flex; align-items: center; justify-content: center; width: 2.1rem; height: 1.9rem; border: 1px solid #444;
  border-radius: 6px; background: transparent; color: #bbb; cursor: pointer; padding: 0; }
.tema:hover { color: #fff; border-color: var(--rojo); }
.tema svg { width: 1.05rem; height: 1.05rem; }
.tema .luna { display: none; }
:root[data-theme="dark"] .tema .sol { display: none; }
:root[data-theme="dark"] .tema .luna { display: block; }
.menu-movil { display: none; position: relative; }
.menu-movil summary { list-style: none; cursor: pointer; color: #fff; display: flex; align-items: center; padding: 0.4rem; }
.menu-movil summary::-webkit-details-marker { display: none; }
.menu-movil summary svg { width: 26px; height: 26px; }
.menu-movil .panel { position: absolute; right: 0; top: calc(100% + 10px); background: var(--negro); border: 1px solid #333; border-radius: 8px; padding: 0.6rem; display: grid; min-width: 220px;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.7); }
.menu-movil .panel a { color: #fff; text-decoration: none; padding: 0.55rem 0.7rem; border-radius: 6px; font: 500 1rem var(--f-titulo); letter-spacing: 0.03em; }
.menu-movil .panel a:hover { background: #1f1f1f; color: var(--rojo); }
@media (max-width: 980px) { .nav a.menu, .nav .boton { display: none; } .menu-movil { display: block; } }

/* portada con foto */
.portada { position: relative; color: #fff; background: var(--negro) center / cover no-repeat; }
.portada::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, 0.74), rgba(0, 0, 0, 0.3)); }
.portada .marco { position: relative; padding-block: clamp(4rem, 11vw, 8rem); display: grid; gap: 1.2rem; }
.portada .etiqueta { color: #fff; opacity: 0.9; }
.portada h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 700; max-width: 16ch; }
.portada .bajada { font-size: 1.12rem; max-width: 40rem; color: #e6e6e6; }
.portada .acciones { margin-top: 0.6rem; }
.portada.chica .marco { padding-block: clamp(3rem, 8vw, 5.5rem); }
.portada.chica h1 { max-width: 22ch; }

/* secciones */
section { padding-block: clamp(3rem, 7vw, 5rem); }
section.alterna { background: var(--fondo-2); }
.titulo-seccion { display: grid; gap: 0.7rem; max-width: 48rem; margin-bottom: 2.2rem; }
.titulo-seccion p { color: var(--tinta-2); font-size: 1.05rem; }
.titulo-seccion h2::after { content: ""; display: block; width: 56px; height: 3px; background: var(--rojo); margin-top: 0.8rem; }

/* tarjetas */
.grilla { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 1.2rem; }
.grilla.chica { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.tarjeta { background: var(--tarjeta); border: 1px solid var(--regla); border-top: 3px solid var(--rojo); border-radius: 6px; padding: 1.3rem 1.3rem 1.4rem; display: grid; gap: 0.55rem; align-content: start; }
.alterna .tarjeta { background: var(--tarjeta); }
.tarjeta p { color: var(--tinta-2); font-size: 0.95rem; }
.tarjeta ul, .lista { margin: 0.2rem 0 0; padding-left: 1.1rem; color: var(--tinta-2); font-size: 0.95rem; display: grid; gap: 0.25rem; }
.tarjeta ul li::marker, .lista li::marker { color: var(--rojo); }
.tarjeta .mas { font-weight: 600; text-decoration: none; margin-top: 0.3rem; }
.tarjeta .mas:hover { text-decoration: underline; }

/* texto + foto */
.dos { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
@media (max-width: 900px) { .dos { grid-template-columns: minmax(0, 1fr); } }
.dos .texto { display: grid; gap: 1rem; }
.dos .texto p { color: var(--tinta-2); }
.foto { border-radius: 8px; overflow: hidden; box-shadow: 0 24px 50px -30px rgba(0, 0, 0, 0.55); }
.foto img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.cifras { display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; margin-top: 0.4rem; }
.cifras div { display: grid; }
.cifras b { font: 700 2.2rem/1 var(--f-titulo); color: var(--rojo); }
.cifras span { font-size: 0.9rem; color: var(--tinta-2); }

/* Emint 360: la apuesta a futuro, con su azul */
.emint { background: var(--negro); color: #fff; }
.emint .etiqueta { color: #5aa7f2; }
.emint .titulo-seccion h2::after { background: #5aa7f2; }
.emint .titulo-seccion p, .emint .claves p { color: #c9c9c9; }
.emint .marca-emint { display: inline-flex; align-items: center; gap: 0.6rem; }
.emint .marca-emint svg { width: 40px; height: 40px; flex: none; }
.emint .marca-emint b { font: 700 1.4rem var(--f-titulo); letter-spacing: 0.02em; }
.emint .marca-emint span { font: 600 0.85rem var(--f-titulo); color: #5aa7f2; letter-spacing: 0.12em; }
.emint .dos { align-items: start; }
.claves { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 1.2rem 2rem; margin-top: 2.4rem; }
.clave { display: grid; gap: 0.35rem; padding-left: 0.9rem; border-left: 3px solid #5aa7f2; }
.clave h3 { font-size: 1.05rem; color: #fff; }
.clave p { font-size: 0.93rem; }
.emint .boton.azul { background: #0a63c2; border-color: #0a63c2; color: #fff; }
.emint .boton.azul:hover { background: #0b56a6; border-color: #0b56a6; }
.reproductor { position: relative; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #0e2035; border: 1px solid #263445; }
.reproductor iframe, .reproductor button { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.reproductor button { padding: 0; cursor: pointer; background: #0e2035 center / cover no-repeat; }
.reproductor button::after { content: ""; position: absolute; left: 50%; top: 50%; width: 76px; height: 54px; transform: translate(-50%, -50%); border-radius: 14px;
  background: rgba(10, 99, 194, 0.92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5v14l11-7z' fill='%23fff'/%3E%3C/svg%3E") center / 34px no-repeat; }
.reproductor .leyenda { position: absolute; left: 0; right: 0; bottom: 0; padding: 0.7rem 0.9rem; font-size: 0.85rem; color: #fff; text-align: left;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7)); pointer-events: none; }
.nota-video { font-size: 0.85rem; color: #a9a9a9; margin-top: 0.6rem; }

/* Dynamics GP: fechas */
.fechas { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 1rem; margin: 0.4rem 0 0.2rem; }
.fecha { border: 1px solid var(--regla); border-radius: 6px; padding: 1rem 1.1rem; background: var(--tarjeta); display: grid; gap: 0.2rem; }
.fecha b { font: 700 1.5rem var(--f-titulo); color: var(--rojo); }
.fecha span { font-size: 0.9rem; color: var(--tinta-2); }
.fuente { font-size: 0.8rem; color: var(--tinta-2); }

/* productos */
.producto { position: relative; }
.producto .sello { position: absolute; top: -0.8rem; right: 1rem; font: 600 0.72rem var(--f-titulo); letter-spacing: 0.12em; text-transform: uppercase;
  background: #0a63c2; color: #fff; padding: 0.25rem 0.6rem; border-radius: 999px; }
.producto.destacado { border-top-color: #0a63c2; }

/* clientes: cinta de logos (la arma la pagina: orden aleatorio, dos filas en sentidos opuestos; sin JS queda como grilla).
   Los logos van sobre blanco en los dos temas, los blancos sobre negro; sin logo usable, el nombre en texto. */
.logos { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.logos li { display: flex; }
.logo { display: grid; place-items: center; align-content: center; width: 172px; height: 86px; padding: 9px 16px; background: #fff;
  border: 1px solid var(--regla); border-radius: 6px; text-decoration: none; transition: border-color 0.2s, transform 0.2s; }
.logo img { max-width: 140px; max-height: 66px; width: auto; height: auto; object-fit: contain; }
.logo.oscuro { background: #151515; border-color: #2a2a2a; }
.logo.texto { background: var(--tarjeta); text-align: center; gap: 0.15rem; }
.logo.texto b { font: 600 1rem/1.15 var(--f-titulo); letter-spacing: 0.02em; color: var(--tinta); }
.logo.texto small { font-size: 0.75rem; color: var(--tinta-2); }
a.logo:hover, a.logo:focus-visible { border-color: var(--rojo); transform: translateY(-2px); }
.cintas { display: grid; gap: 1rem; }
.cinta { display: flex; overflow: hidden; padding: 4px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.cinta .pista { flex: none; flex-wrap: nowrap; padding-right: 1rem; animation: correr var(--duracion, 120s) linear infinite; }
.cinta.al-reves .pista { animation-direction: reverse; }
.cinta:hover .pista, .cinta:focus-within .pista { animation-play-state: paused; }
@keyframes correr { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) {
  .cintas { margin: 0; }
  .cinta { -webkit-mask-image: none; mask-image: none; }
  .cinta .pista { flex: 1; flex-wrap: wrap; justify-content: center; padding: 0; animation: none; }
  .cinta .pista[aria-hidden] { display: none; }
}
.partners { margin: 3.2rem 0 1.4rem; }
.partners h3 { font-size: 1.4rem; }
.logos.fijos { justify-content: flex-start; }
/* caso destacado (Casposo): texto a la izquierda y la linea de duenos a la derecha */
.caso { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 2rem 3rem; align-items: center; margin-bottom: 2.6rem;
  padding: 2rem 2.2rem; background: var(--tarjeta); border: 1px solid var(--regla); border-left: 4px solid var(--rojo); border-radius: 6px; }
.caso h3 { font-size: clamp(1.4rem, 2.6vw, 1.85rem); font-weight: 600; margin: 0.5rem 0 0.8rem; }
.caso-texto p:not(.etiqueta) { margin: 0 0 1rem; color: var(--tinta-2); }
.caso .mas { font-weight: 600; text-decoration: none; }
.caso .mas:hover { text-decoration: underline; }
.linea { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; counter-reset: paso; }
.linea li { position: relative; display: grid; gap: 0.1rem; padding-left: 2.8rem; counter-increment: paso; }
.linea li::before { content: counter(paso); position: absolute; left: 0; top: 0.1rem; width: 1.9rem; height: 1.9rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--rojo); color: #fff; font: 600 0.95rem var(--f-titulo); }
.linea li:not(:last-child)::after { content: ""; position: absolute; left: 0.9rem; top: 2.2rem; bottom: -1rem; width: 2px; background: var(--regla); }
.linea b { font: 600 1.1rem var(--f-titulo); letter-spacing: 0.02em; }
.linea span { font-size: 0.9rem; color: var(--tinta-2); }
@media (max-width: 760px) { .caso { grid-template-columns: 1fr; padding: 1.5rem 1.3rem; } }

/* contacto */
.contacto .dos { align-items: start; }
.datos { list-style: none; margin: 0.4rem 0 0; padding: 0; display: grid; gap: 0.7rem; }
.datos li { display: flex; align-items: center; gap: 0.7rem; color: var(--tinta-2); }
.datos svg { width: 22px; height: 22px; color: var(--rojo); flex: none; }
.datos a { color: var(--tinta); text-decoration: none; font-weight: 600; }
.datos a:hover { color: var(--rojo); }
.formulario { display: grid; gap: 0.9rem; background: var(--tarjeta); border: 1px solid var(--regla); border-radius: 8px; padding: 1.4rem; }
.formulario label { display: grid; gap: 0.3rem; font-size: 0.9rem; font-weight: 600; }
.formulario input, .formulario textarea, .formulario select { font: 400 1rem var(--f-texto); padding: 0.65rem 0.75rem; border: 1px solid var(--regla); border-radius: 6px;
  background: var(--fondo); color: var(--tinta); width: 100%; }
.formulario textarea { min-height: 7rem; resize: vertical; }
.formulario .fila { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 0.9rem; }
.aviso { font-size: 0.85rem; color: var(--tinta-2); }
.armado { white-space: pre-wrap; font: 0.85rem/1.5 Consolas, "Courier New", monospace; background: var(--fondo-2); border: 1px solid var(--regla); border-radius: 6px; padding: 0.8rem; }
.boton.wa { background: #25d366; border-color: #25d366; color: #0b2e17; }
.boton.wa svg { width: 20px; height: 20px; }

/* pie */
footer { background: var(--negro); color: #bdbdbd; padding-block: 2.5rem; font-size: 0.9rem; }
footer .marco { display: grid; gap: 1.2rem; }
footer .arriba { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
footer img { height: 30px; width: auto; }
footer nav { display: flex; flex-wrap: wrap; gap: 0.6rem 1.2rem; }
footer a { color: #fff; text-decoration: none; }
footer a:hover { color: var(--rojo); }
footer .legal { font-size: 0.8rem; color: #8f8f8f; border-top: 1px solid #262626; padding-top: 1rem; }

/* WhatsApp flotante */
.wa-flotante { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: max(16px, env(safe-area-inset-bottom, 0px)); z-index: 30; display: inline-flex; align-items: center;
  gap: 0.5rem; background: #25d366; color: #0b2e17; font-weight: 700; text-decoration: none; padding: 0.7rem 1rem; border-radius: 999px; box-shadow: 0 10px 25px -10px rgba(0, 0, 0, 0.5); }
.wa-flotante svg { width: 22px; height: 22px; }
@media (max-width: 560px) { .wa-flotante span { display: none; } .wa-flotante { padding: 0.8rem; } }
