/* ==========================================================================
   Tecno Magia — MOBILE (<=900px) — assets/css/mobile.css
   --------------------------------------------------------------------------
   CONTRATO DE SEPARACION DESKTOP / MOBILE:
   - TODO el CSS mobile vive en ESTE archivo. style.css es base + desktop y
     NO se toca para cambios de celular.
   - Este archivo se carga con media="(max-width: 900px)" y ademas todo su
     contenido esta envuelto en @media (max-width: 900px): doble proteccion,
     es IMPOSIBLE que una regla de aca afecte al desktop.
   - Para CONTENIDO que difiere entre versiones, el HTML usa pares de
     elementos: sufijo -m = solo mobile (ej .hero-mobile, .section-title-m,
     .card-desc-m) y -pc = solo desktop (ej .card-desc-pc). Los -m se ocultan
     en desktop desde style.css (grupo "elementos exclusivos de mobile");
     los -pc se ocultan aca.
   ========================================================================== */

/* ==========================================================================
   CAPA MOBILE (<=900px) — reconstruida de cero, mobile-first.
   Diseño propio para pantalla chica; comparte HTML y contenido con desktop.
   ========================================================================== */
@media (max-width: 900px) {

  /* ---- Header: barra compacta ---- */
  .site-header {
    background: rgba(5, 8, 18, 0.9);
    padding-top: env(safe-area-inset-top);
  }
  .site-header.scrolled {
    background: rgba(5, 8, 18, 0.96);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    gap: 0.5rem;
  }
  /* solo el isotipo (logo sin texto) a la izquierda; WhatsApp fuera de la barra (vive en el FAB) */
  .header-brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    position: relative;
    z-index: 60;
  }
  .header-brand img { width: 36px; height: 36px; }
  .header-brand .brand-name { display: none; }
  .header-social { display: none; }
  .header-actions { gap: 0.4rem; position: relative; z-index: 60; }
  .nav-toggle { display: flex; position: relative; z-index: 60; }

  /* ---- Menú: scrim (página difuminada) + panel legible ---- */
  .site-nav {
    position: fixed;
    inset: 0;
    height: 100svh;
    display: block;
    padding: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s;
    z-index: 55;
  }
  .site-nav.open { opacity: 1; visibility: visible; }

  .nav-panel {
    display: flex;
    flex-direction: column;
    margin: calc(56px + env(safe-area-inset-top)) 1rem 0;
    padding: 0.5rem 1.25rem 1rem;
    background: #0b1022;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(-12px);
    transition: opacity 0.28s ease, transform 0.28s ease;
  }
  .site-nav.open .nav-panel { opacity: 1; transform: none; }

  .nav-panel > a,
  .nav-item > a {
    display: flex;
    align-items: center;
    min-height: 52px;
    padding: 0.4rem 0;
    font-size: 1.1rem;
    letter-spacing: 0.04em;
    color: rgba(238, 242, 255, 0.92);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }
  .nav-panel > a:last-child { border-bottom: 0; }
  .site-nav a::after { display: none; }
  .nav-panel > a:active,
  .nav-item > a:active,
  .dropdown a:active { color: var(--brand-2); }

  /* acordeón de Servicios */
  .nav-item { width: 100%; }
  .nav-item > a { justify-content: space-between; }
  .nav-item .chev { display: block; width: 18px; height: 18px; }
  .nav-item.open .chev { transform: rotate(180deg); }
  .dropdown {
    position: static;
    translate: none;
    transform: none;
    opacity: 1;
    visibility: visible;
    min-width: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 0 0 0 1rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.28s ease;
  }
  .dropdown::before { display: none; }
  .nav-item.open .dropdown { max-height: 260px; }
  .dropdown a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0.3rem 0;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  body.nav-open { overflow: hidden; }

  /* ---- Hero mobile-native: nombre + promesa + acción (patrón landing) ---- */
  /* PRUEBA: video de fondo también en mobile (720p) + fundido para legibilidad.
     El video va ENCIMA del gradiente y trae el mismo gradiente como fondo propio:
     mientras el .webm descarga se ve el gradiente (fallback), y al cargar lo tapa.
     Buena conexión = se ve como la opción 1; mala conexión = degradado hasta que entra. */
  /* Video y overlay entran JUNTOS con el mismo fade (clase hero-video-on desde
     JS cuando hay frame): el video nunca se ve sin su oscurecido, y mientras
     carga se ve el gradiente del hero limpio. */
  .hero-video {
    display: block;
    opacity: 0;
    transition: opacity 0.35s ease;
    background:
      radial-gradient(120% 80% at 85% 0%, rgba(46, 99, 201, 0.35) 0%, transparent 55%),
      radial-gradient(90% 70% at 5% 100%, rgba(124, 104, 238, 0.28) 0%, transparent 55%),
      var(--dark-bg);
  }
  .hero-overlay {
    display: block;
    opacity: 0;
    transition: opacity 0.35s ease;
    background: linear-gradient(180deg, rgba(3, 6, 15, 0.62) 0%, rgba(3, 6, 15, 0.46) 42%, rgba(3, 6, 15, 0.8) 100%);
  }
  .hero.hero-video-on .hero-video,
  .hero.hero-video-on .hero-overlay { opacity: 1; }
  .hero-inner { display: none; }
  /* contenido cerca del top con padding fijo desde el header (no centrado sobre 100svh) */
  .hero {
    min-height: 0;
    display: block;
    padding: calc(96px + env(safe-area-inset-top)) 0 3.25rem;
    background:
      radial-gradient(120% 80% at 85% 0%, rgba(46, 99, 201, 0.35) 0%, transparent 55%),
      radial-gradient(90% 70% at 5% 100%, rgba(124, 104, 238, 0.28) 0%, transparent 55%),
      var(--dark-bg);
  }
  .hero-mobile {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .hero-m-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    margin-bottom: 2.1rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.04);
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(238, 242, 255, 0.9);
  }
  .hero-m-badge .dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 8px #34d399;
  }
  .hero-m-title {
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
    font-size: clamp(2.7rem, 13vw, 3.6rem);
    line-height: 1.02;
    letter-spacing: -0.01em;
    color: #fff;
    margin: 0 0 1.1rem;
    text-shadow: 0 2px 22px rgba(0, 0, 0, 0.5);
  }
  .hero-m-title .grad {
    background: linear-gradient(100deg, #9d8bff, #4fc3ff);
    -webkit-background-clip: text; background-clip: text; color: transparent;
  }
  .hero-m-tagline {
    font-family: "Space Grotesk", sans-serif;
    font-weight: 600;
    font-style: italic;
    font-size: 1.1rem;
    color: #b7abff;
    margin: 0 0 1.6rem;
  }
  .hero-m-sub {
    font-size: 1.02rem;
    line-height: 1.55;
    color: rgba(238, 242, 255, 0.82);
    max-width: 20rem;
    margin: 0;
  }
  .hero-m-actions {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    width: 100%;
    max-width: 15.5rem;
    margin-top: 2.6rem;
  }
  .hero-m-actions .btn {
    width: 100%;
    justify-content: center;
    padding-block: 0.95rem;
    font-size: 1rem;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease, border-color 0.18s ease;
  }
  .hero-m-actions .btn svg { width: 18px; height: 18px; }
  .hero-m-actions .btn:active { transform: scale(0.97); filter: brightness(1.08); }

  /* ---- Secciones: densidad mobile ---- */
  section { padding: 3rem 0; }
  .services { padding-top: 2.5rem; }
  .section-title { font-size: clamp(1.5rem, 6vw, 1.9rem); }
  .section-lead { font-size: 1rem; margin-bottom: 2rem; }

  /* intro de "Lo que ofrecemos": en mobile, texto corto que no compite con las cards.
     El título/párrafo largos de desktop se ocultan SOLO en esta sección; desktop intacto. */
  #servicios .eyebrow { display: none; }             /* kicker fuera en mobile */
  #servicios .section-title,
  #servicios .section-lead { display: none; }
  #servicios .section-title-m .grad {
    background: linear-gradient(100deg, var(--brand-1), var(--brand-2));
    -webkit-background-clip: text; background-clip: text; color: transparent;
  }
  #servicios .section-title-m {
    display: block;
    text-align: center;
    font-weight: 700;
    font-size: clamp(1.6rem, 6.5vw, 2rem);
    letter-spacing: -0.01em;
    margin: 0 0 0.55rem;
  }
  #servicios .section-lead-m {
    display: block;
    text-align: center;
    color: var(--muted);
    font-size: 1rem;
    margin: 0 auto 2rem;
    max-width: 22rem;
  }

  /* ---- Grids a una columna (catálogo apilado) ---- */
  .services-grid,
  .feature-grid,
  .callout-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* ---- Carrusel: SOLO destacados de la home ---- */
  #servicios .services-carousel {
    position: relative;
    display: flex;
    grid-template-columns: none;
    gap: 1rem;
    margin-inline: -1.25rem;
    padding: 0.5rem 1.25rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  #servicios .services-carousel::-webkit-scrollbar { display: none; }
  #servicios .services-carousel .service-card {
    min-width: 100%;
    scroll-snap-align: center;
    opacity: 1;
    transform: none;
  }

  /* cards a escala mobile: más compactas que en desktop */
  .service-card { padding: 1.6rem 1.5rem 1.3rem; }
  .service-card .service-icon {
    width: 54px; height: 54px;
    border-radius: 15px;
    margin-bottom: 1rem;
  }
  .service-card .service-icon svg { width: 30px; height: 30px; }
  .service-card h3 { font-size: 1.12rem; margin-bottom: 0.55rem; }
  .service-card p {
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 1rem;
  }
  #servicios .services-carousel .service-card p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  /* home: en desktop se ve la descripción larga (= servicios); en mobile la corta */
  #servicios .services-carousel .service-card .card-desc-pc { display: none; }
  #servicios .services-carousel .service-card .card-desc-m {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .service-card .card-arrow { width: 46px; height: 46px; }
  .service-card .card-arrow svg { width: 20px; height: 20px; }

  /* Link "Ver todos los servicios" debajo de los dots del carrusel */
  #servicios .services-all-link {
    display: block;
    text-align: center;
    margin-top: 1rem;
    color: var(--brand-1);
    font-family: "Space Grotesk", sans-serif;
    font-weight: 600;
    font-size: 0.98rem;
    text-decoration: none;
  }

  /* ---- Transición entre secciones (evita el corte brusco) ---- */
  .testimonials {
    position: relative;
    padding-top: 3.75rem;
    margin-top: 0.5rem;
  }
  .testimonials::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 56px;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--brand-1), var(--brand-2));
  }

  /* ---- Testimonios: mismo swipe que los servicios ---- */
  .testimonials-grid.t-carousel {
    position: relative;
    display: flex;
    grid-template-columns: none;
    gap: 1rem;
    margin-inline: -1.25rem;
    padding: 0.5rem 1.25rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .testimonials-grid.t-carousel::-webkit-scrollbar { display: none; }
  .t-carousel .testimonial {
    min-width: 100%;
    scroll-snap-align: center;
    opacity: 1;
    transform: none;
    padding: 2.2rem 1.7rem 1.7rem;
  }
  .t-carousel .testimonial blockquote { font-size: 1.04rem; }
  .testimonials .section-title { margin-bottom: 1.6rem; }

  /* ---- CTA de la home: redundante en mobile, el FAB la cubre (las paginas
     de detalle conservan su CTA con mensaje prellenado por servicio) ---- */
  .cta--home { display: none; }

  .carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.1rem;
  }

  /* ==========================================================================
     PÁGINAS INTERIORES (índices + detalle + contacto) — rediseño mobile-native
     Criterio: heros compactos y centrados (patrón de la home) y catálogos como
     LISTAS escaneables (ícono | título + descripción | flechita circular), no
     torres de cards apiladas.
     ========================================================================== */

  /* ---- Hero interior: compacto, centrado, cerca del top ---- */
  .page-hero,
  .page-hero--detail {
    padding-top: calc(84px + env(safe-area-inset-top));
    padding-bottom: 2.4rem;
  }
  /* breadcrumb en una sola línea deslizable (en detalle orienta: Inicio › ... › Servicio) */
  .page-hero .breadcrumb {
    text-align: center;
    white-space: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    font-size: 0.82rem;
    margin: 0 0 1.5rem;
  }
  .page-hero .breadcrumb::-webkit-scrollbar { display: none; }
  .detail-hero-grid { grid-template-columns: 1fr; gap: 0; }
  .detail-hero-grid > div:first-child {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .page-hero h1,
  .page-hero--detail h1 {
    font-size: clamp(1.9rem, 8.5vw, 2.5rem);
    line-height: 1.12;
  }
  /* leads: los índices usan el texto corto -m; el detalle conserva el compartido */
  .page-lead {
    font-size: 1rem;
    line-height: 1.55;
    max-width: 21rem;
    margin: 0.7rem auto 0;
  }
  .page-lead-pc { display: none; }
  .page-lead-m {
    display: block;
    font-size: 1rem;
    line-height: 1.55;
    color: rgba(238, 242, 255, 0.82);
    max-width: 20rem;
    margin: 0.7rem auto 0;
  }
  .stat-badges {
    justify-content: center;
    gap: 0.45rem;
    margin: 1.4rem 0 0;
  }
  .stat-badges .badge {
    font-size: 0.78rem;
    padding: 0.32rem 0.85rem;
  }
  /* cluster decorativo del desktop: afuera; los badges ponen el color */
  .hero-cluster { display: none; }
  /* emblema del detalle = chip chico tipo ícono de app, arriba del título */
  .hero-emblem { width: auto; height: auto; order: -1; margin: 0 auto 1.15rem; }
  .hero-emblem::before,
  .hero-emblem::after { display: none; }
  .hero-emblem-chip { width: 68px; height: 68px; border-radius: 20px; }
  .hero-emblem-chip svg { width: 38px; height: 38px; }
  /* acciones del hero del detalle: FUERA en mobile (el FAB cubre WhatsApp y
     "Ver otros" vive en el crosslink de abajo y en el menú); el hero cierra
     con los badges, más liviano */
  .hero-actions--detail { display: none; }

  /* ---- Catálogo como LISTA nativa (índices; NO toca el carrusel de la home) ---- */
  .service-group { margin-top: 2.3rem; }
  .group-title { font-size: 1.35rem; margin-bottom: 1.1rem; gap: 0.9rem; }
  .services-grid:not(.services-carousel) { gap: 0.8rem; }
  .services-grid:not(.services-carousel) .service-card {
    display: grid;
    grid-template-columns: 46px 1fr 38px;
    grid-template-areas:
      "icon title arrow"
      "icon desc  arrow";
    align-items: center;
    column-gap: 0.95rem;
    row-gap: 0.2rem;
    padding: 1.05rem 1.1rem;
    border-radius: 18px;
  }
  .services-grid:not(.services-carousel) .service-card:active { transform: scale(0.985); }
  .services-grid:not(.services-carousel) .service-card .service-icon {
    grid-area: icon;
    width: 46px; height: 46px;
    border-radius: 13px;
    margin: 0;
  }
  .services-grid:not(.services-carousel) .service-card .service-icon svg { width: 25px; height: 25px; }
  .services-grid:not(.services-carousel) .service-card h3 {
    grid-area: title;
    font-size: 1.02rem;
    line-height: 1.3;
    margin: 0;
  }
  .services-grid:not(.services-carousel) .service-card p {
    grid-area: desc;
    font-size: 0.84rem;
    line-height: 1.45;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  /* cards con par -pc/-m en listados: mobile muestra la corta */
  .services-grid:not(.services-carousel) .service-card .card-desc-pc { display: none; }
  .services-grid:not(.services-carousel) .service-card .card-arrow {
    grid-area: arrow;
    width: 38px; height: 38px;
    margin: 0;
  }
  .services-grid:not(.services-carousel) .service-card .card-arrow svg { width: 17px; height: 17px; }

  /* ---- Detalle: el párrafo intro de "El servicio" es redundante en mobile
     (el lead del hero ya presenta el servicio y las feature cards lo
     desarrollan); solo detalle, la home y los listados no se tocan ---- */
  .page-hero--detail + .services .section-lead { display: none; }
  /* el título de sección como ancla: escala grande y palabra con gradiente
     (el span.grad del HTML es inerte en desktop) */
  .page-hero--detail + .services .section-title {
    font-size: clamp(1.7rem, 7.5vw, 2.1rem);
    letter-spacing: -0.01em;
    margin-bottom: 1.4rem;
  }
  .page-hero--detail + .services .section-title .grad {
    background: linear-gradient(100deg, var(--brand-1), var(--brand-2));
    -webkit-background-clip: text; background-clip: text; color: transparent;
  }

  /* ---- Detalle: bullets del servicio como filas (ícono | texto) ---- */
  .feature-grid { gap: 0.85rem; }
  .feature-grid .feature-card {
    display: grid;
    grid-template-columns: 48px 1fr;
    grid-template-areas:
      "icon title"
      "icon desc";
    align-items: center;
    column-gap: 1rem;
    row-gap: 0.25rem;
    padding: 1.15rem 1.2rem;
    border-radius: 18px;
  }
  .feature-grid .feature-card .service-icon {
    grid-area: icon;
    width: 48px; height: 48px;
    border-radius: 14px;
    margin: 0;
  }
  .feature-grid .feature-card .service-icon svg { width: 26px; height: 26px; }
  .feature-grid .feature-card h3 { grid-area: title; font-size: 1.02rem; margin: 0; }
  .feature-grid .feature-card p { grid-area: desc; font-size: 0.88rem; line-height: 1.5; margin: 0; }

  /* ---- Callouts: banda tintada full-bleed que corta el blanco (ritmo) ---- */
  .callout-grid {
    position: relative;
    margin-inline: -1.25rem;
    margin-top: 2.4rem;
    padding: 2.2rem 1.25rem 2.4rem;
    gap: 0.9rem;
    background:
      radial-gradient(120% 90% at 85% 0%, color-mix(in srgb, var(--accent) 9%, transparent) 0%, transparent 60%),
      color-mix(in srgb, var(--accent) 5%, var(--bg));
  }
  .callout-grid::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 56px;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--accent), var(--brand-2));
  }
  .callout {
    min-width: 0; /* que los chips nowrap no inflen la columna del grid */
    padding: 1.3rem 1.25rem;
    gap: 0.95rem;
    border-radius: 18px;
  }
  .callout > div { min-width: 0; } /* permite que la fila de chips scrollee en vez de empujar */
  .callout .service-icon { width: 46px; height: 46px; border-radius: 13px; }
  .callout .service-icon svg { width: 25px; height: 25px; }
  .callout h3 { font-size: 1.02rem; margin-bottom: 0.35rem; }
  .callout p { font-size: 0.9rem; line-height: 1.55; }
  /* chips de herramientas en fila deslizable */
  .tool-badges {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  .tool-badges::-webkit-scrollbar { display: none; }
  .tool-badges span { flex-shrink: 0; }

  /* modo oscuro: la banda necesita más presencia del acento para definirse */
  :root[data-theme="dark"] .callout-grid,
  :root[data-theme="dark"] .shot-grid {
    background:
      radial-gradient(120% 90% at 85% 0%, color-mix(in srgb, var(--accent) 17%, transparent) 0%, transparent 60%),
      color-mix(in srgb, var(--accent) 9%, var(--bg));
  }

  /* ---- Movimiento para todos: la entrada escalonada (.reveal) corre en mobile
     aunque el sistema tenga animaciones reducidas (mismo criterio que el
     carrusel; el resto de reduced-motion se respeta) ---- */
  @media (prefers-reduced-motion: reduce) {
    .reveal {
      opacity: 0;
      transform: translateY(22px);
      transition: opacity 0.6s ease, transform 0.6s ease;
      transition-delay: calc(var(--i, 0) * 90ms);
    }
    .reveal.in { opacity: 1; transform: none; }
  }

  /* ---- Galería "Así se ve": swipe horizontal sobre banda tintada del acento
     de cada página (misma idea de ritmo que los callouts; solo detalles la tienen) ---- */
  .shot-grid {
    position: relative;
    display: flex;
    grid-template-columns: none;
    gap: 1rem;
    margin-inline: -1.25rem;
    margin-top: 0.4rem;
    padding: 2rem 1.25rem 2.2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    background:
      radial-gradient(120% 90% at 15% 0%, color-mix(in srgb, var(--accent) 9%, transparent) 0%, transparent 60%),
      color-mix(in srgb, var(--accent) 5%, var(--bg));
  }
  .shot-grid::-webkit-scrollbar { display: none; }
  .shot { min-width: 80%; scroll-snap-align: center; }
  .crosslink { margin-top: 2.4rem; }

  /* ---- Contacto mobile: panel de WhatsApp protagonista + canales como filas ---- */
  .contact-hub { grid-template-columns: 1fr; gap: 0.9rem; }
  /* panel principal centrado, con el criterio del hero */
  .contact-main {
    align-items: center;
    text-align: center;
    padding: 1.9rem 1.4rem 1.5rem;
    border-radius: 20px;
  }
  .contact-main .service-icon {
    width: 56px; height: 56px;
    border-radius: 16px;
    margin-bottom: 0.9rem;
  }
  .contact-main .service-icon svg { width: 30px; height: 30px; }
  .contact-main h2 { font-size: 1.35rem; margin-bottom: 0.2rem; }
  .contact-main .contact-value { font-size: 0.95rem; }
  .contact-main > p:not(.contact-value) {
    font-size: 0.95rem;
    line-height: 1.55;
    max-width: 21rem;
  }
  /* pasos: bloque centrado, ítems alineados a la izquierda */
  .contact-steps {
    width: fit-content;
    margin: 1.2rem auto 1.5rem;
    gap: 0.6rem;
    text-align: left;
  }
  .contact-steps li { font-size: 0.93rem; gap: 0.7rem; }
  .contact-steps li span { width: 26px; height: 26px; font-size: 0.8rem; }
  .btn-wa {
    width: 100%;
    justify-content: center;
    padding-block: 0.95rem;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
  }
  .btn-wa:active { transform: scale(0.97); filter: brightness(1.06); }

  /* canales secundarios = filas de acción (mismo patrón que el catálogo) */
  .contact-side { gap: 0.8rem; }
  .contact-side .contact-card {
    display: grid;
    grid-template-columns: 46px 1fr 42px;
    grid-template-areas:
      "icon name  go"
      "icon value go";
    align-items: center;
    column-gap: 0.95rem;
    row-gap: 0.1rem;
    padding: 1.05rem 1.1rem;
    border-radius: 18px;
  }
  /* la card sin link (Zona) no reserva la columna de la flecha */
  .contact-side .contact-card:not(:has(.contact-link)) {
    grid-template-columns: 46px 1fr;
    grid-template-areas:
      "icon name"
      "icon value";
  }
  .contact-side .contact-card:active { transform: scale(0.985); }
  .contact-side .contact-card .service-icon {
    grid-area: icon;
    width: 46px; height: 46px;
    border-radius: 13px;
    margin: 0;
  }
  .contact-side .contact-card .service-icon svg { width: 24px; height: 24px; }
  .contact-side .contact-card h3 { grid-area: name; font-size: 1.02rem; margin: 0; }
  .contact-side .contact-card .contact-value {
    grid-area: value;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--muted);
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  /* la prosa descriptiva es de desktop; en mobile la fila habla sola */
  .contact-side .contact-card > p:not(.contact-value) { display: none; }
  /* Instagram (la card con link): carta grande, espejo del panel de WhatsApp */
  .contact-side .contact-card:has(.contact-link) {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.9rem 1.4rem 1.5rem;
    border-radius: 20px;
  }
  .contact-side .contact-card:has(.contact-link) .service-icon {
    width: 56px; height: 56px;
    border-radius: 16px;
    margin: 0 0 0.9rem;
  }
  .contact-side .contact-card:has(.contact-link) .service-icon svg { width: 30px; height: 30px; }
  .contact-side .contact-card:has(.contact-link) h3 { font-size: 1.35rem; margin-bottom: 0.2rem; }
  .contact-side .contact-card:has(.contact-link) .contact-value {
    font-size: 0.95rem;
    white-space: normal;
  }
  .contact-side .contact-card:has(.contact-link) > p:not(.contact-value) {
    display: block;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.55;
    max-width: 21rem;
    margin: 0 0 1.4rem;
  }
  .contact-side .contact-card:has(.contact-link) .contact-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    margin: auto 0 0;
    padding: 0.95rem 1.6rem;
    border-radius: 14px;
    background: var(--accent);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 10px 26px color-mix(in srgb, var(--accent) 35%, transparent);
    transition: transform 0.18s ease, filter 0.18s ease, box-shadow 0.18s ease;
  }
  .contact-side .contact-card:has(.contact-link) .contact-link:active {
    transform: scale(0.97);
    filter: brightness(1.08);
  }

  /* ---- CTA ---- */
  .cta-card { padding: 2.5rem 1.5rem; border-radius: 22px; }
  .cta-card h2 { font-size: clamp(1.5rem, 6vw, 2rem); }
  .cta-card p { font-size: 1rem; }
  .cta-card .btn { width: 100%; justify-content: center; padding-block: 0.95rem; }

  /* ---- Botones grandes para touch ---- */
  .btn { padding: 0.9rem 1.6rem; }

  /* ---- Footer apilado ---- */
  .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; padding: 3rem 0 2.5rem; }
  .footer-social { justify-self: start; }
  .footer-brand p { max-width: none; }
  .social-links { gap: 0.7rem; }
  .social-links a {
    min-height: 48px;
    padding: 0.6rem 1rem;
    border: 1px solid var(--line);
    border-radius: 12px;
  }

  /* ---- FAB de WhatsApp: fijo al viewport, visible desde scroll 0 en toda la página ---- */
  .wa-fab {
    display: grid;
    place-items: center;
    position: fixed;
    right: calc(1rem + env(safe-area-inset-right));
    bottom: calc(1rem + env(safe-area-inset-bottom));
    width: 56px; height: 56px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    box-shadow: 0 10px 28px rgba(37, 211, 102, 0.5);
    z-index: 45;
  }
  .wa-fab svg { width: 30px; height: 30px; }
}
