/* Importación de fuentes (DEBE ESTAR AL PRINCIPIO) */
@import url('https://fonts.googleapis.com/css2?family=Sirivennela&display=swap');

:root {
  /* Colores principales */
  --color-fondo: #EAEBED;
  --color-marron: #C97841; /* Marrón */
  --color-marron_sec:#B78E6E;
  --color-marron_trans: rgba(201, 119, 65, 0.486); /* Marrón con transparencia */
  --color-surface: #ffffff;

  --color-primary: #000000; /*  negro */
  
  /* Colores de texto */
  --text-primary: var(--color-primary);
  --text-secondary: var(--color-secondary);
  --text-light: #666666;
  
  /* Tipografía */
  --font-cuerpo: 'Open Sans regular', open sans-regular, sans-serif;
  --font-titulo: 'Valkyrie', valkyrie, sans-serif;
  --font-subtitulo:'Carmen Sans Light', open sans-regular, sans-serif;
  --font-titulo-2_container: 'Carmen Sans Heavy', carmen-sans-heavy, sans-serif;
  --font-list-box: 'Carmen Sans Regular', carmen-sans-regular, sans-serif;
  --font-texto-tratamiento: 'Carmen Sans Regular', carmen-sans-regular, sans-serif;
  
  /* Tamaños de fuente */
  --text-xxs: 0.50rem ;   /* 10px */
  --text-xs: 0.75rem;    /* 12px */
  --text-sm: 0.875rem;   /* 14px */
  --text-base: 1rem;     /* 16px */
  --text-lg: 1.125rem;   /* 18px */
  --text-xl: 1.25rem;    /* 20px */
  --text-2xl: 1.5rem;    /* 24px */
  --text-3xl: 1.875rem;  /* 30px */
  --text-4xl: 2.25rem;   /* 36px */
  --text-5xl: 3rem;     /* 48px */

  
  /* Espaciado y márgenes */
  --spacing-xs: 0.25rem;  /* 4px */
  --spacing-sm: 0.5rem;   /* 8px */
  --spacing-md: 1rem;     /* 16px */
  --spacing-lg: 1.5rem;   /* 24px */
  --spacing-xl: 2rem;     /* 32px */
  
  /* Border radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
}

/* Importación de fuentes */
@import url('https://fonts.googleapis.com/css2?family=Sirivennela&display=swap');

@font-face {
  font-family: 'Beyond Infinity';
  src: url('../fonts/Beyond Infinity - Demo.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
    font-family: 'Carmen Sans Heavy';
    src: url('../fonts/CarmenSansHeavy.otf') format('truetype');
         font-weight: normal;
         font-style: normal;
     }
@font-face {
  font-family: 'Carmen Sans Regular';
  src: url('../fonts/CarmenSansRegular.otf') format('truetype');
        font-weight: lighter;
        font-style: normal;
    }

@font-face {
  font-family: 'Carmen Sans Light';
  src: url("../fonts/CarmenSansLight.otf") format('opentype');
  font-weight: 100; /* Cambiamos a 100 para hacerla más fina */
  font-style: normal;
}

@font-face {
  font-family: 'Valkyrie';
  src: url('../fonts/Valky.otf') format('truetype');
        font-weight: normal;
        font-style: normal;
    }
@font-face {
  font-family: 'Open Sans light';
  src: url("../fonts/OpenSans-Light.ttf") format('truetype');  
        font-weight: normal;
        font-style: normal;
    }         

/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-cuerpo), sans-serif; /* Cambia por tu fuente si es necesario */
  background: var(--color-fondo);
  color: #222;
 
}
h1{
  font-family: var(--font-subtitulo), Carmen sans-serif; /* Cambia por tu fuente si es necesario */
  color: var(--color-marron); 
  font-size: var(--text-5xl);
  
  

}

