/* ==================================================
   Estilos Globales (Variables, Reset y Tipografía)
   ================================================== */
:root {
  --black: #000000;
  --white: #ffffff;
  --dark-purple: #3c122c;
  --medium-purple: #762ba3;
  --light-purple: #ae40f0;
  --yellow: #ffc800;
  --pink: #fc5185;
  --light-pink: #ffeffe;
  --green: #bef9ee;
  --background-gray: #eee;
  --dark: #333333; /* Color para textos oscuros */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body,
input {
  font-family: 'Nunito', sans-serif;
  background-color: var(--background-gray);
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: bold;
  text-align: center;
  margin-bottom: 1.5rem;
}


h3{
  font-size: clamp(1rem, 2vw, 1.125rem);

}
p, li,   span, 
strong,
em, a, input, button {
    /* Tamaño fluido: crece o disminuye según el viewport */
    font-size: clamp(1rem, 2vw, 1.125rem);
    /* Interlineado un poco más compacto o amplio, según prefieras */
    line-height: 1.4; 
  }
  
  
a, li {
  text-decoration: none;
  list-style: none;
}

.container {
  max-width: 1440px;
  padding: 0 20px;
}

.button {
  font-size: clamp(1rem, 2vw, 1.125rem); /* Tamaño fluido */
  line-height: 1.4; /* Espaciado equilibrado */
  padding: 10px 20px;
  font-weight: 700;
  cursor: pointer;
  border-radius: 5px;
}

.button-primary {
  color: var(--dark-purple);
  background-color: var(--yellow);
}

.button-primary:hover {
  background-color: var(--pink);
  transition: background-color 0.3s;
}

.input {
  border: none;
  font-size: clamp(1rem, 2vw, 1.125rem); /* Tamaño fluido */
  line-height: 1.4; /* Espaciado equilibrado */
  background-color: var(--white);
  padding: 10px;
  outline: none;
  color: var(--dark-purple);
  border-radius: 5px;
}

/* ==================================================
   Estilos del Header
   ================================================== */
/* Información superior del header con efecto de texto en movimiento */
.header__info {
  background-color: var(--pink);
  text-align: end;
  overflow: hidden; /* Oculta el texto que desborda el contenedor */
}

.header__info p {
  color: var(--white);
  font-weight: 700;
  padding: 5px 25px 5px 0;
  white-space: nowrap; /* Evita saltos de línea */
  animation: moveText 30s linear infinite; /* Animación para desplazar el texto */
}

.phone-number {
  font-weight: 900;
}

/* Animación para desplazar el texto de la cabecera */
@keyframes moveText {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* Contenedor de la barra de navegación */
.container-navbar {
  background-color: var(--white);
  display: flex;
  justify-content: center;
  width: 100%;
}

/* Barra de navegación principal */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 100px;
}

.navbar__logo {
  display: flex;
  align-items: center;
}



.navbar__logo img {
  height: 60px;
  margin-right: 20px;
}

.navbar__logo span {
  text-transform: uppercase;
  font-weight: 900;
  font-size: 1.5rem;
  color: var(--dark-purple);
}

.navbar__nav {
  display: flex;
  align-items: center;
}

.navbar__nav > * {
  margin-left: 40px;
}

.nav__list {
  display: flex;
  list-style: none;
}

.nav__link {
  margin-left: 40px;
  font-size: 1.1rem;
  font-weight: 500;
}

.nav__link a {
  color: var(--dark-purple);
  position: relative;
}

/* Subrayado animado en enlaces */
.nav__link a::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--dark-purple);
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.nav__link:hover a::after {
  opacity: 1;
}

.link-active a {
  font-weight: 700;
}

.search__icon img {
  height: 28px;
}

/* Botón de menú móvil */
.navbar__toggle-btn {
  display: none;
  background-color: transparent;
  border: none;
  cursor: pointer;
}

/* Menú móvil */
.navbar__mobile-menu {
  display: none;
}

