* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", sans-serif;
}

body {
    background: #fff;
    color: #333;
}

/* HEADER */
.header {
    display: flex;
    justify-content: space-between;
    padding: 20px 60px;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
}

.header nav a {
    margin-left: 20px;
    text-decoration: none;
    color: #444;
    font-weight: 500;
}

/* HERO */
/* HERO (mejorado + responsive) */
.hero {
  background: url("../img/hero.jpg") center/cover no-repeat;
  height: 420px;
  display: flex;
  align-items: center;

  /* mejor responsive que solo padding-left */
  padding: 0 24px;
}

/* Contenedor del texto */
.hero-content {
  background: rgba(255, 255, 255, 0.78);
  padding: 30px;
  border-radius: 12px;
  max-width: 560px;

  /* look más pro */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.55);
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.hero h1 {
  font-size: 32px;
  margin-bottom: 15px;
  line-height: 1.15;
}

/* Desktop grande: recuperamos tu look con “espacio a la izquierda” */
@media (min-width: 900px) {
  .hero {
    padding-left: 80px;
    padding-right: 24px;
  }
}

/* Tablet */
@media (max-width: 900px) {
  .hero {
    height: 380px;
  }
  .hero h1 {
    font-size: 28px;
  }
}

/* Móvil */
@media (max-width: 520px) {
  .hero {
    height: 340px;
    padding: 0 16px;
    justify-content: center; /* centra el cuadro para que se vea pro */
    text-align: center;
  }
  .hero-content {
    padding: 18px;
    width: 100%;
  }
  .hero h1 {
    font-size: 22px;
  }
}


.btn {
    background: #f4b41a;
    padding: 10px 25px;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
}

/* ABOUT */
.about {
    display: flex;
    justify-content: space-between;
    padding: 80px;
    gap: 40px;
}

.about-images {
  display: grid;
  gap: 40px;
  justify-items: center;
  
  /* Por defecto (desktop): 3 imágenes por fila */
  grid-template-columns: repeat(3, 1fr);
}

.about-images img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
}

/* ================= PRODUCTOS PRO ================= */
.products{
  padding: 70px 0;
  background: #ffffff;
}

.products h2{
  text-align: center;
  font-size: 28px;
  margin-bottom: 34px;
  letter-spacing: .2px;
  color: #111827;
}

/* Grid responsive pro */
.product-grid{
  width: min(1100px, 92%);
  margin: 0 auto;

  display: grid;
  gap: 26px;
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 900px){
  .product-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px){
  .product-grid{ grid-template-columns: 1fr; }
}