h2, h3, h4, h5, h6 {
  font-family: var(--font-subtitulo), Carmen sans-serif; /* Cambia por tu fuente si es necesario */
  color: var(--color-primary); 
}
hr {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 1200px; /* Ancho máximo para la línea */;
  border: none;
  height: 0.05rem;
  background-color: var(--color-marron);
  margin: 1rem 0 4rem 0; /* Margen superior e inferior */; 
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  margin: 0 4rem 0 4rem;
  background-color: var(--color-fondo);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

.navbar {
  /* Estilos para la barra de navegación */
  margin-right: 0;
  width: auto;
  justify-content: flex-end;
  background-color: transparent;
}

.navbar ul {
  list-style: none;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-sm) 0;
  margin: 0;
}
 
.navbar a {
  text-decoration: none;
  color: var(--text-primary);
  font-size: var(--text-sm);
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
  font-weight: 500;
  position: relative;
}

.navbar a:hover {
  background-color: var(--color-marron_trans);
  color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.navbar a.active {
  background-color: var(--color-primary);
  color: white;
}

/* Efecto de línea inferior en hover */
.navbar a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.navbar a:hover::after {
  width: 80%;
}

.logo {
  /* Estilos para el logo si son necesarios */
  max-width: 15rem;
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  z-index: 1001;
}

.logo img {
  width: 15rem; /* Ajusta el tamaño según sea necesario */
  height: auto;
  transition: transform 0.3s ease;
}

.logo img:hover {
  transform: scale(1.05);
}

.menu_h {
  display: none; 
  width: 2rem;  
  height: 2rem;
  outline: none;
  border: none;
  background-color: transparent;
  font-size: var(--text-2xl);
  color: var(--text-primary);
  background-image: url('../img/icon/6499731.png');
  background-size: cover;
  background-repeat: no-repeat;
  cursor: pointer;
}

/* estilo de carrusel */
.carrusel {
  width: 100%;
  max-width: 1200px; /* Ajustamos el ancho máximo */
  margin: 0 auto; /* Centramos el carrusel */
  position: relative;
  overflow: hidden;
}
.carrusel .carrusel_conteiner {
  width: 400%;
  height: 70vh; /* Ajusta la altura según sea necesario */
  display: flex;
  flex-flow: row nowrap;
  justify-content: flex-start;
  align-items: center;
  transition: transform 0.5s ease-in-out;
  transform: translateX(0);
}

.carrusel .img {
  width: 25%; /* 100% / 4 imágenes */
  height: auto;
  object-fit: cover;
  flex-shrink: 0; /* Evita que las imágenes se compriman */
}

/* Controles del carrusel (opcional) */
.carrusel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--color-marron_trans);
  border: none;
  padding: 1rem;
  cursor: pointer;
  border-radius: 50%;
}

.carrusel-prev {
  left: 1rem;
}

.carrusel-next {
  right: 1rem;
}

/* estilos para la section nosotras */

.nosotras {
  display: flex;
  flex-direction: column;
  align-items: space-between;
  padding: var(--spacing-lg);
  background-color: var(--color-fondo);
  border-radius: var(--radius-md);
  margin: var(--spacing-lg) auto;
  max-width: 1200px; /* Ancho máximo para la sección */
}


.nosotras_cuerpo {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap; /* Hace que los elementos se envuelvan cuando no hay espacio */
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: var(--spacing-lg);
}

.nosotras hr{
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  border: none;
  height: 0.05rem;
  background-color: var(--color-marron);
  margin: 1rem 0 4rem 0; /* Margen superior e inferior */; 
  
}


.nostras_texto {
  display: flex;
  width: 28.375rem;
  height: 26.875rem;
  min-width: 0.0625rem;
  max-width: 28.375rem;
  flex-direction: column;
  justify-content: center;
  padding: var(--spacing-md);
  flex-shrink: 0;
  line-height: 1.3; /* Espaciado entre líneas */
  letter-spacing: 0.01em; /* Espaciado entre letras */
  gap: var(--spacing-md); /* Espaciado entre párrafos */
  text-align: center;

}
.nostras_texto p {
  font-family: var(--font-cuerpo);
  color: var(--text-primary);
  font-size: var(--text-sm);
  
}