/* Adaptaciones para dispositivos medianos (max-width: 895px) */
@media only screen and (max-width: 895px) {
  .nav__list {
    display: none;
  }
  .navbar__nav > * {
    margin-left: 20px;
  }
  .navbar__toggle-btn {
    margin: 0;
    display: block;
  }
  .navbar__toggle-btn img {
    height: 28px;
    margin: 0 10px;
  }
  .navbar__mobile-menu {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 130px;
    right: 0;
    background-color: var(--white);
    width: 100%;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1;
  }
  .nav__link-mobile {
    margin-left: 40px;
    font-size: 1.1rem;
    font-weight: 500;
  }
  .nav__link-mobile a {
    color: var(--dark-purple);
    position: relative;
  }
  .nav__link-mobile a::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--dark-purple);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
  }
  .nav__link-mobile:hover a::after {
    opacity: 1;
  }
  .navbar__mobile-menu .nav__list-mobile {
    list-style: none;
    padding: 20px;
    margin-bottom: 15px;
  }
}

/* Adaptaciones para dispositivos pequeños (max-width: 510px) */
@media only screen and (max-width: 510px) {
  .navbar__logo img {
    display: none;
  }
  .navbar__logo .nombre_logo{

font-size: 1rem;
  }
  .search__icon img {
    display: none;
  }

}

/* ==================================================
   Estilos de la Sección del Carrusel
   ================================================== */
/* Contenedor principal del carrusel */
.carousel-section {
  display: flex;
  justify-content: center;

}

/* Contenedor de las tarjetas del carrusel */
.carousel__sections-cards {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Estilos para cada tarjeta del carrusel (ocultas por defecto) */
.section__card {
  display: none;
  transition: opacity 0.3s, transform 0.3s;
}

/* Tarjeta activa del carrusel */
.section__card.show {
  display: flex;
  justify-content: space-around;
  padding: 50px 0;
  max-height: 500px;
}

/* Efecto para mostrar el contenido */
.show {
  opacity: 1;
  transform: translateX(0);
}

/* Contenedor del contenido textual de la tarjeta */
.section__card-content {
  flex-basis: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}

/* Título de la tarjeta */
.section__card-title {
  font-size: clamp(1rem, -0.24593rem + 5.246vw, 3rem);
  line-height: 0.5; /* Opcional: para reducir el espacio vertical */
  /* Puedes añadir más reglas si deseas */
  width: 100%;
  font-weight: 900;
  line-height: 1;
  color: var(--dark-purple);
}

/* Texto descriptivo de la tarjeta */
.section__card-text {

  font-weight: 500;
}

.list_card-text{

    display: flex;
    flex-direction: column;
    justify-content: left;
    gap: 20px;
    

}



/* Estilos para botones en la tarjeta */
.section__card-buttons a {
  margin-right: 1rem;
}

/* Contenedor para la imagen en la tarjeta */
.section__card-imgs {
  flex-basis: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Espaciado para la imagen del carrusel */
.section__card-img {
  padding: 50px;
}

.section__card-img img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
}

/* Controles (prev/next) del carrusel */
.carousel-control {
  position: fixed;
  right: 10px;
  display: flex;
  flex-direction: column-reverse;
}

.prev,
.next {
  color: var(--white);
  background-color: var(--dark-purple);
  font-size: 1rem;
  margin: 0.5rem 0.5rem 0.5rem 0;
  padding: 0.5rem 0.7rem;
  border-radius: 5px;
}

.prev:hover,
.next:hover {
  background-color: var(--pink);
  color: var(--dark-purple);
  transition: background-color 0.3s;
}

/* Adaptaciones para pantallas medianas en el carrusel */
@media only screen and (max-width: 1150px) {
  .section__card-title {
    font-size: 1.8rem; /* Ajusta a tu gusto */
    line-height: 1.2; /* Opcional: para reducir el espacio vertical */
    /* Puedes añadir más reglas si deseas */
  }
}

/* Adaptaciones para pantallas pequeñas en el carrusel */
@media only screen and (max-width: 850px) {
  .section__card-img {
    padding: 50px 0;
  }
 /* .section__card-title {
    font-size: 3rem;
  }*/
  .section__card.show {
    flex-direction: column;
    max-height: 100%;
    padding-bottom: 0;
  }
  .section__card-content {
    margin-bottom: 2rem;
  }
  .carousel__sections-cards {
    justify-content: flex-end;
  }
  .carousel-control {
    flex-direction: row;
    align-items: center;
    position: static;
  }
}

/* Adaptaciones para pantallas muy pequeñas en el carrusel */
@media only screen and (max-width: 510px) {
  .section__card-text,
  .section__card-title {
    text-align: center;
  }
  .section__card-buttons {
    display: flex;
    flex-direction: column;
  }
  .section__card-buttons a {
    margin: 0;
    text-align: center;
  }
  .section__card-buttons a:nth-child(1) {
    margin-bottom: 10px;
  }
}

/* ==================================================
   Estilos de la Sección de Servicios
   ================================================== */
/* Contenedor principal de la sección de servicios */
.services-section {
  padding-top: 5%;
  background-color: var(--white);
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-direction: column;

}

/* Contenedor para las tarjetas de servicios */
.services__cards {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

/* Contenedor de la información general de servicios */
.services__cards-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 900px;
}

.services__cards-info:hover {
  background-color: var(--light-pink);
  transition: background-color 0.3s;
}

.services__cards-info h2 {
  font-size: 2rem;
  font-weight: 900;
  color: var(--dark-purple);
  margin-bottom: 1rem;
}

.services__cards-info p {
 
  color: var(--dark);
  margin-bottom: 1rem;
}

.services__cards-info ul{
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: left;
}


/*añadido*/
.services__cards-info {
    /* Fondo y contenedor */
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    /* Sombra ligera opcional para destacar el bloque */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem; /* Separación con otros elementos */
  }
  
  /* Título principal */
  .services__cards-info h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--dark-purple);
    font-weight: 900; /* Destacar el título */
  }
  
  /* Estilos de párrafo */
  .services__cards-info p {

    line-height: 1.6;
    margin-bottom: 1rem;
    color: var(--dark); /* Texto oscuro para buena legibilidad */
  }
  
  /* Blockquote para citas */
  .services__cards-info blockquote {
    margin: 2rem 0;
    padding: 1rem 1.5rem;
    border-left: 4px solid var(--medium-purple); 
    background-color: var(--green);
    border-radius: 4px;
    transition: background-color 0.3s;
  }

  .services__cards-info blockquote:hover {
   
    background-color: var(--white);
  }
  
  /* Texto de la cita */
  .services__cards-info blockquote p {
    font-style: italic;
    color: var(--dark-purple);
    margin-bottom: 0.5rem; 
  }
  
  /* Autor de la cita */
  .services__cards-info blockquote cite {
    display: block;
    text-align: right;
    font-weight: 700;
    color: var(--dark-purple);
  }
  

