/* Casa Import — GENERADO por generar-php.js desde el mockup dc.html. Regenerar, no editar a mano. */

  :root { --ease-out: cubic-bezier(0.23, 1, 0.32, 1); }
  html { scroll-behavior: smooth; }
  [id] { scroll-margin-top: 86px; }
  body { margin: 0; background: #FFFFFF; -webkit-font-smoothing: antialiased; }
  a { color: #1F6FB2; text-decoration: none; }
  input, select, textarea, button { font: inherit; }
  ::placeholder { color: #5C6B72; }

  /* Feedback de presión — solo transform, retargetea si se presiona rápido */
  .press { transition: transform 140ms var(--ease-out); }
  .press:active { transform: scale(0.97); }

  /* Transiciones de color en interactivos — propiedades nombradas, nunca all */
  .t-col { transition: color 130ms ease, background-color 130ms ease, border-color 130ms ease; }
  @media (hover: hover) and (pointer: fine) {
    .nav-link:hover { background: #F1F7FC !important; }
    .link-azul:hover { color: #144E80 !important; }
    .btn-azul:hover { background: #1B619C !important; }
    .btn-blanco:hover { background: #E9F3FB !important; }
    .btn-ghost:hover { background: rgba(255,255,255,0.22) !important; }
    .chip:not(.on):hover { background: #E4F0FA !important; }
    .foot-link:hover { color: #FFFFFF !important; }
    .hov-banda:hover { background: #E4F0FA !important; }
    .btn-wa:hover { background: #0B5F53 !important; }
    .press:not(.card-lift):hover { transform: translateY(-1px); }
    .card-lift:hover { transform: translateY(-5px); box-shadow: 0 3px 6px rgba(14,34,51,0.10), 0 14px 34px rgba(14,34,51,0.14); }
  }

  /* Foco visible en formularios */
  .inp { transition: border-color 130ms ease, box-shadow 130ms ease; }
  .inp:focus { outline: none; border-color: #1F6FB2 !important; box-shadow: 0 0 0 2px #1F6FB2; }
  a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid #1F6FB2; outline-offset: 2px; }
  footer a:focus-visible, .btn-wa:focus-visible, .btn-blanco:focus-visible, .btn-ghost:focus-visible, .dot:focus-visible { outline-color: #8FD0F0; }
  .pill-buscar:focus-within { box-shadow: 0 0 0 2px #1F6FB2; }
  .pill-buscar .inp:focus { box-shadow: none; }

  /* Entrada del hero — se reproduce al llegar a Inicio */
  @keyframes rise-in { from { opacity: 0; transform: translateY(14px); } }
  @keyframes fade-in { from { opacity: 0; } }
  .hero-in { animation: rise-in 450ms var(--ease-out) both; }
  .hero-in-2 { animation-delay: 70ms; }
  .hero-in-3 { animation-delay: 140ms; }
  .hero-svg { animation: fade-in 700ms ease 180ms both; }

  /* Contadores de la banda de datos — count-up puro CSS via @property; el display lo decide el componente */
  @property --n { syntax: "<integer>"; inherits: false; initial-value: 0; }
  @media (prefers-reduced-motion: no-preference) {
    .stat-live { animation: countup 900ms var(--ease-out) 250ms both; counter-reset: nn var(--n); }
    .stat-live::after { content: counter(nn); }
    @keyframes countup { to { --n: var(--target); } }
  }

  /* Dots del deslizador del hero */
  .dot { border: none; box-sizing: content-box; padding: 8px; width: 9px; height: 9px; border-radius: 999px; background-clip: content-box !important; cursor: pointer; }
  .dot.on { width: 26px; }

  /* Movimiento reducido: se conserva el fade, se elimina el desplazamiento y la escala */
  @media (prefers-reduced-motion: reduce) {
    .hero-in, .hero-in-2, .hero-in-3, .hero-svg { animation: fade-in 200ms ease both; }
    .press { transition: none; }
    .press:active { transform: none; }
    .card-lift { transition: none; }
    .card-lift:hover { transform: none; }
    html { scroll-behavior: auto; }
    .press:not(.card-lift):hover { transform: none; }
  }

  /* Lift de tarjetas clickeables */
  .card-lift { transition: transform 180ms var(--ease-out), box-shadow 180ms var(--ease-out); }

  /* Logos de marca en slides */
  .slide-logo { position: absolute; top: 26px; right: 30px; max-width: 150px; object-fit: contain; mix-blend-mode: multiply; z-index: 2; }

  /* Grillas de países y segmentos */
  .grid-paises { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; }
  .grid-segmentos { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 32px 40px; }

  /* Mapa regional */
  .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
  .mapa-region { width: 100%; max-width: 600px; height: auto; display: block; margin: 0 auto; }

  /* Hero de producto: zona blanca diagonal a sangre + sombra de piso */
  .wedge { position: absolute; top: 0; right: 0; bottom: 0; width: 46%; background: #FFFFFF; clip-path: polygon(150px 0, 100% 0, 100% 100%, 0 100%); display: flex; align-items: center; justify-content: center; padding: 44px 30px 44px 175px; box-sizing: border-box; }
  .prod-img { max-width: 100%; max-height: 330px; object-fit: contain; }

  /* ===== Responsive ===== */
  .burger { display: none; border: none; background: transparent; padding: 8px; margin: -8px; cursor: pointer; }
  .nav-mobile { position: absolute; top: 100%; left: 0; right: 0; background: #fff; box-shadow: 0 14px 28px rgba(14,34,51,0.14); }
  .nav-mobile a { display: block; padding: 15px 24px; font-size: 15.5px; font-weight: 500; color: #0E2233; border-top: 1px solid #F1F7FC; cursor: pointer; }
  .nav-mobile .cta-mov { margin: 12px 24px 18px; padding: 14px; text-align: center; background: #1F6FB2; color: #fff; border-radius: 8px; font-weight: 600; border-top: none; }
  @media (min-width: 901px) { .nav-mobile { display: none !important; } }

  @media (max-width: 900px) {
    body { overflow-x: hidden; }
    header nav { display: none !important; }
    .burger { display: inline-flex; }
    h1 { font-size: 33px !important; }
    h2 { font-size: 25px !important; }
    [style*="max-width: 1200px"] { padding-left: 20px !important; padding-right: 20px !important; }
    [style*="padding: 72px 32px"], [style*="padding: 84px 32px"], [style*="padding: 88px 32px"], [style*="padding: 96px 32px"], [style*="padding: 64px 32px"] { padding-top: 52px !important; padding-bottom: 52px !important; }
    [style*="min-height: 540px"] { min-height: 0 !important; padding-top: 48px !important; padding-bottom: 88px !important; }
    [style*="min-height: 300px"] { min-height: 210px !important; }
    .wedge { position: static; width: auto; clip-path: none; border-radius: 16px; margin: 0 20px 26px; padding: 24px; min-height: 230px; }
    .prod-img { max-height: 220px; }
    .slide-logo { display: none; }
    .hero-scrim { background: linear-gradient(100deg, rgba(8,22,37,0.94) 0%, rgba(10,30,52,0.86) 34%, rgba(12,40,68,0.72) 64%, rgba(15,60,100,0.62) 100%) !important; }
    [style*="min-height: 400px"] { min-height: 260px !important; }
    [style*="grid-template-columns: 1.05fr 0.95fr"],
    [style*="grid-template-columns: 0.34fr 0.66fr"],
    [style*="grid-template-columns: 0.85fr 1.15fr"],
    [style*="grid-template-columns: 1.1fr 0.9fr"],
    [style*="grid-template-columns: 0.9fr 1.1fr"] { grid-template-columns: 1fr !important; }
    [style*="grid-template-columns: repeat(4, 1fr)"] { grid-template-columns: repeat(2, 1fr) !important; }
    [style*="grid-template-columns: repeat(6, 1fr)"] { grid-template-columns: repeat(3, 1fr) !important; }
    .prod-grid { grid-template-columns: repeat(2, 1fr) !important; }
    /* barra de filtros pegajosa: una fila desplazable con el buscador primero */
    #cat-filtros { position: sticky; top: 57px; z-index: 30; background: #FFFFFF; flex-wrap: nowrap !important; overflow-x: auto; margin: 0 -20px 26px !important; padding: 10px 20px 12px; box-shadow: 0 8px 14px -12px rgba(14,34,51,0.30); -webkit-overflow-scrolling: touch; }
    #cat-filtros .chip { flex-shrink: 0; }
    #cat-filtros .pill-buscar { order: -1; flex: 0 0 220px; min-width: 220px; }
    /* objetivos tactiles a 44px minimo */
    .chip { padding: 13px 20px !important; }
    .burger { padding: 10px; margin: -10px; }
    .logo-link { padding: 8px 0; margin: -8px 0; }
    [style*="grid-template-columns: minmax(280px, 440px)"] { grid-template-columns: 1fr !important; gap: 20px !important; }
    .dots-row { left: 50% !important; right: auto !important; transform: translateX(-50%); background: rgba(8,22,37,0.78); border-radius: 999px; padding: 2px 8px; }
    .dots-row .dot { background-color: rgba(255,255,255,0.55) !important; }
    .dots-row .dot.on { background-color: #4FC3E8 !important; }
    .dot { padding: 17.5px; }
    .link-azul { display: inline-block; padding: 11.5px 6px; margin: -8px -6px; }
    .foot-link { display: inline-block; padding: 12px 7px; margin: -8px -7px; }
    .tap { display: inline-block; padding: 10.5px 6px; margin: -8px -6px; }
    [style*="gap: 64px"] { gap: 36px !important; }
    [style*="gap: 56px"] { gap: 30px !important; }
  }
  @media (max-width: 399px) {
    .prod-grid { grid-template-columns: 1fr !important; }
  }
  @media (max-width: 560px) {
    h1 { font-size: 29px !important; }
    [style*="grid-template-columns: repeat(4, 1fr)"] { grid-template-columns: 1fr !important; }
    [style*="grid-template-columns: repeat(4, 1fr)"][style*="text-align: center"] { grid-template-columns: repeat(2, 1fr) !important; }
    [style*="grid-template-columns: repeat(6, 1fr)"] { grid-template-columns: repeat(2, 1fr) !important; }
    [style*="grid-template-columns: 1fr 1fr"] { grid-template-columns: 1fr !important; }
    .prod-grid { gap: 12px !important; }
    .prod-grid article > div:first-child { height: 150px !important; padding: 12px !important; }
    .prod-grid article h3 { font-size: 14.5px !important; }
    .prod-grid article > div:last-child { padding: 12px 14px 14px !important; gap: 5px !important; }
    [style*="font-size: 38px"] { font-size: 30px !important; }
    [style*="font-size: 19px"] { font-size: 17px !important; }
    .hov-banda { flex-wrap: wrap; }
    .hov-banda [style*="white-space: nowrap"] { flex: 1 1 100%; text-align: center; }
  }


/* ===== Fase PHP: estados que el mockup resolvía con bindings del canvas ===== */

/* Deslizador del hero */
.slide { display: none; }
.slide.on { display: block; }
.dot { background-color: rgba(255,255,255,0.4); }
.dot.on { background-color: #4FC3E8; }

/* Menú móvil (el JS alterna .abierto) */
.nav-mobile { display: none; }
.nav-mobile.abierto { display: block; }
#fondo-menu { display: none; }
#fondo-menu.abierto { display: block; }

/* Contadores de la banda de datos: estáticos por defecto; el JS activa la
   animación solo con soporte de @property y sin movimiento reducido */
.banda-stats .stat-live { display: none; }
.banda-stats .stat-static { display: inline; }
.banda-stats.stats-on .stat-live { display: inline; }
.banda-stats.stats-on .stat-static { display: none; }

/* Chips de línea del catálogo */
.chip-cat { background: #F1F7FC; color: #0E2233; }
.chip-cat.on { background: #1F6FB2; color: #FFFFFF; }

/* Tarjetas filtradas (el estilo inline display:flex obliga el !important) */
.oculto { display: none !important; }

/* Botón volver arriba (solo se emite en el catálogo) */
#volver-arriba { display: none; }
#volver-arriba.ver { display: flex; }

/* Chips de líneas de interés del formulario: checkboxes reales estilizados */
.chk-chip { position: relative; display: inline-block; }
.chk-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chk-chip span { display: inline-block; }
.chk-chip input:checked + span.chip { background: #1F6FB2 !important; color: #FFFFFF !important; border-color: #1F6FB2 !important; }
.chk-chip input:focus-visible + span.chip { outline: 2px solid #1F6FB2; outline-offset: 2px; }