.servicios_conteiner {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap; /* Permite que los elementos se ajusten en varias filas */
  justify-content: space-between; /* Espacio entre los elementos */
  gap: var(--spacing-lg); /* Espacio entre los elementos */
  width: 100%;
}

.servicios {
  display: flex;
  flex-direction: column;
  align-items: space-between;
  justify-content: center;
  padding: var(--spacing-lg);
  background-color: var(--color-fondo);
  border-radius: var(--radius-md);
  margin: var(--spacing-lg) auto;
  margin-bottom: var(--spacing-md);
  max-width: 1200px; 
}


  .servicios hr{
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  border: none;
  height: 0.05rem;
  background-color: var(--color-marron);
  margin: var(--spacing-md) 0; 
}

.boton-catalogo-logo {
  text-align: end;
  margin: var(--spacing-xl) 0;
}

.btn-catalogo-logo {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-md);
  background: var(--color-fondo);
  color: var(--color-marron);
  padding: var(--spacing-md) var(--spacing-xl);
  text-decoration: none;
  border-radius: var(--radius-lg);
  font-family: var(--font-list-box);
  font-size: var(--text-lg);
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid var(--color-marron);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-catalogo-logo:hover {
  background: var(--color-marron);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(201, 119, 65, 0.3);
}

.logo-btn {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.texto-btn {
  font-weight: 600;
}

.icono-descarga {
  width: 18px;
  height: 18px;
}


.servicio {
  /* border : 1px solid var(--color-marron_sec); */
  width: 30%;
  height: fit-content;
  overflow: hidden; /* Previene desbordamiento */
  box-sizing: border-box; /* Incluye borders en el cálculo del ancho */
  margin-bottom: var(--spacing-md);
}



.servicio_img {
    max-width: 100%; /* Cambiamos a 100% del contenedor padre */
    width: 100%; /* Ocupa todo el ancho del contenedor */
    height: 205px; /* Mantenemos altura fija */
    object-fit:cover; /* Mantiene las proporciones sin distorsión */
    display: block;
}

  .titulo {
  display: flex;    
  flex-direction: column;
  align-items: center;
 }


  .titulo h1 {
  display: flex;
  justify-content: center;
  color: var(--color-marron);
  font-size: var(--text-5xl);
  margin-bottom: var(--spacing-md);
  font-family: var(--font-subtitulo); 

}


.servicio h2 {
  font-family: var(--font-titulo-2_container);
  color: var(--color-primary);
  font-size: var(--text-base);
  margin-left: 1rem;
  padding-top: 3rem;;
}

.servicio p {
  font-family: var(--font-cuerpo);
  color: var(--text-primary);
  font-size: var(--text-sm);
  margin: var(--spacing-sm) 2rem;
} 

.lista_servicios {
  display: flex;
  flex-direction: row;
  padding: var(--spacing-lg);
  background-color: var(--color-fondo);
  border-radius: var(--radius-md);
  margin-left: 0rem;
  max-width: 1200px; /* Ancho máximo para la sección */
}
.lista_servicios li {
  font-family: var(--font-list-box);
  color: var(--text-primary);
  font-size:var(--text-xs); /* Ajusta el tamaño de fuente según sea necesario */
  margin: var(--spacing-sm) 1rem; /* Ajusta el margen para pantallas pequeñas */
  list-style-type:disc; /* Cambia el tipo de viñeta */ 
}
  .head_regalar {
    font-family: var(--font-titulo-2_container);
    color: var(--color-primary); 
    font-size: var(--text-sm);
    margin-left: var(--spacing-xs);
    padding-top: var(--spacing-xs);
    text-align: center;  
  } 
    
  .lista_regalar li {
    font-family: var(--font-cuerpo);
    color: var(--color-primary);
    font-size:var(--text-sm); /* Ajusta el tamaño de fuente según sea necesario */
    margin: var(--spacing-sm); /* Ajusta el margen para pantallas pequeñas */
    margin-left: var(--spacing-md);
    list-style-type:disc; /* Cambia el tipo de viñeta */ 
    
  }

 /* cards testimonios */


    .carousel-container {
      max-width: 900px;
      margin: var(--spacing-xl) auto 0 auto;
      position: relative;
      padding: 80px 0 40px 0;
      /* height: 370px; */
      overflow: visible;
    }
    .carousel-track {
      position: relative;
      width: 100%;
      height: 320px;
      display: flex;
      justify-content: center;
      align-items: center;
      pointer-events: none;
    }
    .testimonial {
      position: absolute;
      width: 340px;
      max-width: 90vw;
      height: 310px;
      background: #fff;
      border-radius: 10px;
      box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.13);
      padding: 42px 28px 34px 28px;
      text-align: center;
      opacity: 0;
      z-index: 1;
      transform: scale(0.8) translateX(0px);
      transition: box-shadow 0.3s;
      pointer-events: none;
      filter: blur(2px) grayscale(0.3);
      display: flex;
      flex-direction: column;
      justify-content: flex-start;
      align-items: center;
      box-sizing: border-box;
    }
    .testimonial.center {
      opacity: 1;
      transform: scale(1) translateX(0px);
      z-index: 10;
      filter: none;
      pointer-events: auto;
      box-shadow: 0 12px 48px 0 rgba(31, 38, 135, 0.16);
    }
    .testimonial.left {
      opacity: 1;
      transform: scale(0.88) translateX(-230px);
      z-index: 5;
    }
    .testimonial.right {
      opacity: 1;
      transform: scale(0.88) translateX(230px);
      z-index: 5;
    }
    .avatar {
      width: 62px;
      height: 62px;
      border-radius: 50%;
      border: 4px solid #fff;
      margin: -62px auto 10px auto;
      object-fit: cover;
      box-shadow: 0 4px 16px rgba(0,0,0,0.07);
      background: #eee;
    }
    .name {
      font-weight: 700;
      font-size: 1.2em;
      margin-top: 12px;
    }
    .role {
      color: #999;
      font-size: 0.98em;
      margin-bottom: 18px;
    }
    .text {
      font-size: 1.08em;
      color: #444;
      margin-bottom: 10px;
      line-height: 1.6;
    }
    .indicators {
      margin-top: 30px;
      text-align: center;
    }
    .indicator {
      display: inline-block;
      width: 12px;
      height: 12px;
      margin: 0 8px;
      background: #fff;
      border-radius: 50%;
      border: 2px solid #4ba9c9;
      cursor: pointer;
      opacity: 0.7;
      transition: background 0.2s, opacity 0.2s;
    }
    .indicator.active {
      background: #4ba9c9;
      opacity: 1;
    }
    @media (max-width: 600px) {
      .carousel-container {
        /* height: 360px; */
        max-width: 99vw;
      }
      .testimonial {
        width: 94vw;
        min-width: 220px;
        padding: 28px 8px 24px 8px;
      }
      .testimonial.left, .testimonial.right {
        transform: scale(0.85) translateX(-130px);
      }
      .testimonial.right {
        transform: scale(0.85) translateX(130px);
      }
    }

    .centro_oficial {
      display: flex;
      flex-direction: row;
      align-items: center;
      justify-content: space-between;
      padding: var(--spacing-lg);
      background-color: var(--color-fondo);
      border-radius: var(--radius-md);
      margin: var(--spacing-xl) auto;
      max-width: 1200px; /* Ancho máximo para la sección */
    }

    .centro_oficial img {
      width: 100%; /* Ocupa todo el ancho del contenedor */
      height: auto; /* Mantiene la proporción de la imagen */
      max-width: 15rem; /* Ancho máximo para la imagen */
    }



    .sedes {
      display: flex;
      flex-direction: row;
      justify-content: center;
      padding: var(--spacing-lg);
      background-color: var(--color-fondo);
      border-radius: var(--radius-md);
      margin: var(--spacing-lg) auto;
      max-width: 1200px; /* Ancho máximo para la sección */
    }

    


    .sede_img{
      align-items: center;
      justify-content: center;
      width: 20rem; /* Ocupa todo el ancho del contenedor */
      height: auto; /* Mantiene la proporción de la imagen */
      max-width: 15rem; /* Ancho máximo para la imagen */
      object-fit: cover; /* Mantiene las proporciones sin distorsión */
      max-height: 10rem; /* Altura máxima para la imagen */
      margin: var(--spacing-md);  

      max-width: 1 ; /* Ancho máximo para la imagen */
    }
    .sofitel{
      max-width: 8rem; /* Ancho máximo para la imagen */
      margin: 0;  
    }


    .sede h2{
      margin : var(--spacing-lg) 0 var(--spacing-lg) 0;
    }

    .sede p {
      width: 60%;
      line-height: 2;
      font-family: var(--font-cuerpo);
      color: var(--text-primary);
      font-size: var(--text-sm);
      margin: var(--spacing-sm) 1rem; /* Ajusta el margen para pantallas pequeñas */
    }
    .sede span {
      font-weight: bolder;
      color: var(--color-marron);
    }

    footer {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: var(--spacing-lg);
      background-color: var(--color-fondo);
      border-radius: var(--radius-md);
      margin: var(--spacing-lg) auto;
      max-width: 1200px; /* Ancho máximo para el footer */
    }

    .footer_conteiner {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      text-align: center;
    }
   

    .footer_logo img {
      max-width: 10%; /* Ajusta el tamaño del logo */
    }

    .footer_texto p {
      margin: 0.5rem 0;
      color: var(--text-secondary);
      font-size: var(--text-sm);
    }
    .footer_texto a {
      color: var(--text-primary);
      text-decoration: none;
      font-size: var(--text-sm);
    }
    .contacto h3 {
      margin: var(--spacing-md) 0;
    }

    footer a:hover {
      text-decoration: underline;
    }
    footer .redes a {
      margin: 0 0.5rem;
    }
    footer .redes img {
      width: 24px; /* Ajusta el tamaño de los iconos de redes sociales */
      height: 24px;
      transition: transform 0.3s ease;
    }
    footer .redes img:hover {
      transform: scale(1.9); /* Efecto de zoom al pasar el cursor */
    }
    .footer_logo:hover {
       transform: scale(1.1);
    filter: brightness(1.2); /* Aumenta el brillo */
    transition: all 0.3s ease;
    } 



