/* =====================================================================
   MÁRMOLES MAGA — Hoja de estilos
   Réplica del sitio https://marmolesmaga.com.mx/staging/
   Orden: 1) Variables  2) Reset/base  3) Utilidades  4) Botones
          5) Topbar  6) Header/Nav  7) Hero  8) Diferenciadores
          9) Secciones (títulos)  10) Promos slider  11) Productos flip
          12) Proyectos  13) Testimonios  14) Experiencia  15) FAQ
          16) Contacto/Form  17) Footer  18) WhatsApp float
          19) Animaciones reveal  20) Responsive
   ===================================================================== */

/* ================= 1 · VARIABLES ================= */
:root {
  /* Paleta oficial */
  --blue:        #1865AB;   /* azul MAGA (marca)          */
  --blue-dark:   #124e84;   /* azul hover                 */
  --ink:         #1d1d1d;   /* barras y secciones oscuras */
  --text:        #333333;   /* texto de cuerpo            */
  --muted:       #8d8d8d;   /* enlaces de nav             */
  --gray-1:      #e0e0e0;   /* fondo claro A              */
  --gray-2:      #ebebeb;   /* fondo claro B              */
  --white:       #ffffff;
  --olive-1:     #304417;   /* degradado botón ahorro     */
  --olive-2:     #443f0c;

  /* Tipografías */
  --font-ui:     "Montserrat", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif:  "Playfair Display", Georgia, "Times New Roman", serif;
  --font-alt:    "Roboto", var(--font-ui);

  /* Medidas */
  --container:   1200px;
  --radius:      3px;
  --header-h:    92px;
  --ease:        cubic-bezier(.22,.61,.36,1);

  /* Base de recursos gráficos (documentación) */
  --img-base:    "img/";
}

/* ================= 2 · RESET / BASE ================= */
*,*::before,*::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-ui);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }
input, textarea { font-family: inherit; font-size: 1rem; }
h1,h2,h3,h4 { line-height: 1.2; font-weight: 700; }

/* Accesibilidad: saltar al contenido */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 2000;
  background: var(--blue); color: #fff; padding: 10px 16px; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

/* ================= 3 · UTILIDADES ================= */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 22px; }
.section-light { background: var(--gray-1); }
.section-gray  { background: var(--gray-2); }

/* ================= 4 · BOTONES ================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--font-ui); font-weight: 600; font-size: .9rem; letter-spacing: .3px;
  padding: 12px 26px; border-radius: var(--radius); border: 1px solid transparent;
  transition: background-color .3s var(--ease), color .3s var(--ease),
              border-color .3s var(--ease), transform .25s var(--ease), box-shadow .3s var(--ease);
  will-change: transform;
}
.btn__arrow { transition: transform .3s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(5px); }

.btn--primary { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn--primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); transform: translateY(-2px); box-shadow: 0 10px 22px rgba(24,101,171,.28); }

.btn--glass { background: rgba(255,255,255,.18); color: #fff; border-color: rgba(255,255,255,.7); backdrop-filter: blur(4px); }
.btn--glass:hover { background: var(--blue); border-color: var(--blue); transform: translateY(-2px); }

.btn--outline { background: transparent; color: #fff; border: 2px solid #fff; }
.btn--outline:hover { background: #fff; color: var(--ink); transform: translateY(-2px); }

.btn--white { background: #fff; color: var(--blue); border-color: #fff; }
.btn--white:hover { background: transparent; color: #fff; }

.btn--lg    { padding: 15px 32px; font-size: .95rem; }
.btn--block { width: 100%; }

/* ================= 5 · TOPBAR ================= */
.topbar { background: var(--ink); color: #d8d8d8; font-size: .8rem; position: relative; z-index: 60; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; min-height: 44px; }
.topbar__social { display: flex; align-items: center; gap: 18px; }
.topbar__social a { color: #cfcfcf; display: inline-flex; transition: color .25s var(--ease), transform .25s var(--ease); }
.topbar__social a:hover { color: #fff; transform: translateY(-2px); }
.topbar__promo {
  display: inline-block; color: #fff; font-weight: 700; font-size: .78rem; letter-spacing: .6px;
  padding: 8px 20px; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--olive-1), var(--olive-2));
  transition: filter .3s var(--ease), transform .25s var(--ease);
}
.topbar__promo:hover { filter: brightness(1.18); transform: translateY(-1px); }

/* ================= 6 · HEADER / NAV ================= */
.header {
  position: sticky; top: 0; z-index: 50;
  background: transparent;
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease), padding .35s var(--ease);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }
.header__logo img { width: 175px; height: auto; transition: width .35s var(--ease); }