/* Card premium */
.product-card{
  background: #ffffff;
  border-radius: 18px;
  padding: 22px 22px 20px;

  border: 1px solid rgba(17,24,39,0.06);
  box-shadow: 0 10px 26px rgba(0,0,0,0.06);

  text-align: center;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

/* Hover pro */
.product-card:hover{
  transform: translateY(-6px);
  box-shadow: 0 18px 42px rgba(0,0,0,0.10);
  border-color: rgba(245,185,66,0.35);
}

/* Contenedor de imagen uniforme (alineación perfecta) */
.product-card img{
  width: 100%;
  height: 170px;
  object-fit: contain;
  display: block;
  margin: 6px auto 16px;
}

/* Título */
.product-card h3{
  font-size: 18px;
  margin: 0 0 8px;
  color: #111827;
  font-weight: 800;
}

/* Precio (más elegante) */
.product-card .price{
  margin: 0 0 14px;
  font-weight: 900;
  font-size: 16px;
  color: #d89b00;
}

/* Botón premium */
.product-card button{
  appearance: none;
  border: 0;
  width: fit-content;

  padding: 10px 14px;
  border-radius: 12px;

  background: linear-gradient(135deg, #f5b942, #d89b00);
  color: #111827;
  font-weight: 800;
  cursor: pointer;

  box-shadow: 0 10px 20px rgba(216,155,0,0.20);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.product-card button:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(216,155,0,0.28);
  filter: brightness(1.03);
}

/* ================= BOTÓN CATÁLOGO ================= */
.catalog-button{
  text-align: center;
  margin-top: 42px;
}

.btn-catalog{
  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
  letter-spacing: .2px;

  background: linear-gradient(135deg, #f5b942, #d89b00);
  color: #111827;

  box-shadow: 0 12px 26px rgba(216,155,0,0.25);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.btn-catalog:hover{
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(216,155,0,0.32);
  filter: brightness(1.05);
}



/* BADGES */
/* ================= BADGES PRO ================= */
.badges{
  width: min(1100px, 92%);
  margin: 0 auto;
  padding: 50px 0 70px;

  display: grid;
  gap: 22px;
  grid-template-columns: repeat(3, 1fr);
}

/* 2 por fila en tablet */
@media (max-width: 900px){
  .badges{ grid-template-columns: repeat(2, 1fr); }
}

/* 1 por fila en móvil */
@media (max-width: 520px){
  .badges{ grid-template-columns: 1fr; }
}

.badge{
  background: #ffffff;
  border-radius: 18px;
  padding: 22px 18px;

  text-align: center;
  border: 1px solid rgba(17,24,39,0.06);
  box-shadow: 0 10px 24px rgba(0,0,0,0.06);

  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

/* Hover elegante */
.badge:hover{
  transform: translateY(-5px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.10);
  border-color: rgba(245,185,66,0.35);
}

/* Ícono más grande (emoji) */
.badge{
  font-weight: 800;
  color: #111827;
  line-height: 1.25;
}

.badge br{
  display: none; /* quitamos el salto forzado */
}

/* Truco: separa ícono y texto aunque usen <br> */
.badge{
  display: grid;
  place-items: center;
  gap: 10px;
}

/* Aumenta el tamaño del primer “elemento” (emoji) */
.badge::first-line{
  font-size: 26px;
  font-weight: 900;
}



.hero-products {
    background: linear-gradient(rgba(0,0,0,.4), rgba(0,0,0,.4)),
                url("../img/hero.jpg") center/cover;
    height: 50vh;
}

.product-card .description {
    font-size: 0.9rem;
    margin: 10px 0;
    color: #555;
}

nav a.active {
    font-weight: bold;
    border-bottom: 2px solid #f2b705;
}


.hero-contact {
    background: linear-gradient(rgba(0,0,0,.4), rgba(0,0,0,.4)),
                url("../img/hero.jpg") center/cover;
    height: 45vh;
}

.contact {
    padding: 60px 10%;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info p {
    margin-bottom: 15px;
}

.contact-form form {
    display: flex;
    flex-direction: column;
}

.contact-form label {
    margin-top: 10px;
    font-weight: bold;
}

.contact-form input,
.contact-form textarea {
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.contact-form button {
    margin-top: 20px;
    padding: 12px;
    background: #f2b705;
    border: none;
    font-weight: bold;
    cursor: pointer;
}

.map {
    padding: 40px 10%;
    text-align: center;
}

.map-placeholder {
    margin-top: 20px;
    padding: 60px;
    background: #f5f5f5;
    border-radius: 10px;
    font-size: 1.2rem;
}


/* ================= FOOTER PRO ================= */
.footer{
  background: #f7f7f7;
  border-top: 1px solid rgba(17,24,39,0.08);
  position: relative;
  padding: 55px 0 24px;
}

.footer > div{
  width: min(1100px, 92%);
  margin: 0 auto;
}

/* Si tu footer tiene 3 <div> directos dentro, los convertimos en grid */
.footer{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;

  width: min(1100px, 92%);
  margin: 0 auto;
}

/* Responsive */
@media (max-width: 900px){
  .footer{
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 560px){
  .footer{
    grid-template-columns: 1fr;
  }
}

/* Títulos */
.footer h4{
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 900;
  color: #111827;
  letter-spacing: .2px;
}

/* Texto */
.footer p{
  margin: 0 0 10px;
  color: rgba(17,24,39,0.78);
  line-height: 1.55;
  font-size: 14px;
}

/* Links */
.footer a{
  display: inline-block;
  text-decoration: none;
  color: rgba(17,24,39,0.72);
  font-weight: 600;
  margin: 6px 0;
  transition: color .18s ease, transform .18s ease;
}

.footer a:hover{
  color: #d89b00;
  transform: translateX(2px);
}

/* Copyright */
.footer small{
  display: inline-block;
  margin-top: 10px;
  color: rgba(17,24,39,0.60);
  font-size: 12px;
}

/* Ajuste bonito para el bloque de contacto */
.footer div:nth-child(3) p{
  margin-bottom: 8px;
}

/* Línea inferior pro (opcional) */
.footer::after{
  content: "";
  grid-column: 1 / -1;
  height: 1px;
  background: rgba(17,24,39,0.08);
  margin-top: 18px;
}
.footer-bottom{
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  color: rgba(17,24,39,0.60);
  font-size: 12px;
}

.footer div:nth-child(2){
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer div:nth-child(2) a{
  width: fit-content;
}

/* ================= FOOTER PRO ================= */
/* ================= WHATSAPP FLOAT PRO ================= */
.whatsapp-float-pro {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366; /* verde WhatsApp real */
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  z-index: 9999;
  transition: all 0.25s ease;
}

/* círculo interno blanco (look premium) */
.whatsapp-float-pro::before {
  content: "";
  position: absolute;
  width: 48px;
  height: 48px;
  background: white;
  border-radius: 50%;
  z-index: 0;
}

.whatsapp-float-pro img {
  width: 26px;
  height: 26px;
  z-index: 1;
  filter: none; /* logo original */
}

/* Hover elegante */
.whatsapp-float-pro:hover {
  transform: scale(1.08) translateY(-3px);
  box-shadow: 0 16px 35px rgba(0,0,0,0.35);
}


/* Tooltip (mensaje) */
.whatsapp-tooltip {
  position: absolute;
  right: 76px;
  background: #111827;
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: all 0.2s ease;
}

.whatsapp-float-pro:hover .whatsapp-tooltip {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive móvil */
@media (max-width: 600px) {
  .whatsapp-float-pro {
    width: 56px;
    height: 56px;
    bottom: 16px;
    right: 16px;
  }

  .whatsapp-float-pro img {
    width: 30px;
    height: 30px;
  }

  .whatsapp-tooltip {
    display: none; /* ocultamos tooltip en móvil */
  }
}


/* ================= CTA PARALLAX PRO ================= */
.parallax{
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;

  background-image: url("../img/hero.jpg"); /* o la imagen que quieras */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}


  /* Parallax (desktop) */
  background-attachment: fixed;
}

/* Overlay más pro (mejor contraste) */
.parallax .overlay{
  width: 100%;
  height: 100%;
  padding: 70px 16px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: linear-gradient(
    90deg,
    rgba(17, 24, 39, 0.55),
    rgba(17, 24, 39, 0.28)
  );
}

/* Contenido centrado tipo “hero card” */
.parallax .content{
  width: min(1100px, 90%); /* antes estaba en 920px aprox */
  max-width: 700px;        /* limita el ancho para que no sea exagerado */
  text-align: center;
  color: #fff;

  padding: 40px 50px;      /* más espacio interno */
  border-radius: 22px;

  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  box-shadow: 0 18px 50px rgba(0,0,0,0.25);
}

.parallax .content h1{
  font-size: 44px;
  line-height: 1.05;
  margin: 0 0 10px;
  letter-spacing: .2px;
}

.parallax .content p{
  margin: 0 0 18px;
  font-size: 16px;
  opacity: .95;
}

/* Botón CTA estilo premium (miel) */
.btn-cta{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  padding: 14px 28px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: .6px;
  text-transform: uppercase;

  background: linear-gradient(135deg, #f5b942, #d89b00);
  color: #111827;

  box-shadow: 0 14px 30px rgba(216,155,0,0.28);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.btn-cta:hover{
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(216,155,0,0.35);
  filter: brightness(1.05);
}

/* Responsive */
@media (max-width: 900px){
  .parallax{ min-height: 300px; }
  .parallax .content h1{ font-size: 34px; }
}

/* Móvil: desactivar parallax (mejor rendimiento) */
@media (max-width: 700px){
  .parallax{ background-attachment: scroll; }
  .parallax .overlay{ padding: 56px 14px; }
  .parallax .content{ padding: 22px 16px; }
  .parallax .content h1{ font-size: 28px; }
}


/* Sección normal */
.normal-section {
    padding: 80px 20px;
    text-align: center;
}

/* Sección contacto */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", sans-serif;
}

/* ===== SECCIÓN CONTACTO ===== */
.contact-section {
    background-color: #f5f1e8; /* beige elegante */
    padding: 80px 20px 120px;
    text-align: center;
    color: #2c2c2c;
}

/* Encabezado */
.contact-header h2 {
    font-size: 3rem;
    margin-bottom: 10px;
    color: #2c2c2c;
}

.contact-header p {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: #5f5f5f;
}

/* ===== CARDS ===== */
.contact-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 60px;
    flex-wrap: wrap;
}

.contact-card {
    background: #ffffff;
    color: #333;
    width: 340px;
    padding: 40px 30px;
    border-radius: 8px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 45px rgba(0,0,0,0.18);
}

/* Iconos */
.contact-card .icon {
    width: 50px;
    margin-bottom: 20px;
}

/* Textos */
.contact-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.contact-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #555;
}

/* Links */
.contact-card .link {
    display: block;
    color: #7a5c2e; /* marrón suave */
    font-weight: 600;
    margin-bottom: 10px;
    text-decoration: none;
}

.contact-card .link.secondary {
    font-size: 0.9rem;
}

/* Botón */
.contact-card .btn {
    display: inline-block;
    margin-top: 10px;
    padding: 12px 28px;
    background: #c96b3c; /* terracota */
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
}

.contact-card .btn:hover {
    background: #b45e34;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .contact-header h2 {
        font-size: 2.3rem;
    }

    .contact-card {
        width: 100%;
        max-width: 360px;
    }
}
/* =======================
   ABOUT
======================= */

.about {
  max-width: 1100px;
  margin: auto;
  padding: 60px 20px;
  display: block; /* MUY IMPORTANTE */
}

/* TEXTO */
.about-text {
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}


.about-text h2 {
  font-size: 32px;
  margin-bottom: 20px;
  color: #222;
}

.about-text p {
  font-size: 16px;
  line-height: 1.7;
  color: #555;
  max-width: 800px;
}

/* LISTA */
.about-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.about-list li {
  font-size: 16px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* CONTENEDOR DE IMÁGENES */
.about-images {
  display: grid;
  gap: 40px;
  justify-items: center;
  
  /* Por defecto (desktop): 3 imágenes por fila */
  grid-template-columns: repeat(3, 1fr);
}

/* IMÁGENES EN CUADRO */
.about-images img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px; /* quita si las quieres totalmente cuadradas */
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* EFECTO HOVER */
.about-images img:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

/* RESPONSIVE */

/* Tablets y pantallas medianas → 2 imágenes */
@media (max-width: 900px) {
  .about-images {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Móviles → 1 imagen (opcional pero recomendado) */
@media (max-width: 500px) {
  .about-images {
    grid-template-columns: 1fr;
  }
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .about-images {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .about {
    padding: 40px 15px;
  }

  .about-text h2 {
    font-size: 26px;
  }

  .about-images {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-images img {
    height: 180px;
  }
}

@media (max-width: 480px) {
  .about-images {
    grid-template-columns: 1fr;
  }

  .about-images img {
    height: 200px;
  }
}
/* SOLO para home */
.home-about .about-images img {
    border-radius: 50%;
    width: 220px;        /* ancho fijo para que sea circular */
    height: 220px;       /* igual que ancho */
    object-fit: cover;
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.home-about .about-images img:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}
/* Contenedor de cada tarjeta de imagen */
.about-image-card {
  position: relative;
  overflow: hidden;
  width: 220px;
  height: 220px;
  border-radius: 12px; /* o 50% si quieres circular */
  margin: 10px;
}

/* La imagen ocupa todo el contenedor */
.about-image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

/* Hover zoom */
.about-image-card:hover img {
  transform: scale(1.05);
}

/* Texto sobre la imagen */
.about-image-card span {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 15px;
  background: rgba(0, 0, 0, 0.6); /* overlay semi-transparente */
  color: #fff;
  font-size: 14px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Mostrar texto al pasar el cursor */
.about-image-card:hover span {
  opacity: 1;
}

/* ================= HEADER STICKY PRO ================= */
:root{
  --header-h: 72px;
  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-bg-scrolled: rgba(255, 255, 255, 0.86);
  --text: #1f2937;
  --shadow: 0 10px 30px rgba(0,0,0,.10);
  --shadow-strong: 0 14px 40px rgba(0,0,0,.14);
  --radius: 18px;
}

/* Para que el contenido no “salte” debajo del header fijo */
body{
  padding-top: var(--header-h);
}

/* Header base */
.header{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  z-index: 9999;

  display: flex;
  align-items: center;

  background: transparent;
  transition: background .25s ease, transform .25s ease, box-shadow .25s ease;
}

/* Contenedor interno (look pro + centrado) */
.header-inner{
  width: min(1200px, 92%);
  margin: 0 auto;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 12px 16px;
  border-radius: var(--radius);

  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  border: 1px solid rgba(255,255,255,.6);
  box-shadow: var(--shadow);
  transition: background .25s ease, box-shadow .25s ease, transform .25s ease;
}

.logo{
  font-weight: 800;
  letter-spacing: .2px;
  color: var(--text);
}

/* Links escritorio */
.nav{
  display: flex;
  gap: 18px;
  align-items: center;
}

.nav a{
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 10px 12px;
  border-radius: 12px;
  transition: transform .18s ease, background .18s ease, color .18s ease;
}

.nav a:hover{
  background: rgba(255, 200, 0, .16);
  transform: translateY(-1px);
}

/* Estado al hacer scroll */
.header.is-scrolled .header-inner{
  background: var(--glass-bg-scrolled);
  box-shadow: var(--shadow-strong);
}

/* Animación sutil cuando aparece el estado sticky */
.header.is-scrolled{
  transform: translateY(0);
}

/* ================= MENU MOBILE ================= */
.nav-toggle{
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  position: relative;
}

.nav-toggle span{
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  background: #111827;
  border-radius: 99px;
  transition: transform .2s ease, top .2s ease, opacity .2s ease;
}

.nav-toggle span:nth-child(1){ top: 14px; }
.nav-toggle span:nth-child(2){ top: 21px; }
.nav-toggle span:nth-child(3){ top: 28px; }

@media (max-width: 860px){
  .nav-toggle{ display: inline-block; }

  .nav{
    position: absolute;
    top: calc(var(--header-h) - 6px);
    right: 4%;
    left: 4%;

    display: grid;
    gap: 8px;
    padding: 12px;
    border-radius: 18px;

    background: rgba(255,255,255,.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(0,0,0,.06);
    box-shadow: var(--shadow-strong);

    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
  }

  .nav a{
    padding: 12px 14px;
    background: rgba(0,0,0,.02);
  }

  .header.menu-open .nav{
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  /* Hamburguesa a X */
  .header.menu-open .nav-toggle span:nth-child(1){
    top: 21px;
    transform: rotate(45deg);
  }
  .header.menu-open .nav-toggle span:nth-child(2){
    opacity: 0;
  }
  .header.menu-open .nav-toggle span:nth-child(3){
    top: 21px;
    transform: rotate(-45deg);
  }
}

/* Accesibilidad: reduce animaciones si el usuario lo pide */
@media (prefers-reduced-motion: reduce){
  .header, .header-inner, .nav, .nav a, .nav-toggle span{
    transition: none !important;
  }
}