/* --- Precios en modal --- */
.modal_prices {
    display: none;
    margin: 1rem 0;
    background: linear-gradient(135deg, #fdf8f4, #f5ede5);
    border-left: 4px solid var(--color-marron);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
}
.prices_header {
    font-family: var(--font-titulo-2_container);
    font-size: var(--text-sm);
    color: var(--color-marron);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.6rem;
}
.prices_list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.prices_list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-list-box);
    font-size: var(--text-sm);
    padding: 0.2rem 0;
    border-bottom: 1px dashed rgba(201,120,65,0.25);
}
.prices_list li:last-child {
    border-bottom: none;
}
.price_label {
    color: var(--color-primary);
}
.price_value {
    font-weight: bold;
    color: var(--color-marron);
    font-family: var(--font-titulo-2_container);
    font-size: var(--text-base);
    white-space: nowrap;
    margin-left: 1rem;
}

   /* Estilos para politicas */

   .politicas-container {
      max-width: 800px;
      margin: 2rem auto;
      padding: 2rem;
      background-color: #f9f9f9;
      border-radius: 10px;
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .politicas-header {
      text-align: center;
      margin-bottom: 3rem;
      
    }

    .politicas-header h1 {
      font-size: 2.5rem;
      color: var(--color-marron);
      margin-bottom: 1rem;
      font-family: var(--font-titulo)
    }

    .politicas-section {
      margin-bottom: 2.5rem;
    }

    .politicas-section h2 {
      color: var(--color-marron);
      font-size: 1.3rem;
      font-weight: bold;
      margin-bottom: 1rem;
      text-transform: uppercase;
    }

    .politicas-section p {
      line-height: 1.6;
      color: #333;
      margin-bottom: 1rem;
      text-align: justify;
    }

    .contact-info {
      background-color: #8B4B6B;
      color: white;
      padding: 1.5rem;
      border-radius: 8px;
      text-align: center;
      margin-top: 3rem;
    }

    .contact-info p {
      margin: 0.5rem 0;
      color: white;
    }

    .contact-info a {
      color: #FFD700;
      text-decoration: none;
    }

    .contact-info a:hover {
      text-decoration: underline;
    }


@media (max-width: 555px) {
    header {
        width: 100%; /* Ocupa todo el ancho */
        margin: 0; /* Elimina los márgenes */
        padding: 1rem; /* Mantiene el padding interno */
        justify-content: space-between; /* Alinea los elementos */
        position: relative; /* Necesario para el posicionamiento de la barra de navegación */

    }
    
    .hidden {
        display: none !important; /* Oculta el icono de cerrar por defecto */
    }

    .logo {
        margin-left: 0; /* Asegura que el logo esté pegado a la izquierda */
    }
    
    .menu_h {
        display: block;
        position: absolute;
        width: 2rem;
        height: 2rem; 
        top: 1rem;
        right: 1rem;
        outline: none;
        border: none;
        background-color: transparent;
        font-size: var(--text-2xl);
        color: var(--text-primary);
        background-image: url('../img/icon/6499731.png');
        background-size: cover;
        background-repeat: no-repeat; 
        cursor: pointer;
        z-index: 1001; /* Asegura que esté por encima del navbar */
    }

    .navbar{
      display: flex;
      position: absolute;
      align-items: center;
      border-radius: var(--radius-md);
      background-color: var(--color-marron_trans);
      width: auto;
      min-width: 200px;
      height: auto;
      flex-direction: column; 
      right: 1rem;
      top: 100%;
      z-index: 1000;
      box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
      backdrop-filter: blur(10px);
    }

    .navbar ul {
    flex-direction: column;
    position: relative;
    top: 0;
    right: 0;
    width: 100%;
    justify-items: flex-end;
    font-size: var(--text-lg);
    padding: 2rem 1rem;
    background-color: transparent;
    display: block;
    z-index: 1000;
    margin: 0;
    }

  .navbar a {
    padding: var(--spacing-md) var(--spacing-lg);
    text-align: center;
    width: 100%;
    display: block;
    margin: 0.5rem 0;
    border-radius: var(--radius-sm);
    font-weight: 500;
  }

  .navbar a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--color-primary);
    transform: translateX(5px);
  }

  .navbar a::after {
    display: none; /* Ocultar efecto de línea en móvil */
  }

  .nostras_texto {
  display: flex;
  width: 28.375rem;
  height: 26.875rem;
  min-width: 0.0625rem;
  max-width: 100%;
  flex-direction: column;
  justify-content: center;
  }

  .carrusel .carrusel_conteiner {
    width: 400%; /* Ocupa todo el ancho disponible */
    height: 50vh; /* Ajusta la altura según sea necesario */
  }

  .img_nosotras {
    width: 100%; /* Ocupa todo el ancho del contenedor */
    height: 100%; /* Ocupa toda la altura del contenedor */
    object-fit: cover; /* Mantiene las proporciones sin distorsión */
  }


  .servicios_conteiner {
    display: flex;
    flex-direction: column; /* Cambia a columna para pantallas pequeñas */
    align-items: center; /* Centra los elementos */
    
  }

  .servicio {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--color-fondo);
    width: 100%; /* Ocupa todo el ancho disponible */
  
  }
  .servicio p {
    font-family: var(--font-cuerpo);
    color: var(--text-primary);
    font-size: 10px;;
    margin: var(--spacing-sm) 1rem; /* Ajusta el margen para pantallas pequeñas */  
  }
  .centro_oficial {
    flex-direction: column; /* Cambia a columna para pantallas pequeñas */
    align-items: center; /* Centra los elementos */
    justify-content: center; /* Centra los elementos verticalmente */
  }

  .centro_oficial img {
    width: 100%; /* Ocupa todo el ancho del contenedor */
    height: auto; /* Mantiene la proporción de la imagen */
    max-width: 15rem; /* Ancho máximo para la imagen */
    margin-bottom: var(--spacing-md); /* Añade un margen inferior */
  }

  .sedes {
    flex-direction: column; /* Cambia a columna para pantallas pequeñas */
    align-items: center; /* Centra los elementos */
    justify-content: center; /* Centra los elementos verticalmente */
  }

  .sede {
    display: flex;
    flex-direction: column; /* Cambia a columna para pantallas pequeñas */
    align-items: center; /* Centra los elementos */
    justify-content: center; /* Centra los elementos verticalmente */
    text-align: center; /* Centra el texto */
    margin-bottom: var(--spacing-md); /* Añade un margen inferior */
  }

  .sede_img {
    width: 90%; /* Ocupa el 90% del ancho de la pantalla */
    height: auto; /* Mantiene la proporción de la imagen */
    max-width: none; /* Elimina el ancho máximo para permitir el 90% */
    object-fit: cover; /* Mantiene las proporciones sin distorsión */
    max-height: none; /* Elimina la altura máxima para conservar la relación */
    margin: var(--spacing-md);  
  }




}