/* Fondo sólido al hacer scroll (clase añadida por JS) */
.header.is-scrolled { background: var(--ink); box-shadow: 0 4px 22px rgba(0,0,0,.28); }
.header.is-scrolled .header__inner { min-height: 72px; }
.header.is-scrolled .header__logo img { width: 145px; }

.nav__list { display: flex; align-items: center; gap: 30px; }
.nav__link {
  position: relative; color: var(--muted); font-weight: 600; font-size: .82rem;
  text-transform: uppercase; letter-spacing: .5px; padding: 6px 0;
  transition: color .25s var(--ease);
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--blue); transition: width .3s var(--ease);
}
.nav__link:hover, .nav__link.is-active { color: #fff; }
.header:not(.is-scrolled) .nav__link:hover,
.header:not(.is-scrolled) .nav__link.is-active { color: #fff; }
.nav__link:hover::after, .nav__link.is-active::after { width: 100%; }
.nav__cta-item .btn { color: #fff; }

/* Hamburguesa */
.nav-toggle { display: none; width: 46px; height: 40px; border: 1px solid rgba(255,255,255,.4); border-radius: var(--radius); position: relative; }
.nav-toggle span { position: absolute; left: 11px; right: 11px; height: 2px; background: #fff; transition: transform .3s var(--ease), opacity .2s var(--ease); }
.nav-toggle span:nth-child(1) { top: 13px; }
.nav-toggle span:nth-child(2) { top: 19px; }
.nav-toggle span:nth-child(3) { top: 25px; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ================= 7 · HERO ================= */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; color: #fff; overflow: hidden; margin-top: calc(var(--header-h) * -1); padding-top: var(--header-h); }
.hero__slideshow { position: absolute; inset: 0; z-index: 0; background: var(--ink); }
.hero__slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.6s ease-in-out; transform: scale(1.06);
}
.hero__slide.is-active { opacity: 1; animation: kenburns 8s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.12); } }
.hero__overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(15,18,22,.86) 0%, rgba(15,18,22,.55) 45%, rgba(15,18,22,.30) 100%); }
.hero__content { position: relative; z-index: 2; max-width: 100%; padding-block: 60px; }

