/* =========================
   MOBILE-ONLY (≤768px) LIMPIO
   ========================= */
@media (max-width: 768px){

  /* NAVBAR móvil básica */
  .nav-links{ display:none !important; }
  .burger{ display:flex !important; }

  /* HERO genérico: apilar columnas y dar aire al texto */
  .hero .grid-2{
    display:block !important;
  }

  .hero .hero-panel{
    padding: 0 20px 16px 20px !important;
  }

  .hero .media{
    margin: 0 !important;
    overflow: hidden;
    border-radius: 0;
  }

  .hero .media picture,
  .hero .media img{
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
  }

  .hero .hero-content h1{
    text-align: center;
    font-size: 1.8rem;
    line-height: 1.3;
    margin: 0 0 16px;
  }

  .hero .hero-content p{
    text-align: justify;
    text-justify: inter-word;
    font-size: 1rem;
    line-height: 1.5;
  }

  /* HERO SOBRE NOSOTROS + GALERÍA: full bleed */
  #hero-sobre,
  #hero-galeria{
    margin: 0 !important;
    padding: 0 !important;
  }

  #hero-sobre > .container,
  #hero-galeria > .container{
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box;
  }

  #hero-sobre .grid-2,
  #hero-galeria .grid-2{
    display: block !important;
  }

  #hero-sobre .media,
  #hero-galeria .media{
    margin: 0 !important;
  }

  #hero-sobre .media picture,
  #hero-sobre .media img,
  #hero-galeria .media picture,
  #hero-galeria .media img{
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    border-radius: 0 !important;
    object-fit: cover;
  }

  #hero-sobre .hero-panel,
  #hero-galeria .hero-panel{
    padding: 16px 20px 20px 20px !important;
  }

  /* HISTORIA: apilar y full width imágenes + texto con margen */
  #historia .about-row,
  #historia .about-row--reverse{
    display: block;
  }

  #historia .about-media{
    margin: 0 0 16px 0;
  }

  #historia .about-media picture,
  #historia .about-media img{
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0;
    object-fit: cover;
  }

  #historia .about-content,
  #historia .about-content--center{
    padding: 0 24px;
    font-size: 0.96rem;
    line-height: 1.6;
  }

  #historia .lead{
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 8px;
  }

  #historia h2{
    font-size: 1.4rem;
    margin: 0 0 8px 0;
  }

  #historia h3{
    font-size: 1.05rem;
    margin: 16px 0 6px 0;
  }

  /* EQUIPO: apilar y full width imagen + texto con margen */
  #equipo .grid-2{
    display: block !important;
  }

  #equipo .media{
    margin: 0 0 16px 0;
  }

  #equipo .media picture,
  #equipo .media img{
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0;
    object-fit: cover;
  }

  #equipo .content{
    padding: 0 24px;
    font-size: 0.96rem;
    line-height: 1.6;
  }

  #equipo h2{
    font-size: 1.4rem;
    margin: 0 0 8px 0;
  }

  /* HERO SERVICIOS: apilado limpio */
  .hero.hero--servicios .grid-2{
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 18px;
  }

  .hero.hero--servicios .hero-panel{ order: 1; }
  .hero.hero--servicios .media{
    order: 2;
    overflow: hidden;
    border-radius: 14px;
  }

  .hero.hero--servicios .media picture,
  .hero.hero--servicios .media img{
    display: block;
    width: 100%;
    height: auto;
    max-height: 380px;
    object-fit: cover;
  }

  /* TESTIMONIOS móvil */
  #testi-swiper{
    background: linear-gradient(135deg, #EFD7D1 0%, #FBEFEC 100%);
    padding: 24px 16px;
    border-radius: 18px;
  }
  #testi-swiper .swiper-wrapper{ display:flex !important; }
  #testi-swiper .swiper-slide{
    flex-shrink:0 !important;
    background:#fff;
    border-radius:16px;
    padding:20px;
    box-shadow:0 4px 12px rgba(0,0,0,0.05);
  }
  #testi-swiper .swiper-pagination{
    position: static !important;
    margin-top: 12px !important;
    text-align:center;
  }
  #testi-swiper .swiper-pagination-bullet{
    background:#F3A18E !important;
    opacity:.35 !important;
  }
  #testi-swiper .swiper-pagination-bullet-active{
    background:#F3A18E !important;
    opacity:1 !important;
  }

/* FAQ móvil: texto legible */
  .accordion .item > .q{
    font-weight:400 !important;
    color:#000 !important;
    -webkit-text-fill-color:#000 !important;
    text-decoration:none !important;
    background:transparent !important;
    border:0 !important;
  }
  .accordion .item > .q svg{
    color:#000 !important;
    stroke:#000 !important;
  }
}
@media (max-width: 768px){
  /* Ocultar solo la foto about-1 en móvil */
  #historia .about-media img[src*="about-1"]{
    display: none !important;
  }
}

@media (max-width: 768px){

  /* Header compacto y sticky */
  header.nav{
    height: 92px !important;
    min-height: 92px !important;
    background: var(--surface, #FBF6F6);
    position: sticky;
    top: 0;
    z-index: 3000;
  }

  header.nav .nav-inner{
    min-height: 92px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;  /* CENTRA el contenido */
    padding: 0 20px !important;
    position: relative !important;
  }

  /* Logo centrado */
  header.nav .brand{
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    font-size: 0 !important;
    line-height: 0 !important;
    margin: 0 auto !important;          /* fuerza centrado */
  }

  header.nav .brand img{
    height: 110px !important;
    width: auto !important;
    max-height: none !important;
    max-width: none !important;
    display: block !important;
  }

  /* Burger fija a la derecha */
  header.nav .burger{
    position: absolute !important;
    right: 20px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    display: inline-flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    width: 28px;
    height: 20px;
    border: 0;
    background: transparent;
  }

  header.nav .burger span{
    display: block;
    height: 3px;
    width: 100%;
    background: #333;
    border-radius: 2px;
  }

  /* Ocultar menú escritorio en móvil */
  header.nav .nav-links{
    display: none !important;
  }
}
@media (max-width: 768px){

  /* Más aire arriba en el hero de la home */
  .hero .hero-panel {
    padding-top: 32px !important;  /* prueba 32–40px según te guste */
  }

  /* Ajustar también el bloque de texto del hero */
  .hero .hero-content {
    margin-top: 8px !important;
  }

  /* Separar un poco el H1 del borde superior */
  .hero .hero-content h1 {
    margin-top: 0 !important;
    margin-bottom: 14px !important;
  }
}