/* Comienzo del detalle de servicios */

.menu_item {
    background-color: var(--color-fondo);
    padding: 5px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border-left: 4px solid var(--color-marron);
}

.menu_item:hover {
    background-color: #dcdfe2;
    transform: translateX(5px);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 59, 108, 0.7); /* Un azul oscuro semitransparente */
    backdrop-filter: blur(4px); /* Efecto de desenfoque del fondo */
    z-index: 999;
    opacity: 0;
    visibility: hidden;
}
.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); 
    background: white;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    z-index: 1000;
    width: 90%;
    max-width: 800px;
    max-height: 90vh; /* Altura máxima del 90% de la ventana */
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -50%) scale(0.9);
    overflow: hidden; /* Oculta el desbordamiento del modal principal */
}

.modal_content {
    padding: 0; /* Removemos el padding aquí */
    max-height: 90vh; /* Altura máxima igual al modal */
    overflow-y: auto; /* Scroll vertical automático */
    overflow-x: hidden; /* Sin scroll horizontal */
    
    /* Estilos para la barra de scroll personalizada */
    scrollbar-width: thin;
    scrollbar-color: var(--color-marron) #f1f1f1;
}

/* Estilos para webkit browsers (Chrome, Safari, Edge) */
.modal_content::-webkit-scrollbar {
    width: 8px;
}