/* Contenedor para las tarjetas individuales de servicio */
.services__cards-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: center;
  padding: 20px;

}

.services__cards-card article {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
 
}

/* ✅ Responsividad Mejorada */
@media (max-width: 1024px) {
  .services__cards-card article {
    grid-template-columns: repeat(2, 1fr); /* Mantiene 2 columnas en tablets */
  }
}

@media (max-width: 768px) {
  .services__cards-card article {
    grid-template-columns: 1fr; /* 1 columna en móviles */
  }
}


/* Estilo individual de cada tarjeta de servicio */
.service__card {
  
  border: 1px solid var(--green);
  margin: 3rem 1rem;
  padding: 2rem 1rem;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.service__card:hover {
  background-color: var(--light-pink);
}

.service__card i {
  font-size: 56px;
  color: var(--medium-purple);
}

.service__card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark-purple);
  text-align: center;
}

.service__card p {
 
  color: var(--dark);
  margin-top: 1rem;
}

 /* ==================================================
       Sección de Testimonios y Carrusel
       ================================================== */
       .testimonials-section {
        padding: 2rem;
      }
      
      /* Contenedor del carrusel con overflow hidden para ocultar el desbordamiento */
      .carousel-container {
        max-width: 90%;
        width: 100%;
        margin: 0 auto;
        overflow: hidden;
        position: relative;
      }
      
      /* 
        El carrusel se organiza con CSS Grid:
        - grid-auto-flow: column para ubicar las tarjetas en una fila.
        - grid-auto-columns: minmax(300px, 1fr) asigna a cada tarjeta un ancho mínimo de 300px y se adapta al espacio.
        - gap: 1rem para separar las tarjetas.
        - transition: transform para el desplazamiento suave.
      */
      .carousel {
        display: grid;
        grid-auto-flow: column;
        grid-template-columns: repeat(8, minmax(300px, 1fr));
        gap: 2rem;
        transition: transform 2s ease;
        
      }
  
      @media (max-width: 768px) {
        .carousel {
          text-align: center;
          grid-template-columns: repeat(8, minmax(99%, 1fr));
        }
      }
      
      /* ==================================================
         Estilos para cada Tarjeta de Testimonio
         ================================================== */
      .testimonial-card {
      
        background-color: var(--white);
        padding: 1rem;
        border-radius: 10px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        position: relative;
      }

        /* Efecto hover para resaltar la tarjeta */
        .testimonial-card:hover {
          box-shadow: 0 4px 10px rgba(0,0,0,0.5);
          transform: scale(1.02);
          transition: transform 0.3s, box-shadow 0.3s;
        }
      
        .testimonial-card:active,
        .testimonial-card:focus {
          box-shadow: 0 4px 10px rgba(0,0,0,0.5);
          transform: scale(1.02);
          transition: transform 0.3s, box-shadow 0.3s;
        }
        
        
      /* Estilo del globo de conversación (speech bubble) */
      .speech-bubble {
        background-color: var(--light-pink);
        padding: 1rem;
        border-radius: 10px;
        position: relative;
        height: 70%;

      }
      
      /* Pseudo-elemento para crear la “punta” del globo */
      .speech-bubble::after {
        content: "";
        position: absolute;
        bottom: -15px; /* Ubicado justo debajo del globo */
        left: 20px;    /* Ajusta esta posición según convenga */
        border-width: 15px 15px 0;
        border-style: solid;
        border-color: var(--light-pink) transparent;
        display: block;
        width: 0;
      }
      
      /* Información del testimonio (avatar, nombre y ubicación) */
      .testimonial-info {
        display: flex;
        align-items: center;
        margin-top: 1rem;
      }
      
      /* Avatar redondo */
      .avatar {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        object-fit: cover;
        margin-right: 1rem;
      }
      
      .testimonial-details h3 {
        color: var(--dark-purple);
        margin-bottom: 0.25rem;
      }
      
      .testimonial-details p {
        color: var(--dark);
      }
      
    
      
      /* ==================================================
         Botón de Compra
         ================================================== */
      .purchase-button-container {
        text-align: center;
        margin-top: 2rem;
      }
      
  


      /* ==================================================
       Sección del Acordeón
       ================================================== */
    .accordion-section {
      max-width: 800px;
      margin: 2rem auto;
      padding: 1rem;
    }
    
    .accordion-section h2 {
      margin-bottom: 2rem;
    }
    
    /* Cada ítem del acordeón */
    details.accordion-item {
      background-color: var(--white);
      margin-bottom: 1rem;
      border-radius: 5px;
      padding: 0.5rem 1rem;
      position: relative;
      box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }
    
    /* Estilos para el encabezado (<summary>) */
    details.accordion-item summary {
      font-weight: bold;
      position: relative;
      padding-left: 2rem;
      cursor: pointer;
      list-style: none;
    }
    
    /* Ocultamos el marcador nativo */
    details.accordion-item summary::-webkit-details-marker {
      display: none;
    }
    
    /* Icono: muestra "+" por defecto */
    details.accordion-item summary::before {
      content: "+";
      position: absolute;
      left: 0;
      top: 50%;
      transform: translateY(-50%);
      font-size: 1.2rem;
      color: var(--pink);
    }
    
    /* Cuando el ítem esté abierto, el icono cambia a "x" */
    details.accordion-item[open] summary::before {
      content: "x";
    }
    
    /* Contenedor del contenido a animar */
    .accordion-content {
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.8s ease;
    }
    
    .accordion-content p {
      margin: 1rem 0;
      color: var(--dark);
    }
    
    /* Bordes y fondos opcionales para diferenciar ítems */
    .item1 { border-left: 5px solid var(--pink); }
    .item2 { border-left: 5px solid var(--yellow); background-color: #fff8e6; }
    .item3 { border-left: 5px solid var(--green); background-color: #c1f0dd; }
    .item4 { border-left: 5px solid var(--medium-purple); background-color: #f7ebff; }
    .item5 { border-left: 5px solid var(--light-purple); background-color: #fdeaff; }
    
    .accordion-item:hover {
      box-shadow: 0 4px 10px rgba(0,0,0,0.2);
      transition: box-shadow 0.3s;
    }
    
    /* ==================================================
       Botón CTA
       ================================================== */
      
    .purchase-button-container {
      text-align: center;
      margin-top: 2rem;
    }


/* ==================================================
   Estilos del Footer
   ================================================== */
/* Contenedor principal del footer */
.footer {
  background-color: var(--pink);
  display: flex;
  flex-direction: column;
}

/* Sección superior del footer con enlaces y redes sociales */
.footer__sections {
  background-color: var(--light-pink);
  padding: 50px 20px;
  display: flex;
  justify-content: center;
}
.footer__sections .section__card-buttons{
  margin-top: 20px;
}

/* Contenedor para agrupar las diferentes secciones del footer */
.footer__sections-container {
  display: grid;
  grid-auto-flow: column;
  grid-template-columns: repeat(4, minmax(300px, 1fr));
  gap: 2rem;
}

@media (max-width: 768px) {
  .footer__sections-container {
    grid-auto-flow: row; /* cambia de columnas a filas */
    grid-template-columns: 1fr; /* solo una columna */
  }
}

/* Lista sin estilo para las secciones */
.footer__section-table {
  list-style: none;
}

/* Títulos de cada sección del footer */
.footer__section-title {
  color: var(--dark-purple);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* Enlaces dentro de las secciones del footer */
.footer__section-links {
  margin-bottom: 0.2rem;
}

.footer__section-link {
  color: var(--dark-purple);
  font-size: 1.1rem;
}

/* Contenedor de los íconos de redes sociales */
.social__container {
  margin-bottom: 1rem;
}

.social__icon {
  margin-right: 15px;
}

.social__icon img {
  height: 28px;
}

/* Estilos para el formulario de suscripción */
.suscribe__container-form {
  display: flex;
  flex-direction: column;
}

.suscribe__container-input {
  margin-bottom: 1rem;
}

.suscribe__container-button {
  text-align: center;
  width: 150px;
}

/* Texto de copyright */
.footer__copy-text {
  text-align: center;
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 500;
  padding: 20px 0;
}

/* Enlace dentro del texto de copyright */
.footer__copy-link {
  color: var(--white);
  font-weight: 900;
}

.grid-container {
  display: grid;
  grid-template-areas:
    "header"
    "content";
  gap: 20px;
  max-width: 960px;
  margin: 40px auto;
  background: var(--white);
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
}

/* Cabecera */
.header {
  grid-area: header;
  text-align: center;
  margin-bottom: 20px;
}

.title {
  font-size: 2em;
  color: var(--medium-purple);
}

/* Contenido */
.content {
  grid-area: content;
}

.intro {
  margin-bottom: 20px;
  font-weight: 500;
}

.section {
  margin-bottom: 30px;
}

.subtitle {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: var(--medium-purple);
}

.section p {
  margin-bottom: 10px;
}

ul {
  margin: 10px 0 20px 20px;
}

ul li {
  margin-bottom: 8px;
}

/* Footer */
.footer_terminos_condiciones {
  text-align: center;
  margin-top: 60px;
  font-size: 0.9em;
  color: var(--white);
  background-color: #fc5185;

}

.footer_terminos_condiciones a {
  font-weight: 700;
  text-decoration: none;
  color: var(--white);
  
}

.footer_terminos_condiciones a:hover {
  color: var(--medium-purple);
  transition: color 0.3s;
}
/* Responsive */
@media (max-width: 768px) {


  .grid-container {
    padding: 20px;
  }

  .title {
    font-size: 1.5em;
  }

  .subtitle {
    font-size: 1.2em;
  }
}