.hero__title { display: flex; flex-direction: column; margin-bottom: 18px; }
.hero__eyebrow { font-weight: 300; font-size: clamp(.95rem, 2vw, 1.25rem); letter-spacing: 3px; text-transform: uppercase; }
.hero__title-lg { font-family: var(--font-ui); font-weight: 300; font-size: clamp(3.4rem, 11vw, 7rem); line-height: 1; letter-spacing: -1px; }
.hero__title-script {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  font-size: clamp(2.3rem, 7.5vw, 4.4rem); line-height: 1.05; margin-top: 4px;
  padding-bottom: 14px; border-bottom: 2px solid rgba(255,255,255,.55); width: fit-content;
}
.hero__subtitle { max-width: 540px; font-size: clamp(1rem, 1.6vw, 1.15rem); color: #e9e9e9; margin-bottom: 30px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; }

/* ================= 8 · DIFERENCIADORES ================= */
.features { background: var(--ink); color: #fff; padding: 0; }
.features__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.feature { padding: 54px 34px; text-align: center; border-right: 1px solid rgba(255,255,255,.09); transition: background-color .35s var(--ease), transform .35s var(--ease); }
.feature:last-child { border-right: 0; }
.feature:hover { background: rgba(255,255,255,.04); transform: translateY(-6px); }
.feature__icon { color: var(--blue); display: inline-flex; margin-bottom: 18px; transition: transform .4s var(--ease); }
.feature:hover .feature__icon { transform: translateY(-4px) scale(1.08); }
.feature__title { color: var(--blue); font-size: 1.05rem; font-weight: 600; text-transform: uppercase; letter-spacing: .4px; margin-bottom: 12px; }
.feature__text { color: #c9c9c9; font-size: .92rem; }

/* ================= 9 · SECCIONES (cabeceras) ================= */
section[class*="section"], .promos, .products, .projects, .testimonials, .experience, .faq, .contact { padding-block: 84px; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 52px; }
.section-head--left { text-align: left; margin-inline: 0; }
.section-eyebrow { font-family: var(--font-ui); font-weight: 500; font-size: clamp(1.1rem, 2.4vw, 1.45rem); color: var(--blue); margin-bottom: 6px; }
.section-eyebrow--light { color: #fff; opacity: .92; }
.section-title { font-family: var(--font-serif); font-weight: 700; font-size: clamp(1.9rem, 4.5vw, 2.6rem); color: var(--blue); line-height: 1.15; }
.section-title--light { color: #fff; }
.section-title--sm { font-size: clamp(1.5rem, 3.5vw, 2rem); }
.section-head--light { text-align: center; max-width: 820px; margin: 0 auto 52px; }

/* ================= 10 · PROMOS SLIDER ================= */
.slider { position: relative; max-width: 1040px; margin-inline: auto; }
.slider__viewport { overflow: hidden; border-radius: 6px; box-shadow: 0 20px 50px rgba(0,0,0,.16); }
.slider__track { display: flex; transition: transform .6s var(--ease); }
.slider__slide { min-width: 100%; }
.slider__slide img { width: 100%; aspect-ratio: 1240 / 600; object-fit: cover; }
.slider__btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.9); color: var(--blue);
  font-size: 1.7rem; line-height: 1; display: grid; place-items: center; box-shadow: 0 6px 16px rgba(0,0,0,.2);
  transition: background-color .25s var(--ease), transform .25s var(--ease);
}
.slider__btn:hover { background: var(--blue); color: #fff; }
.slider__btn--prev { left: -12px; }
.slider__btn--next { right: -12px; }
.slider__dots { display: flex; justify-content: center; gap: 10px; margin-top: 22px; }
.slider__dots button { width: 11px; height: 11px; border-radius: 50%; background: rgba(24,101,171,.28); transition: background-color .25s var(--ease), transform .25s var(--ease); }
.slider__dots button.is-active { background: var(--blue); transform: scale(1.25); }

/* ================= 11 · PRODUCTOS (flip cards) ================= */
.products__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.flip-card { perspective: 1400px; height: 400px; border-radius: 6px; }
.flip-card__inner { position: relative; width: 100%; height: 100%; transition: transform .7s var(--ease); transform-style: preserve-3d; }
.flip-card:hover .flip-card__inner, .flip-card:focus-visible .flip-card__inner, .flip-card.is-flipped .flip-card__inner { transform: rotateY(180deg); }
.flip-card__face { position: absolute; inset: 0; backface-visibility: hidden; border-radius: 6px; overflow: hidden; display: flex; }
.flip-card__front { background-size: cover; background-position: center; align-items: flex-end; }
.flip-card__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.78) 100%); }
.flip-card__body { position: relative; z-index: 2; padding: 26px; color: #fff; }
.flip-card__title { font-family: var(--font-alt); font-weight: 600; font-size: 1.35rem; color: #fff; margin-bottom: 8px; }
.flip-card__text { font-size: .9rem; color: #eaeaea; }
.flip-card__back { background: var(--blue); color: #fff; transform: rotateY(180deg); flex-direction: column; align-items: center; justify-content: center; gap: 20px; text-align: center; padding: 26px; }
.flip-card__back .flip-card__title { font-size: 1.5rem; }

/* ================= 12 · PROYECTOS ================= */
.projects { position: relative; color: #fff; overflow: hidden; }
.projects__bg { position: absolute; inset: 0; z-index: 0; background: var(--ink) url("https://marmolesmaga.com.mx/staging/wp-content/uploads/2026/05/oficina-maga.jpg") center/cover fixed; }
.projects__bg::after { content: ""; position: absolute; inset: 0; background: rgba(18,20,24,.86); }
.projects__content { position: relative; z-index: 1; }
.projects__gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.project-card { position: relative; border-radius: 6px; overflow: hidden; }
.project-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .6s var(--ease); }
.project-card:hover img { transform: scale(1.08); }
.project-card figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 16px; z-index: 2;
  font-weight: 600; font-size: .95rem; color: #fff;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.75));
  transform: translateY(6px); opacity: .95; transition: transform .35s var(--ease);
}
.project-card:hover figcaption { transform: translateY(0); }
.projects .products__cta { margin-top: 44px; }

/* ================= 13 · TESTIMONIOS ================= */
.testimonials__carousel { position: relative; max-width: 900px; margin-inline: auto; }
.testimonials__viewport { overflow: hidden; }
.testimonials__track { display: flex; transition: transform .6s var(--ease); }
.testimonial { min-width: 100%; padding: 40px 26px; text-align: center; }
.testimonial__stars { color: #f2b01e; letter-spacing: 3px; font-size: 1.25rem; margin-bottom: 18px; }
.testimonial__quote { font-size: clamp(1.02rem, 2vw, 1.2rem); font-style: italic; color: #444; max-width: 760px; margin: 0 auto 22px; }
.testimonial__author { font-weight: 700; color: var(--blue); font-size: 1.02rem; }
.testimonials .slider__btn--prev { left: -6px; }
.testimonials .slider__btn--next { right: -6px; }

/* ================= 14 · EXPERIENCIA MAGA ================= */
.experience { background: var(--blue); color: #fff; }
.experience__head { text-align: center; max-width: 820px; margin: 0 auto 54px; }
.experience__head .btn { margin-top: 26px; }
.experience__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 34px; max-width: 1040px; margin-inline: auto; }
.pillar { text-align: center; padding: 8px; }
.pillar__icon { display: inline-flex; color: #fff; margin-bottom: 14px; padding: 16px; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; transition: background-color .3s var(--ease), transform .3s var(--ease); }
.pillar:hover .pillar__icon { background: rgba(255,255,255,.14); transform: translateY(-4px); }
.pillar__title { text-transform: uppercase; letter-spacing: .5px; font-size: 1rem; font-weight: 600; margin-bottom: 8px; }
.pillar__text { font-size: .9rem; color: #dbe7f2; }

/* ================= 15 · FAQ ================= */
.faq__inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 54px; align-items: start; }
.accordion { border-top: 1px solid #d3d3d3; }
.accordion__item { border-bottom: 1px solid #d3d3d3; }
.accordion__trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 4px; text-align: left; font-family: var(--font-ui); font-weight: 600; font-size: 1.02rem; color: var(--ink);
  transition: color .25s var(--ease);
}
.accordion__trigger:hover { color: var(--blue); }
.accordion__icon { position: relative; width: 18px; height: 18px; flex: none; }
.accordion__icon::before, .accordion__icon::after { content: ""; position: absolute; background: var(--blue); transition: transform .3s var(--ease); }
.accordion__icon::before { top: 8px; left: 0; width: 18px; height: 2px; }
.accordion__icon::after  { left: 8px; top: 0; width: 2px; height: 18px; }
.accordion__trigger[aria-expanded="true"] .accordion__icon::after { transform: scaleY(0); }
.accordion__panel { overflow: hidden; height: 0; transition: height .35s var(--ease); }
.accordion__panel p { padding: 0 4px 22px; color: #555; font-size: .95rem; }

.faq__cta { background: var(--blue); color: #fff; border-radius: 8px; padding: 40px 32px; text-align: center; }
.faq__cta-title { font-family: var(--font-serif); font-size: 1.6rem; margin-bottom: 6px; }
.faq__cta p { margin-bottom: 20px; color: #e5eef7; }
.faq__cta .btn--primary { background: #fff; color: var(--blue); border-color: #fff; }
.faq__cta .btn--primary:hover { background: transparent; color: #fff; }

/* ================= 16 · CONTACTO / FORM ================= */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: start; }
.tabs__nav { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.tabs__tab { padding: 10px 16px; border-radius: var(--radius); background: #fff; color: var(--text); font-weight: 600; font-size: .85rem; border: 1px solid #d4d4d4; transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease); }
.tabs__tab:hover { border-color: var(--blue); color: var(--blue); }
.tabs__tab.is-active { background: var(--blue); color: #fff; border-color: var(--blue); }
.tabs__panel { display: none; animation: fadeIn .4s var(--ease); }
.tabs__panel.is-active { display: block; }
.tabs__panel h3 { font-family: var(--font-serif); color: var(--blue); font-size: 1.4rem; margin-bottom: 10px; }
.tabs__panel p { margin-bottom: 12px; color: #4a4a4a; }
.link-arrow { color: var(--blue); font-weight: 600; }
.link-arrow:hover { text-decoration: underline; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.contact-form { background: #fff; padding: 32px; border-radius: 8px; box-shadow: 0 14px 40px rgba(0,0,0,.08); }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .82rem; margin-bottom: 6px; color: #444; }
.field input, .field textarea { width: 100%; padding: 12px 14px; border: 1px solid #d0d0d0; border-radius: var(--radius); background: #fafafa; transition: border-color .25s var(--ease), box-shadow .25s var(--ease); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(24,101,171,.15); background: #fff; }
.field textarea { resize: vertical; }
.form-status { margin-top: 14px; font-size: .9rem; font-weight: 600; color: var(--blue); min-height: 1.2em; }

/* ================= 17 · FOOTER ================= */
.footer { background: var(--ink); color: #b9b9b9; padding-top: 64px; font-size: .9rem; }
.footer__inner { display: grid; grid-template-columns: 1.5fr repeat(5, 1fr); gap: 34px; padding-bottom: 46px; }
.footer__logo { width: 165px; margin-bottom: 18px; }
.footer__about { color: #a7a7a7; margin-bottom: 20px; max-width: 320px; }
.footer__social { display: flex; gap: 14px; }
.footer__social a { color: #cfcfcf; display: inline-flex; transition: color .25s var(--ease), transform .25s var(--ease); }
.footer__social a:hover { color: var(--blue); transform: translateY(-3px); }
.footer__title { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 16px; }
.footer__col ul li { margin-bottom: 10px; }
.footer__col a { color: #a7a7a7; transition: color .25s var(--ease), padding-left .25s var(--ease); }
.footer__col a:hover { color: #fff; padding-left: 4px; }
.footer__bar { border-top: 1px solid rgba(255,255,255,.1); padding-block: 20px; }
.footer__bar-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.footer__bar a { color: #dcdcdc; font-weight: 600; }
.footer__bar a:hover { color: var(--blue); }
.footer__copy { color: #8f8f8f; font-size: .82rem; }

/* ================= 18 · WHATSAPP FLOAT ================= */
.whatsapp-float {
  position: fixed; left: 22px; bottom: 22px; z-index: 100;
  width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff;
  display: grid; place-items: center; box-shadow: 0 8px 24px rgba(37,211,102,.45);
  animation: waPulse 2.4s infinite; transition: transform .25s var(--ease);
}
.whatsapp-float:hover { transform: scale(1.1); }
@keyframes waPulse { 0%,100% { box-shadow: 0 8px 24px rgba(37,211,102,.45); } 50% { box-shadow: 0 8px 34px rgba(37,211,102,.75); } }

/* ================= 19 · ANIMACIONES REVEAL ================= */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ================= 20 · RESPONSIVE ================= */
@media (max-width: 1024px) {
  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .feature:nth-child(2) { border-right: 0; }
  .feature { border-bottom: 1px solid rgba(255,255,255,.09); }
  .products__grid { grid-template-columns: repeat(2, 1fr); }
  .projects__gallery { grid-template-columns: repeat(2, 1fr); }
  .experience__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

/* Tablet / móvil: menú hamburguesa */
@media (max-width: 900px) {
  :root { --header-h: 78px; }
  .header__inner { position: relative; }
  .nav-toggle { display: block; order: 3; }
  .header .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--ink); border-top: 1px solid rgba(255,255,255,.08);
    max-height: 0; overflow: hidden; transition: max-height .4s var(--ease);
    box-shadow: 0 18px 30px rgba(0,0,0,.3);
  }
  .header .nav.is-open { max-height: 560px; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0; }
  .nav__list li { border-bottom: 1px solid rgba(255,255,255,.06); }
  .nav__link { display: block; padding: 15px 24px; color: #ddd; }
  .nav__link::after { display: none; }
  .nav__cta-item { padding: 14px 24px; }
  .nav__cta-item .btn { width: 100%; }
  .header { background: var(--ink); } /* barra sólida en móvil para legibilidad del logo */
  .faq__inner { grid-template-columns: 1fr; gap: 34px; }
  .contact__grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  section[class*="section"], .promos, .products, .projects, .testimonials, .experience, .faq, .contact { padding-block: 58px; }
  .features__grid { grid-template-columns: 1fr; }
  .feature { border-right: 0; }
  .products__grid { grid-template-columns: 1fr; }
  .projects__gallery { grid-template-columns: 1fr 1fr; }
  .experience__grid { grid-template-columns: 1fr; gap: 30px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .slider__btn--prev { left: 6px; }
  .slider__btn--next { right: 6px; }
  .hero__content { padding-block: 40px; }
  .projects__bg { background-attachment: scroll; }
  .topbar__promo { font-size: .68rem; padding: 7px 12px; }
}

@media (max-width: 460px) {
  .footer__inner { grid-template-columns: 1fr; }
  .topbar__social { gap: 13px; }
  .projects__gallery { grid-template-columns: 1fr; }
}

/* Respeta la preferencia de movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .hero__slide.is-active { animation: none; }
}