.modal_content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.modal_content::-webkit-scrollbar-thumb {
    background: var(--color-marron);
    border-radius: 10px;
}

.modal_content::-webkit-scrollbar-thumb:hover {
    background: var(--color-marron_sec);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding: 20px 25px 15px 25px; /* Agregamos padding aquí */
    margin-bottom: 0;
    position: sticky; /* Hace que el header se mantenga fijo al hacer scroll */
    top: 0;
    background: white;
    z-index: 1;
}

.modal_body {
    padding: 25px; /* Movemos el padding aquí */
    text-align: center;
}

.modal_img {
    display: block;
    margin: 1rem auto 20px auto;
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

#modal_description {
    margin-bottom: 25px;
    text-align: center;
    line-height: 1.6;
    font-size: var(--text-sm); /* Cambiado de text-xs a text-sm para mejor legibilidad */
    color: var(--text-primary);
    padding: 0 10px; /* Un poco de padding lateral */
}

/* Responsivo para móviles */
@media (max-width: 555px) {
    .modal {
        width: 95%;
        max-height: 85vh; /* Menos altura en móvil */
    }
    
    .modal_content {
        max-height: 85vh;
    }
    
    .modal-header {
        padding: 15px 20px 12px 20px;
    }
    
    .modal_body {
        padding: 20px 15px;
    }
    
    #modal_description {
        font-size: var(--text-xs);
        padding: 0 5px;
    }
}

.close_btn {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    color: var(--color-marron);
    font-size: 24px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.close_btn:hover {
    background: var(--color-marron_trans);
    transform: rotate(90deg) scale(1.1);
    color: white;
}

/* ========== ESTILOS MEJORADOS PARA NAVEGACIÓN ========== */

/* Smooth scrolling para toda la página */
html {
  scroll-behavior: smooth;
}

/* Asegurar que el contenido no se oculte detrás del header fijo */
main {
  scroll-margin-top: 100px;
}

/* IDs de secciones con margen superior para compensar el header fijo */
#nosotras,
#servicios,
#testimonios,
#centro-oficial,
#sedes,
#contacto {
  scroll-margin-top: 120px;
}

/* Mejorar contraste del navbar en diferentes fondos */
.navbar {
  position: relative;
}

/* Indicador de página activa */
.navbar a.current-page {
  background-color: var(--color-primary);
  color: white;
}

.navbar a.current-page::after {
  width: 100%;
  background-color: white;
}

/* Responsive improvements */
@media (max-width: 768px) {
  #nosotras,
  #servicios,
  #testimonios,
  #centro-oficial,
  #sedes,
  #contacto {
    scroll-margin-top: 80px;
  }
}

.close_btn:active {
    transform: rotate(90deg) scale(0.95);
}

/* Responsivo para el botón */
@media (max-width: 555px) {
    .close_btn {
        top: 1rem;
        right: 1rem;
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
}

.centro_oficial {
  display: flex;
  justify-content: center;
  align-items: stretch; /* Asegura que todas las tarjetas tengan la misma altura */
  flex-wrap: wrap;
  gap: 2rem;
  padding: 2rem 1rem;
  max-width: 1080px; /* Ancho reducido en un 10% (de 1200px) */
  margin: 0 auto;
}

.cen_card {
  background-color: var(--color-fondo); /* Color igual al fondo principal */
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.07);
  padding: 2rem;
  flex-basis: 220px; /* Ancho base para cada tarjeta */
  flex-grow: 1; /* Permite que crezcan para ocupar el espacio */
  max-width: 250px; /* Ancho máximo */
  min-height: 220px; /* Altura mínima para mantener consistencia */
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cen_card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.centro_oficial img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain; /* Clave: ajusta la imagen sin deformarla */
  height: 120px; /* Altura fija para los logos para mayor consistencia */
}

/* Ajustes para pantallas más pequeñas */
@media (max-width: 768px) {
  .cen_card {
    flex-basis: 200px;
    min-height: 180px;
  }

  .centro_oficial img {
    height: 100px;
  }
}

/* === Estilos para el Título Principal "Haz de ti una prioridad" === */
.deti {
  text-align: center; /* Centra el h1 horizontalmente */
  padding: 0rem 0rem; /* Añade espacio vertical para separarlo del resto */
  background-color: var(--color-fondo); /* Usa el color de fondo principal */
}

.deti h1 {
  font-family: 'Beyond Infinity', cursive; /* <-- FUENTE CAMBIADA */
  font-size: 6.5rem;                      /* Un tamaño grande para que luzca */
  color: var(--color-marron);
  margin: 0;
  font-weight: normal;                    /* Usamos el peso definido en @font-face */
  letter-spacing: 1px;
}

/* Ajustes para pantallas más pequeñas */
@media (max-width: 768px) {
  .deti {
    padding: 3rem 1rem;
  }

  .deti h1 {
    font-size: 4.5rem; /* Reduce el tamaño de la fuente en móviles */
  }
}

/* === Estilos para el Botón de Audio === */
.audio-control {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background-color: var(--color-marron);
  color: white;
  border: none;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 1001; /* Asegura que esté por encima de otros elementos */
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.audio-control:hover {
  transform: scale(1.1);
}

.audio-control.muted {
  background-color: #888; /* Color gris cuando está silenciado */
}

/* Ajustes para pantallas más pequeñas */
@media (max-width: 768px) {
  .audio-control {
    width: 45px;
    height: 45px;
    bottom: 15px;
    right: 15px;
  }
}