/* ===========================
   MENU BASE MAQUETADO . CSS
   =========================== */

   /* A PARTIR DE AQUI ES EL CSS BASE MAQUETA*/
html, body {
  height: auto;
  min-height: 100vh;
  overflow-x: hidden;
  scroll-behavior: smooth;
  overflow-y: auto;
}

/* ===========================
   1. BASE STYLES (DESKTOP)
   =========================== */

/* RESET Y FUENTES */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
}

/* HEADER */
header {
  width: 100%;
  background-color: #BBA0C9;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
}


.header-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
}
.logo {
  width: clamp(170px, 20vw, 250px); /*aqui se ajusta el tamaño del logo del encabezado*/
  height: auto;
  margin-top: 15px;
}
.menu {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 15px;
  justify-content: center;
  width: 100%;
  margin-top: 18px;
}
.menu a {
  text-decoration: none;
  color: white;
  font-weight: 600;
  font-size: clamp(13px, 1.5vw, 16px);
  padding: 5px 10px;
  transition: color 0.3s;
}
.menu a.active,
.menu a:hover {
  color: #671B6B;
}
.acciones {
  position: absolute;
  top: 10px;
  right: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
}
.acciones a {
  text-decoration: none;
  color: #671B6B;
  font-weight: 700;
  font-size: clamp(14px, 1.8vw, 16px);
}
.acciones a:hover {
  color: white;
}
.acciones img {
  width: clamp(20px, 2vw, 32px);
  height: clamp(20px, 2vw, 32px);
}
.inicio-sesion {
  display: flex;
  align-items: center;
  gap: 15px;
}


/* BOTONES FLOTANTES (Desktop) */
.boton-flotante {
  display: flex;
  align-items: center;
  background-color: #671B6B;
  color: white;
  text-decoration: none;
  font-weight: bold;
  padding: 10px 15px;
  border-radius: 5px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.3);
  transition: transform 0.3s, background-color 0.3s;
}
.boton-flotante img {
  width: 25px;
  height: 25px;
  margin-right: 12px;
}
/* Emergencias */

.modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6); /* ⬅️ EFECTO OSCURECER */
  display: flex;
  justify-content: center;
  align-items: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 10000;
}

.modal-overlay.activo {
  visibility: visible;
  opacity: 1;
}

.modal-contenido {
  background: #671B6B;
  color: white;
  padding: 30px;
  border-radius: 18px;
  width: 90%;
  max-width: 600px;
  position: relative;
  z-index: 10001;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  text-align: left;
}

.img-emergencias-superior {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 120px;
  height: auto;
}


/* Carrito */
.boton-carrito {
  position: fixed;
  top: 167px;
  right: 20px;
  z-index: 900;
}
/* WhatsApp */
.boton-whatsapp {
  position: fixed;
  bottom: 20px;
  left: 44%;
  z-index: 999;
}
.boton-whatsapp img {
  width: 30px;
  height: 30px;
  margin-right: 8px;
}
.boton-whatsapp:hover img {
  animation: whatsapp-bounce 0.5s ease; /*efecto de rebote en el icono de whatsapp*/
}
/* Sucursales */
.boton-sucursales {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
}
.boton-sucursales img {
  width: 24px;
  aspect-ratio: 1/1;
  margin-right: 8px;
}
/* Redes Sociales */
.redes-sociales {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 999;
  display: flex;
  gap: 10px;
  background-color: #671B6B;
  padding: 8px 12px;
  border-radius: 5px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}
.redes-sociales a img {
  width: 24px;
  height: 24px;
  transition: transform 0.3s;
}
.redes-sociales a:hover img {
  transform: scale(1.3);
}
@keyframes whatsapp-bounce {
  0%   { transform: scale(1); }
  30%  { transform: scale(1.3); }
  50%  { transform: scale(0.95); }
  70%  { transform: scale(1.2); }
  100% { transform: scale(1); }
}
/* Reutilizo la misma animación para el icono de sucursales */
.boton-sucursales:hover img {
  animation: whatsapp-bounce 0.5s ease;
}
.boton-carrito:hover img {
 animation: whatsapp-bounce 0.5s ease;
}
.boton-emergencia:hover img{
   animation: whatsapp-bounce 0.5s ease;
}

/* Ocultar hamburguesa en desktop (≥769px) */
@media (min-width: 769px) {
  header .menu-toggle {
    display: none !important;
  }
}



/* ===========================
   2. MOBILE STYLES (≤ 768px)
   =========================== */
@media screen and (max-width: 768px) {

  /* HEADER */
  .header-container {
    flex-direction: column;
    align-items: stretch;
  }
  .logo {
    align-self: flex-start;
    margin-top: 50px;
    margin-left: 24%;
    right: 0px;
  }
  .menu {
    justify-content: space-evenly;
    width: 100%;
    margin-top: 7px;
  }
  .menu a {
    font-size: 4vw;
    padding: 1vh 1.5vw;
  }
  .acciones {
    width: 100%;
    justify-content: flex-end;
    top: 8px;
    right: 5px;
  }
  .inicio-sesion {
    gap: 2.3px; /*separacion entre el icono y la palabra iniciar sesion*/
  }

}



  /* BOTONES FLOTANTES */
  .boton-flotante {
    font-size: 4vw;
    padding: 3vh 5vw;
    border-radius: 6vw;
  }
  .boton-flotante img {
    width: 7vw;
    height: 7vw;
    margin-right: 2vw;
  }
  .boton-whatsapp {
    bottom: -0vh;
    left: 50%;
    padding: 2vh 2vw;
    transform: translateX(-50%);
  }
  .boton-emergencia {
    top: 19vh;
    left: -2vw;
     padding: 2vh 3vw;
  }
  .boton-carrito {
    top: 19vh;
    right: 0vw;
     padding: 2vh 2vw;
  }

  
  .boton-sucursales {
    bottom: 15vh;
    right: -0vw;
     padding: 2vh 2vw;
  }
  .redes-sociales {
    bottom: 15vh;
    left: 0vw;
    padding: 2vh 2vw;
    gap: 4vw;
  }
  .redes-sociales a img {
    width: 7vw;
    height: 7vw;
  }





/* Botón hamburguesa - solo visible en móviles */
.menu-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  color: white;
  border: none;
  cursor: pointer;
  z-index: 9000;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    position: absolute;
    top: 20px;
    left: 20px;
  }

  .menu {
    position: fixed;
    top: 0;
    left: -100%;
    height: 100vh;
    width: 50px;
    background-color: #671B6B;
    flex-direction: column;
    align-items: flex-start;
    padding: 60px 20px;
    gap: 20px;
    transition: left 0.3s ease-in-out;
    z-index: 1000;
  }

  .menu-mobile {
  position: fixed;
  top: 0; left: 0;

  z-index: 10000;
  /* y animas la opacidad o el transform si lo deseas */
}

  .menu.show {
    left: 0;
  }

  .menu a {
    font-size: 1.2rem;
    width: 100%;
    padding: 10px 0;
    border-bottom: 1px solid #fff3;
  }
}


/* HAMBURGUESA oculto en desktop */
.menu-toggle { display: none; }

/* Sólo en pantallas ≤ 768px */
@media (max-width: 768px) {
  .menu-desktop { display: none; }    /* quito el menú de escritorio */
  .menu-mobile  { display: flex; }    /* muestro el deslizable */
  .menu-toggle  { display: block; }   /* muestro el 🔲 hamburguesa */
}

/* ————————————————————————
   Estilos del menú deslizable
   ———————————————————————— */
.menu-mobile {
  position: fixed;
  top: 0; left: -100%;
  width: 210px; height: 88vh;
  background: #671B6B;
  flex-direction: column;
  padding: 0px 20px;
  gap: 4px;
  transition: left 0.3s ease;
  z-index: 1100;
}
.menu-mobile.show {
  left: 0;
}
.menu-mobile a {
  color: #fff;
  text-decoration: none;
  font-size: 1.0rem;
  padding: 10px 5px; /*espacio entre las lineas y el texto del menu desplegable*/
  border-bottom: 2px solid rgba(255,255,255,0.3);
}

.menu a.active,
.menu a:hover {
  color: #671B6B; /*EN DESKTOP esto hace que se pongan moradas las letras al pasar la manita*/
}
.menu-mobile a:hover {
  opacity: 0.8;
}

/*hace QUE destaque  boton que esté en uso, donde nos encontremos, como INICIO, en el menu movil*/
  @media (max-width: 768px) {
  .menu-mobile a.active {
    background-color: #ccacdc;
    color: #671B6B !important;
    padding: 8px 16px;
    border-radius: 50px; /* lo hace redondito de orillas */
    font-weight: bold;
  }
}

.menu-mobile {
  padding: 60px 20px 20px 20px; /* top, right, bottom, left */
}


 .menu-mobile a:hover {
    color: #c89ddd !important; /* puedes ajustar el tono si deseas otro color al pasar el mouse */
  }



/* posición de las rayitas de menu en el movil */
.menu-toggle {
  display: none;
  top: 10px;
  right: 500px;
  /* resto de estilos */
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    /* aquí ajusta top/left para móvil si cambian */
  }
}






/* ———————————————
   DISEÑO DESKTOP (≥ 769 px)
   ——————————————— */
@media(min-width:769px){
  .card-servicio{
    display:flex;
    align-items:center;
    padding:20px 30px;
    max-width:100%;          /* permite que crezca a lo ancho */
  }
  .servicio-icono{
    flex:0 0 90px;
    width:90px; height:90px;
    margin:0 32px 0 0;       /* icono a la izquierda */
    margin-left: 10px;
  }
  .servicio-nombre{text-align:center; }
  .servicio-desc{
    text-align:center;         /* texto alineado a la izquierda */
    font-size: 15px;
    margin-left: -16px;
  }

  
}

/* AJUSTE DE BOTONES BURBUJA Y DE SECCION 2, PARA DESKTOP, TAMAÑOS */
@media screen and (min-width: 769px) {

  /* BOTONES FLOTANTES – AJUSTES DESKTOP */
  .boton-flotante {
    font-size: 1.2rem;
    padding: 10px 20px;
    border-radius: 22px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: white;
    background-color: #4b0c5c; /* Color base general si no se sobreescribe */
    font-weight: bold;
    white-space: nowrap;
  }

  .boton-flotante img {
    width: 27px;
    height: 27px;
    margin: 0;
    padding: 0;
  }

  /* Posición específica por botón */
/* Posición específica por botón */
.boton-emergencia {
  top: 168px;
  left: 20px;

  /* Estilos de contenido interno */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  /* Ajustes visuales */
  padding: 10px 20px !important; /* MÁS ESPACIO INTERNO y forzado */
  background-color: #4b0c5c; /* Asegúrate del color deseado */
  color: white;
  border-radius: 50px;
  font-weight: bold;
  white-space: nowrap;
}
.boton-emergencia img {
  width: 27px !important;
  height: 27px !important;
  margin: 0 !important;
  padding: 0 !important;
}


  .boton-carrito {
    top: 168px;
    right: 20px;
    background-color: #4b0c5c;
  }

  .boton-whatsapp {
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #25d366;
  }

  .boton-sucursales {
    bottom: 20px;
    right: 20px;
    background-color: #4b0c5c;
  }

  /* Redes sociales flotante */
  .redes-sociales {
    position: fixed;
    bottom: 20px;
    left: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 16px;
    background-color: #4b0c5c;
    border-radius: 50px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
  }

  .redes-sociales a img {
    width: 25px;
    height: 25px;
    margin: 0;
    padding: 0;
  }
}



/* ———————————————
   DISEÑO MÓVIL (≤ 768 px)
   ——————————————— */
@media(max-width:768px){
  .card-servicio{
    max-width:500px;         /* que no se estire más de la pantalla */
  }
  .servicio-icono{
    margin:0 auto 20px;      /* icono centrado arriba */
  }

}
@media screen and (max-width: 768px) {
  .boton-emergencia
  {
    font-size: 17px !important;
    top: 100px !important;         /* misma altura que el carrito */
     top: 18vh !important;
  left: 1vw !important;
  }
  .boton-carrito {
    top: calc(100px + 20px); /* Ajuste dinámico: altura del header + margen */
  }

}

@media screen and (max-width: 320px) {
  .boton-emergencia
  {
    font-size: 14px !important;
        /* misma altura que el carrito */
     top: 13vh !important;
    
  left: -4vw !important;
  }
  .boton-carrito {
    top: calc(100px + 20px); /* Ajuste dinámico: altura del header + margen */
  }

}

@media screen and (max-width: 768px) {
  .boton-emergencia {
    position: fixed;
    top: 18vh !important;
    left: 10px !important;
    font-size: 16px !important;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 8px 16px !important;
    background-color: #4b0c5c;
    color: white;
    border-radius: 50px;
    font-weight: bold;
    white-space: nowrap;
    z-index: 999;
  }

  .boton-emergencia img {
    width: 25px !important;
    height: 25px !important;
    margin: 0 !important;
    padding: 0 !important;
  }
}
@media screen and (max-width: 768px) {
  .boton-whatsapp {
    position: fixed;
    bottom: 3vh !important; /* Súbelo del borde inferior */
    left: 50% !important;
    transform: translateX(-50%);
    z-index: 999;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 9px 10px;
    background-color: #25d366;
    color: white;
    border-radius: 50px;
    font-size: 20px;
    font-weight: bold;
    text-decoration: none;
    white-space: nowrap;
  }

  .boton-whatsapp img {
    width: 25px;
    height: 25px;
    margin: 0;
    padding: 0;
  }
}



/* ——————————————————————————
   SECCIÓN CON FONDO MORADO Y LETRA BLANCA
   —————————————————————————— */
.seccion-morado-texto {
  background-color: #671B6B; /* morado institucional */
  padding: 60px 40px; /*espacio vertical y espacio horizontal que deja para que no abarque el texto*/
  text-align: center;
}

.contenedor-texto-blanco p {
  max-width: 1100px;
  margin: 0 auto;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: #ffffff;
  font-weight: 300;
  line-height: 1.3; /*espacio entre las letras verticalmente*/
}

/* Móvil */
@media (max-width: 768px) {
  .contenedor-texto-blanco p {
    font-size: 3vw;
    padding: 0 10px;
  }
}




/* --DISEÑO DE MODAL DE RECORRIDO VIRTUAL VENTANITAS --*/
.modal-recorrido-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.modal-recorrido-overlay.activo {
  display: flex;
}

.modal-recorrido-content {
  background: white;
  border-radius: 10px;
  width: 90%;
  max-width: 960px;
  height: 80vh;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.modal-recorrido-content iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.cerrar-modal {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: white;
  font-weight: bold;
  cursor: pointer;
  z-index: 10;
}
/* --FIN DISEÑO DE MODAL DE RECORRIDO VIRTUAL VENTANITAS --*/


/* ———————————————
   SECCIÓN OBITUARIOS 
   ——————————————— */
.seccion-obituarios {
  background: url("/FRONTEND/1.6imagenes/fondo-pagina.png") no-repeat center center fixed;
  background-size: cover;
  padding: 60px 20px 130px;
  text-align: center;
  position: relative;
  overflow: visible; /*es para que se vea encima de todo*/
}

.obituarios-texto h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  color: #671B6B;
  font-weight: 700;
  margin-bottom: 10px;
}

.obituarios-texto p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 500;
  color: #671B6B;
  margin-bottom: 40px;
}

.obituarios-imagen {
  width: 100vw;
  overflow: hidden;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.obituarios-imagen img {
  width: 100%;
  height: 35vh;
  object-fit: cover;
  object-position: center;
  display: block;
}

.obituarios-boton {
  position: relative;
  z-index: 5;
  margin-top: -30px;
}

.btn-obituarios {
  display: inline-block;
  background-color: #671B6B;
  color: white;
  padding: 14px 36px;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  font-weight: bold;
  border-radius: 40px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.3s;
}

.btn-obituarios:hover {
  background-color: #542356;
  transform: scale(1.05);
}

/* Versión móvil */
@media (max-width: 768px) {
  .obituarios-boton {
    margin-top: -30px;
    text-align: center;
    padding-left: 40px;
  }

  .btn-obituarios {
    font-size: clamp(0.8rem, 4vw, 1.2rem);
  }

  .obituarios-imagen img {
    width: 140%;
  height: 50vh;
  object-fit: cover;
  object-position: center;
  }
}

/*imagen de obituarios - niña*/
.seccion-obituarios {
  position: relative; /* importante para posicionar la imagen interna */
  background: url('/FRONTEND/1.6imagenes/fondo-pagina.png') no-repeat center center fixed;
  background-size: cover;
  padding: 100px 20px 160px; /* deja espacio al final para la imagen */
  text-align: center;
}

.seccion-obituarios::after {
  content: "";
  position: absolute;
  bottom: 0; /* se pega al final */
  left: 15%;  /* centrada horizontalmente */
  top: 22%;
  transform: translateX(-50%);
  width: 100%; /* tamaño base para desktop */
  height: 65%;
  background: url('1.6imagenes/imagen-homenaje.png') no-repeat center bottom;
  background-size: contain;
  z-index: 5;
  pointer-events: none;
}

@media (max-width: 768px) {
  .seccion-obituarios::after {
    width: 100vw;
    height: 140px;
    background-position: center 20px;  /* ajusta verticalmente */
    bottom: 10px;
  }
}


/* ———————————————
   FIN SECCIÓN OBITUARIOS 
   ——————————————— */





.seccion-con-fondo {
  background-image: url('../1.6imagenes/fondo-pagina.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;

  color: white;
  padding: 100px 20px;
  text-align: center;
}


.contenedor-descripcion {
  max-width: 900px;
  margin: 0 auto;
}

.descripcion-detallada h3 {
  font-size: 1.7rem;
  color: #671B6B;
  margin-bottom: 15px;
  font-weight: 700;
}



/* Fondo general de la página: imagen fija */
body {
  
  background: url("../1.6imagenes/fondo-pagina.png") no-repeat center center fixed !important;
  background-size: cover !important;
}



/* === Sección descriptiva del producto === */

.descripcion-extra {
  background-color: #dab8e7; /* tono morado pastel */
  border-radius: 20px;
  padding: 30px 30px;
  max-width: 900px;
  margin: 20px auto;
  box-shadow: 0 8px 24px rgba(103, 27, 107, 0.15);
  font-family: 'Montserrat', sans-serif;
  color: #4A004E;
  line-height: 1.7;
}

.descripcion-extra h3 {
  font-size: 1.6rem;
  color: #671B6B;
  margin-bottom: 18px;
}

.descripcion-extra h4 {
  font-size: 1.3rem;
  color: #671B6B;
  margin: 25px 0 10px;
}

.descripcion-extra p {
  font-size: 1rem;
  margin-bottom: 20px;
  text-align: justify;
}

.descripcion-extra ul {
  list-style: disc;
  padding-left: 20px;
  margin: 0;
}

.descripcion-extra ul ul {
  list-style: circle;
  margin-top: 6px;
}


@media (max-width: 767px) {
  .descripcion-extra {
    order: 3; /* asegura que vaya al final si está en flex container */
  }

  .contenedor-producto {
    display: flex;
    flex-direction: column;
  }
}


  /* FIN DE SECCIONES DE EJEMPLO A ELIMINAR */
    /* SECCIONES DE EJEMPLO A ELIMINAR */
      /* SECCIONES DE EJEMPLO A ELIMINAR */




/* ———— PIE DE PÁGINA ———— */
.footer {
  background-color: #b396c3; /* Color sólido igual que encabezado */
  color: white;
  text-align: center;
  padding: 40px 20px 50px;
  font-family: 'Montserrat', sans-serif;
  box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.2);

}

.footer-info p {
  font-size: 0.95rem;
  margin: 5px 0;
}

.footer-info a {
  color: white;
  text-decoration: underline;
}

.footer-copy {
  margin-top: 20px;
}

.footer-copy p {
  font-size: 0.85rem;
  margin-bottom: 15px;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 25px;
}

.footer-social img {
  width: 26px;
  height: 26px;
  transition: transform 0.3s ease;
}

.footer-social img:hover {
  transform: scale(1.2);
}

@media (max-width: 768px) {
  .footer {
    padding: 30px 20px;
  }

  .footer-info p,
  .footer-copy p {
    font-size: 0.8rem;
  }

  .footer-social {
    gap: 20px;
    padding: 10px 16px;
  }

  .footer-social img {
    width: 24px;
    height: 24px;
  }


}

/* Ajuste para móvil */
@media (max-width: 768px) {
  .seccion-obituarios::after {
    width: 100vw;         /* casi todo el ancho de pantalla */
    height: 310px;       /* menos alto en móvil si deseas */
    left: 15%;           /* centrado */
     top: 60%;
    transform: translate(-50%, 10px); /* 10px hacia abajo desde el final */
    background-position: center top;
    background-size: contain;
  }
}






/* ———————————————
   BOTON DE EMERGENCIAS CON MODAL
   ——————————————— */

button.boton-flotante {
  all: unset;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 20px;
  background-color: #671B6B;
  color: white;
  font-family: 'Montserrat', sans-serif; /* o la fuente que estés usando */
  font-weight: bold;
  font-size: 16px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.3);
  transition: transform 0.2s ease, background-color 0.3s ease;
  border: none;
}

button.boton-flotante:hover {
  transform: scale(1.05);
  background-color: #4d1251;
}

.boton-flotante img {
  width: 24px;
  height: 24px;
}

/*BOTON EMERGENCIAS EN DESKTOP*/
#botonEmergencias {
  position: fixed;
  top: 26vh;
  left: 2vw;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.8em 0.4em;
  border-radius: 2em;
  background-color: #671B6B;
  color: white;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: clamp(0.8rem, 2vw, 1.2rem);
  box-shadow: 0 4px 6px rgba(0,0,0,0.3);
  transition: transform 0.2s ease, background-color 0.3s ease;
  z-index: 999;
  border: none;
}
#botonEmergencias img {
  width: clamp(16px, 5vw, 24px);
  height: clamp(16px, 5vw, 24px);
}
#botonEmergencias:hover {
  transform: scale(1.05);
  background-color: #4d1251;
}
/*BOTON EMERGENCIAS EN DESKTOP FIN*/



/* ———————————————
  FIN  BOTON DE EMERGENCIAS CON MODAL
   ——————————————— */

/* ———————————————
   MODAL DEL BOTON DE EMERGENCIAS
   ——————————————— */
.modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6); /* ESTE ES EL EFECTO OSCURECIDO */
  display: flex;
  justify-content: center;
  align-items: center;
  visibility: hidden;
  opacity: 0;
  transition: 0.3s ease;
  z-index: 10000;
}

.modal-overlay.activo {
  visibility: visible;
  opacity: 1;
}

.modal-contenido {
  background: #671B6B;
  padding: 25px;
  max-width: 600px;
  width: 80%;
  height: 80%;
  border-radius: 12px;
  position: relative;
  color: white;
    font-size: 0.9rem;  /* tamaño de letra en el modal de emergencias */
  line-height: 1.7;

}

.img-emergencias-superior {
  position: absolute;
  top: 50%;
  left: 75%;
  transform: translateX(-50%);
  width: 290px;
  height: auto;
  z-index: 5;
  border-radius: 12px;
 
}

.titulo-modal-emergencias {
  text-align: center;
  font-size: 1.6rem;
  margin-bottom: 15px;
}

.modal-contenido {
  font-size: 1rem;
  line-height: 1.6;
}

/* Móvil */
/* 320px a 359px */
@media screen and (min-width: 320px) and (max-width: 359px) {
  .modal-contenido {
    height: 85%;
    width: 88%;
    font-size: 0.68rem;
    line-height: 1.3;
  }
  .img-emergencias-superior {
    bottom: 0;
    top: auto;
    left: 50%;
    transform: translateX(-50%);
    width: 68%;
  }
}

/* 360px a 389px */
@media screen and (min-width: 360px) and (max-width: 389px) {
  .modal-contenido {
    height: 87%;
    width: 89%;
    font-size: 0.8rem;
    line-height: 1.4;
  }
  .img-emergencias-superior {
    bottom: 0;
    top: auto;
    left: 50%;
    transform: translateX(-50%);
    width: 43%;
  }
}

/* 390px a 411px */
@media screen and (min-width: 390px) and (max-width: 411px) {
  .modal-contenido {
    height: 88%;
    width: 90%;
    font-size: 0.96rem;
    line-height: 1.45;
  }
  .img-emergencias-superior {
    bottom: 0;
    top: auto;
    left: 50%;
    transform: translateX(-50%);
    width: 52%;
  }
}

/* 412px a 429px */
@media screen and (min-width: 412px) and (max-width: 429px) {
  .modal-contenido {
    height: 89%;
    width: 91%;
    font-size: 1.0rem;
    line-height: 1.5;
  }
  .img-emergencias-superior {
    bottom: 0;
    top: auto;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
  }
}

/* 430px a 440px */
@media screen and (min-width: 430px) and (max-width: 440px) {
  .modal-contenido {
    height: 90%;
    width: 92%;
    font-size: 1.05rem;
    line-height: 1.55;
  }
  .img-emergencias-superior {
    bottom: 0;
    top: auto;
    left: 50%;
    transform: translateX(-50%);
    width: 58%;
  }
}



.cerrar-modal {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: white;
  cursor: pointer;
}

.lista-telefonos {
  list-style: none;
  padding-left: 0;
  margin-top: 15px;
}

.lista-telefonos li {
  margin-bottom: 8px;
}

/* ———————————————
   FIN MODAL DEL BOTON DE EMERG
   ——————————————— */


   /*MODAL EMERGENCIAS AJUSTADO*/

.numero-principal {
  font-size: 2rem;
  font-weight: bold;
  color: #ffffff;
  text-align: center;
  margin: 10px 0;
}

.emergencias-label {
  font-size: 1rem;
  text-align: center;
  margin-top: 10px;
  color: #ffffff;
}

.disponibilidad {
  font-size: 0.95rem;
  text-align: center;
  margin-bottom: 20px;
  color: #ffffff;
}

.btn-toggle-lista {
  display: block;
  margin: 0 auto 20px auto;
  padding: 10px 20px;
  background-color: white;
  color: #671B6B;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  transition: background-color 0.3s ease;
}

.btn-toggle-lista:hover {
  background-color: #eee;
}

/* Ocultar lista inicialmente */
/* Fondo diferente y animación de entrada */
.lista-telefonos {
  background-color: #ffffff;
  color: #671B6B;
  border-radius: 12px;
  padding: 20px;
  list-style: none;
  font-size: 0.85rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  margin-top: 15px;
  display: none;
  animation: slideInDown 0.4s ease-out;
  max-height: 400px;
  overflow-y: auto;
}

/* Estilo de los ítems */
.lista-telefonos li {
  margin-bottom: 3px;
  font-weight: 500;
  font-family: 'Montserrat', sans-serif;
}

/* ANIMACIÓN DE REBOTE HACIA ABAJO */
@keyframes slideInDown {
  0% {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  60% {
    opacity: 1;
    transform: translateY(5px) scale(1.02);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

.btn-toggle-lista {
  display: block;
  margin: 0 auto 10px auto;
  padding: 10px 18px;
  background-color: white;
  color: #671B6B;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.btn-toggle-lista:hover {
  background-color: #f2f2f2;
}

.contenedor-lista-emergencias {
  position: relative;
  z-index: 20; /* Más alto que la ilustración */
}

.lista-telefonos {
  background-color: white;
  color: #671B6B;
  border-radius: 16px;
  padding: 20px;
  list-style: none;
  font-size: 0.85rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  margin-top: 15px;
  display: none;
  animation: slideInDown 0.4s ease-out;
  max-height: 400px;
  overflow-y: auto;
  position: relative;
  z-index: 21; /* Por encima de ilustración */
}

.img-emergencias-superior {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 45%;
  z-index: 10; /* Por debajo de lista */
}

/*MODAL EMERGENCIAS AJUSTADO*/
   


/* CARRITO*/
.modal-carrito-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  visibility: hidden;
  opacity: 0;
  transition: 0.3s ease;
  z-index: 10000;
}

.modal-carrito-overlay.activo {
  visibility: visible;
  opacity: 1;
}

.modal-carrito-content {
  position: relative;
  background: #E2BFF5;
  border-radius: 16px;
  padding: 60px;
  position: relative;
  top: -30px; /* súbelo más si quieres mayor efecto */
  max-width: 600px;
  width: 90%;
  text-align: left;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.img-carrito-3d {
  position: absolute;
  left: -60px;
  top: 70px;
  width: 130px;
}

.titulo-carrito {
  font-size: 1.8rem;
  font-weight: bold;
  color: white;
  text-shadow: 1px 1px 2px black;
  margin-left: 80px;
}

.item-carrito {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #E2BFF5;
  padding: 12px 20px;
  margin: 10px 0;
  font-weight: bold;
  border-radius: 12px;
  color: #671B6B;
}

.carrito-total {
  background-color: #671B6B;
  color: white;
  font-weight: bold;
  padding: 15px 20px;
  font-size: 1.2rem;
  display: flex;
  text-align: right;
  justify-content: space-between;
  margin-top: 20px;
  border-radius: 6px;
}

.pago-carrito {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
}

.logo-openpay {
  width: 100px;
}

.btn-pagar {
  background-color: #8867E8;
  color: white;
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: 0.3s ease;
}

.btn-pagar:hover {
  background-color: #7152c5;
  transform: scale(1.05);
}

.cantidad-control button {
  background-color: white;
  border: none;
  font-size: 1.2rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #671B6B;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.cantidad-control {
  margin-left: auto;         /* empuja hacia la derecha */
  display: flex;
  align-items: center;
  gap: 9px;                  /* espacio entre − número + */
}

.folio-contrato {
  margin-top: 20px;
  text-align: center;
}

.btn-folio {
  background-color: #ffffff;
  color: #671B6B;
  border: 2px solid #671B6B;
  padding: 12px 20px;
  border-radius: 30px;
  font-weight: bold;
  font-family: 'Montserrat', sans-serif;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
}

.btn-folio:hover {
  background-color: #f3e2fb;
  transform: scale(1.05);
}


@media (max-width: 768px) {
  .modal-carrito-content {
    padding: 19px;
    top: -20px;
  }

  .titulo-carrito {
    font-size: 1.3rem;
    margin-left: 67px;
  }

  .item-carrito {
    padding: 10px 34px;
    font-size: 0.9rem;
    margin: 8px 0;
  }

  .cantidad-control button {
    width: 24px;
    height: 24px;
    font-size: 1rem;
  }



  .carrito-total {
    font-size: 1rem;
    padding: 12px 16px;
  }

  .btn-pagar {
    padding: 10px 20px;
    font-size: 0.95rem;
  }

  .logo-openpay {
    width: 80px;
  }

  .img-carrito-3d {
    width: 90px;
    top: 50px;
    left: -40px;
  }
}

/*CARRITO*/
   /* AQUI TERMINA EL CSS BASE MAQUETA*/


/*--------------------------------------------------------------*/
/*--------FIN DE DISEÑO BASE PARA MAQUETADO DE MENUS ---------------*/
/*--------------------------------------------------------------*/

/* === SECCIÓN PRODUCTO DETALLE === */
.producto-detalle {
  padding: 120px 20px 80px;
  background: linear-gradient(to bottom, #ecd6f4, #d6b4e4);
  background-attachment: fixed;
  font-family: 'Montserrat', sans-serif;
}

.contenedor-producto {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  gap: 60px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.info-producto {
  flex: 1 1 500px;
}

.titulo-producto {
  font-family: 'Fleur De Leah', cursive;
  font-size: clamp(2.5rem, 6vw, 3.6rem);
  color: #671B6B;
  margin-bottom: 20px;
  line-height: 1.2;
}

.descripcion-producto {
  font-size: 1.1rem;
  color: #4A004E;
  margin-bottom: 30px;
  line-height: 1.6;
}

.precios-producto {
  font-size: 1.05rem;
  margin-bottom: 40px;
}

.precios-producto strong {
  color: #4A004E;
}

.precio-publico {
  text-decoration: line-through;
  color: #888;
  margin-left: 10px;
}

.precio-descuento {
  color: #B80064;
  font-size: 1.3rem;
  font-weight: bold;
  margin-left: 10px;
}

.botones-accion {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.btn-compra-online,
.btn-compra-presencial {
  padding: 12px 25px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-decoration: none;
}

.btn-compra-online {
  background-color: #671B6B;
  color: white;
}

.btn-compra-online:hover {
  background-color: #500e55;
}

.btn-compra-presencial {
  background-color: #FFFFFF;
  color: #671B6B;
  border: 2px solid #671B6B;
}

.btn-compra-presencial:hover {
  background-color: #f3e5f7;
}

.imagen-producto {
  flex: 1 1 500px;
  text-align: center;
}

.imagen-producto img {
  width: 100%;
  max-width: 100%;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* === RESPONSIVE === */
@media screen and (max-width: 900px) {
  .contenedor-producto {
    flex-direction: column;
    gap: 40px;
    text-align: center;
  }

  .botones-accion {
    justify-content: center;
  }

  .info-producto {
    order: 2;
  }

  .imagen-producto {
    order: 1;
  }
}

/* === MODAL “COTIZA TU PLAN” === */
.modal-cotiza-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
  z-index: 10001; /* por encima del resto de modales */
}

.modal-cotiza-overlay.activo {
  display: flex;
}

.modal-cotiza-contenido {
  position: relative;
  background: #fff;
  padding: 2.5rem 2rem;
  max-width: 500px;
  width: 90%;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.15);
  text-align: center;
}

/* Fuente Montserrat en todo el modal */
.modal-cotiza-overlay,
.modal-cotiza-contenido,
.modal-cotiza-contenido * {
  font-family: 'Montserrat', sans-serif;
}

/* Botón cerrar (X) */
.modal-cotiza-contenido .cerrar-modal {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: #671B6B;
  font-size: 1.6rem;
  cursor: pointer;
}

/* Texto principal */
.modal-cotiza-contenido .modal-etiqueta {
  font-size: 1.4rem;
  font-weight: 700;
  color: #671B6B;
  margin-bottom: 1rem;
}

/* Subtexto explicativo */
.modal-cotiza-contenido .modal-subtexto {
  font-size: 1rem;
  color: #4A004E;
  margin: 1rem 0 1.5rem;
}

/* Botón WhatsApp dentro del modal */
.btn-whatsapp-modal {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 2px solid #671B6B;
  border-radius: 8px;
  padding: 0.85rem 1.2rem;
  color: #671B6B;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  transition: background-color 0.3s;
}

.btn-whatsapp-modal:hover {
  background-color: #f3e5f7;
}

.modal-cotiza-contenido .icono-wsp {
  width: 24px;
  height: 24px;
  vertical-align: middle;
}

/* Formulario */
.formulario-modal {
  display: grid;
  gap: 1rem;
  text-align: left;
  margin-top: 0.5rem;
}

/* Labels del formulario */
.formulario-modal label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #4A004E;
}

/* Inputs */
.formulario-modal input {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.formulario-modal input:focus {
  outline: none;
  border-color: #671B6B;
  box-shadow: 0 0 0 2px rgba(103,27,107,0.2);
}

/* Botón de enviar datos */
.btn-enviar-modal {
  width: 100%;
  padding: 0.75rem;
  background-color: #671B6B;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.btn-enviar-modal:hover {
  background-color: #500e55;
}



/* === SLIDER COLLAGE AUTOMÁTICO === */

/* === SLIDER COLLAGE AUTOMÁTICO === */
.collage-slider {
  width: 100%;
  height: 100vh; /* Ocupa toda la altura de la pantalla */
  margin: 0 auto;
  overflow: hidden;
  position: relative;
  border-radius: 0; /* Quita bordes si deseas que abarque completo */
  box-shadow: none;
}

.fade-slider {
  width: 100%;
  height: 100vh;
  max-width: none;
  aspect-ratio: auto;
  position: relative;
}

.slider-contenedor {
  display: flex;
  width: 400%; /* 4 imágenes */
  height: 100%;
  animation: deslizar 16s infinite ease-in-out;
}

.slider-contenedor img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Que llene visualmente */
  object-position: center;
  flex: 0 0 100%;
}

.fade-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.fade-slide.active {
  opacity: 1;
  z-index: 1;
}

/* Botones de navegación del slider */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.7);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  transition: background-color 0.3s;
}

.slider-btn img {
  width: 100%;
  height: auto;
}

.slider-btn:hover {
  background-color: rgba(255, 255, 255, 0.9);
}

.prev-btn {
  left: 10px;
}

.next-btn {
  right: 10px;
}

.fade-slider {
  position: relative;
}


/* Animación automática de izquierda a derecha */
@keyframes deslizar {
  0%   { transform: translateX(0%); }
  20%  { transform: translateX(0%); }
  25%  { transform: translateX(-100%); }
  45%  { transform: translateX(-100%); }
  50%  { transform: translateX(-200%); }
  70%  { transform: translateX(-200%); }
  75%  { transform: translateX(-300%); }
  95%  { transform: translateX(-300%); }
  100% { transform: translateX(0%); }
}

/* === SECCIÓN DE NOSOTROS DESPUÉS DEL COLLAGE === */
.contenedor-nosotros {
  display: flex;
  gap: 60px;
  align-items: center;
  justify-content: center;
  padding: 40px 60px;
  margin-top: 100vh; /* Empuja el contenido hacia abajo después del collage */
}

.info-nosotros {
  flex: 1;
  max-width: 40%;
  padding-top: 40px; /* Separación adicional */
}

/* Responsive */
@media screen and (max-width: 768px) {
  .contenedor-nosotros {
    flex-direction: column;
    margin-top: 60vh; /* Menor espacio para móvil */
    padding: 20px;
  }

  .info-nosotros {
    max-width: 90%;
    padding-top: 20px;
  }

  .fade-slider {
    height: 60vh;
  }
}



/*diseño para reseñas*/
/* === SECCIÓN DE TESTIMONIOS === */
/* === SECCIÓN DE TESTIMONIOS === */

/* ════════════════════════════════════════════
   SECCIÓN TESTIMONIOS – Jardín de los Pinos
   Efecto carrusel 3-D centrado, clickeable, fluido.
   ════════════════════════════════════════════ */

/* ——— 1. CONTENEDOR GENERAL ——— */
.testimonios-section {
  background: linear-gradient(to bottom, #6d2393, #a067c3);
  padding: 80px 0;
  color: #fff;
  text-align: center;
  overflow: hidden;
}

.titulo-testimonios {
  font: 700 2.6rem/1 'Montserrat', sans-serif;
  margin: 0 0 48px;
  position: relative;
}
.titulo-testimonios::after {
  content: "";
  width: 140px;
  height: 3px;
  background: #fff;
  border-radius: 3px;
  position: absolute;
  left: 50%;
  bottom: -12px;
  transform: translateX(-50%);
}

/* ——— 2. CARRUSEL ——— */
.carrusel-testimonios {
  position: relative;
  max-width: 1400px;
  padding-left:221vh;
  margin: 0 auto;
  height: 460px;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1200px;
  overflow: hidden;
}



.contenedor-tarjetas {
  display: flex;
  align-items: center;
  transition: transform 0.6s ease;
  will-change: transform;
}

/* ——— 3. TARJETAS ——— */
.tarjeta {
  flex: 0 0 300px;
  margin: 0 16px; /* ← asegura GAP de 32px entre tarjetas */
  max-width: 90vw;
  height: 380px;
  background: #ffffff;
  border-radius: 22px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
  padding: 34px 28px;
  box-sizing: border-box;
  color: #4a004e;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  text-align: center;
  transform-origin: center center;
  transform: scale(0.78);
  opacity: 0.35;
  transition: transform 0.6s ease, opacity 0.6s ease;
  cursor: pointer;
}

.tarjeta.activa {
  transform: scale(1.15) translateZ(60px);
  opacity: 1;
  z-index: 5;
}

/* ——— Contenido interno ——— */
.tarjeta h3 {
  font: 700 1.3rem/1.2 'Montserrat', sans-serif;
}
.profesion {
  font: 500 0.9rem/1.2 'Montserrat', sans-serif;
  color: #826a9b;
}
.mensaje {
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.45;
}
.estrellas {
  font-size: 1.25rem;
  color: #ffc107;
  letter-spacing: 2px;
}
.google-icon {
  width: 34px;
  margin: 0 auto;
  opacity: 0.9;
}

/* ——— 4. NAVEGACIÓN ——— */
.btn-carrusel {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  font-size: 2rem;
  background: rgba(255, 255, 255, 0.7);
  color: #6d2393;
  cursor: pointer;
  transition: background 0.25s;
  z-index: 10;
}
.btn-carrusel:hover {
  background: #fff;
}
#btn-prev {
  left: 12px;
}
#btn-next {
  right: 12px;
}


/*CONDICIONES AJUSTES PARA TAMAÑO DE MÓVIL PARA QUE CARRUSEL SE VEA AL CENTRO

/* 📱 Móviles muy pequeños (iPhone SE, Galaxy J2) */
@media (max-width: 320px) {
  .carrusel-testimonios {
    padding-left: 178vh;
  }
}

/* 📱 Móviles pequeños (iPhone 5s, Galaxy A01) */
@media (min-width: 321px) and (max-width: 359px) {
  .carrusel-testimonios {
    padding-left: 15px;
  }
}

/* 📱 Móviles medianos (iPhone 12, Galaxy S10) */
@media (min-width: 360px) and (max-width: 389px) {
  .carrusel-testimonios {
    padding-left: 184.5vh;
  }
}

/* 📱 Móviles grandes (iPhone XR, Pixel 6) */
@media (min-width: 390px) and (max-width: 400px) {
  .carrusel-testimonios {
    padding-left: 146.5vh;
  }
}
@media (min-width: 401px) and (max-width: 411px) {
  .carrusel-testimonios {
    padding-left: 136vh;
  }
}
@media (min-width: 412px) and (max-width: 419px) {
  .carrusel-testimonios {
    padding-left: 136vh;
  }
}
/* 📱 Móviles extra grandes (Galaxy S21 Ultra, iPhone 14 Plus) */
@media (min-width: 420px) and (max-width: 449px) {
  .carrusel-testimonios {
    padding-left: 134vh;
  }
}
@media (min-width: 450px) and (max-width: 479px) {
  .carrusel-testimonios {
    padding-left: 80vh;
  }
}

/* 💊 Tablets pequeñas (iPad Mini, Galaxy Tab A) */
@media (min-width: 480px) and (max-width: 767px) {
  .carrusel-testimonios {
    padding-left: 130vh;
  }
}

/* 💻 Tablets grandes y laptops pequeñas (iPad Air, Surface Go) */
@media (min-width: 768px) and (max-width: 1023px) {
  .carrusel-testimonios {
    padding-left: 208vh;
  }
}

/* 🖥️ Escritorio estándar (laptops normales de 13"-14") */
@media (min-width: 1024px) and (max-width: 1439px) {
  .carrusel-testimonios {
    padding-left: 222vh;
  }
}

/* 🖥️ Pantallas grandes (desktops y laptops de 15"-17") */
@media (min-width: 1440px) {
  .carrusel-testimonios {
    padding-left: 220vh;
  }
}
/*FIN CONDICIONES AJUSTES PARA TAMAÑO DE MÓVIL PARA QUE CARRUSEL SE VEA AL CENTRO

/*DISEÑO PARA APARTADO DE VIDEOS EN NOSOTROS*/
.videos-section {
  background: #f8f4fc;
  padding: 80px 20px;
  text-align: center;
}

.titulo-videos {
  font: 700 2.4rem 'Montserrat', sans-serif;
  margin-bottom: 48px;
  color: #4a004e;
  position: relative;
}
.titulo-videos::after {
  content: "";
  width: 120px;
  height: 3px;
  background: #6d2393;
  position: absolute;
  left: 50%;
  bottom: -12px;
  transform: translateX(-50%);
  border-radius: 2px;
}

.contenedor-videos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}

.video-wrapper {
  flex: 1 1 480px;
  max-width: 600px;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.15);
}

.video-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}


.videos-section {
  background: url('../1.6imagenes/fondo-pagina.png') no-repeat center center fixed;
  background-size: cover;
  padding: 80px 20px;
  text-align: center;
  color: #fff;
}

/*fin seccion videos*/


/*SECCION CALENDARIO*/
.calendario-section {
  background: url('../1.6imagenes/fondo-pagina.png') no-repeat center center fixed;
  background-size: cover;
  padding: 80px 20px 140px;  /*el ultimo numero de padding es para el espacio abajo del calendario entre final de seccion*/
  text-align: center;
  color: #fff;
}

.titulo-calendario {
  font: 700 2.4rem 'Montserrat', sans-serif;
  margin-bottom: 48px;
  position: relative;
}

.titulo-calendario::after {
  content: "";
  width: 140px;
  height: 4px;
  background: #fff;
  position: absolute;
  left: 50%;
  bottom: -12px;
  transform: translateX(-50%);
  border-radius: 2px;
}

.contenedor-calendario {
  max-width: 1000px;
  margin: 0 auto;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
}


/*DISEÑOS LINEA DEL TIEMPO*/
/* ===================== LÍNEA DEL TIEMPO ===================== */
.linea-tiempo {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding:40px 20px;
  overflow: hidden;
}

/* TÍTULOS GENERALES */
.linea-tiempo-titulo,
.linea-tiempo-subtitulo {
  text-align: center;
  color: #4A004E;
  font-family: 'Montserrat', sans-serif;
}
.linea-tiempo-titulo {
  font-size: 2.5rem;
  margin-bottom: 40px;
}
.linea-tiempo-subtitulo {
  font-size: 1.8rem;
  margin: 60px 0 20px;
}

/* EVENTO (contenedor flex alternado) */
.evento {
  display: flex;
  align-items: center;
  justify-content: space-between;
   gap: 150px;           /* <--- aquí defines el espacio */
  margin: 50px 0;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Cuando entra en vista */
.evento.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Alternar dirección */
.evento-izq  { flex-direction: row; }
.evento-der  { flex-direction: row-reverse; }

/* CONTENIDO DE TEXTO */
.evento .contenido {
  width: 45%;
  padding: 20px;
  color: #4A004E;
  font-family: 'Montserrat', sans-serif;
  position: relative;
}
.evento .contenido h3 {
  font-size: 1.6rem;
  margin-bottom: 12px;
}
.evento .contenido p {
  font-size: 1rem;
  line-height: 1.6;
  white-space: pre-line;
}

/* ICONO */
.evento .icono {
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
}

/* ===================== LÍNEA DEL TIEMPO - CSS COMPLETO CORREGIDO ===================== */


/* Títulos */
.linea-tiempo-titulo,
.linea-tiempo-subtitulo {
  text-align: center;
  color: #4A004E;
  font-family: 'Montserrat', sans-serif;
}
.linea-tiempo-titulo {
  font-size: 2.5rem;
  margin-bottom: 20px;          /* reducido */
}
.linea-tiempo-subtitulo {
  font-size: 1.8rem;
  margin: 40px 0 10px;          /* reducido */
}

/* Línea central opcional */
.linea-tiempo::before {
  content: '';
  position: absolute;
  left: 50%;
    top: 80px;                /* <–– Ajusta este valor */
  bottom: 0;
  width: 4px;
  background: #b177dd;
  transform: translateX(-50%);
}

/* Evento (flex alternado) */
.evento {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 30px 0;               /* reducido */
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Al entrar en vista */
.evento.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Zig-zag */
.evento-izq  { flex-direction: row; }
.evento-der  { flex-direction: row-reverse; }

/* Conexión de puntos en la línea */
.evento-izq .contenido::before,
.evento-der .contenido::before {
  content: '';
  position: absolute;
  top: 10px;                    /* reducido */
  width: 12px;                  /* reducido */
  height: 12px;                 /* reducido */
  background: #b177dd;
  border-radius: 50%;
}
.evento-izq .contenido::before { right: -6px; }
.evento-der .contenido::before { left: -6px;  }

/* Contenido de texto */
.evento .contenido {
  position: relative;
  width: 45%;
  padding: 10px;                /* reducido */
  color: #4A004E;
  font-family: 'Montserrat', sans-serif;
  white-space: pre-line;
}
.evento .contenido h3 {
  font-size: 1.6rem;
  margin-bottom: 8px;           /* reducido */
}
.evento .contenido p {
  font-size: 1rem;
  line-height: 1.6;
}

/* Imagen circular con icono superpuesto */
.imagen-pino {
  position: relative;
  width: 55%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  transition: transform 0.8s ease;
  margin-bottom: 0;
}
.evento.visible .imagen-pino {
  transform: scale(1.02);
}
/* Icono dentro de la imagen */
.imagen-pino .icono {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  z-index: 2;
}

/* 1) Icono dentro de .contenido */
.evento .contenido .icono {
  width: 80px;   /* antes 40px */
  height: 80px;  /* antes 40px */
}

/* PUNTO DE CONEXIÓN CENTRADO SOBRE LA LÍNEA */
/* Asegúrate de que el contenedor de la sección esté posicionado */
.linea-tiempo {
  position: relative;
}

/* Cada evento ocupa el ancho completo para poder centrar el marcador */
.evento {
  position: relative;
  width: 100%;
}

/* El “punto” ahora es un pseudo-elemento de .evento, no del texto */
.evento::before {
  content: "";
  position: absolute;
  left: 50%;                   /* 50% del ancho de la pantalla (o sección) */
  transform: translateX(-50%); /* lo centra exactamente */
  top: 20px;                   /* ajusta verticalmente sobre tu bloque */
  width: 40px;
  height: 40px;
  background: #b177dd;
  border-radius: 50%;
  z-index: 2;
}




/* Responsive - tablet y abajo */
@media (max-width: 992px) {
  .evento {
    flex-direction: column !important;
    text-align: center;
    margin: 20px 0;             /* aún más reducido */
  }
  .evento .contenido,
  .imagen-pino {
    width: 100%;
    max-width: 240px;
    margin: 0 auto 20px;        /* reducido */
  }
  .linea-tiempo::before {
    left: 20px;
  }
  .evento .contenido::before {
    display: none;
  }
}

/* Responsive - móvil */
@media (max-width: 576px) {
  .linea-tiempo {
    padding: 20px 10px;         /* reducido */
  }
  .linea-tiempo-titulo {
    font-size: 2rem;
  }
  .linea-tiempo-subtitulo {
    font-size: 1.4rem;
  }
  .imagen-pino {
    width: 90%;
    aspect-ratio: 1 / 1;
    margin-bottom: 15px;
  }
  .imagen-pino .icono {
    width: 20px;
    height: 20px;
    top: 8%;
  }
}


/* ================= ICONO SUPERPUESTO SOBRE LA IMAGEN ================= */
/*  
   Para que el icono quede encima de la imagen, mueve en tu HTML:
     <img class="icono" src="...">  
   dentro de cada <div class="imagen-pino">...</div>
*/
.imagen-pino .icono {
  position: absolute;
  top: 10%;                 /* Ajusta verticalmente */
  left: 50%;                /* Centrado horizontal */
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  z-index: 2;               /* Por encima del fondo */
}

/* ======== AJUSTES RESPONSIVE ======== */
@media (max-width: 992px) {
  .imagen-pino {
    width: 80%;             /* En tablet/móvil, ocupa más ancho */
    margin: 0 auto;         /* Centrar */
  }
}

@media (max-width: 576px) {
  .imagen-pino {
    width: 90%;
  }
  .imagen-pino .icono {
    width: 32px;
    height: 32px;
    top: 8%;
  }
}

/* Asegura que la línea central quede detrás */
.linea-tiempo::before {
  z-index: 0;
}

/* Marco oscuro y texto blanco para los títulos */
.linea-tiempo-titulo,
.linea-tiempo-subtitulo,
.titulo-nosotros { /* si tu “¿Quiénes somos…” no tiene clase, asígnale esta */
  display: inline-block;
  position: relative;
  background-color: #4A004E; /* morado oscuro */
  color: #fff;
  padding: 0.5em 1em;
  border-radius: 35px;
  z-index: 5;                /* encima de la línea */
  margin-bottom: 0.5em;
}

/* Opcional: si quieres un pequeño sombreado */
.linea-tiempo-titulo,
.linea-tiempo-subtitulo,
.titulo-nosotros {
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}


@media (max-width: 992px) {
  /* Mueve la línea un poquito menos hacia la izquierda */
  .linea-tiempo::before {
    left: 12px;    /* antes 10px o 20px: prueba con 12px, 15px, lo que te guste */
  }

   /* Mueve el punto (pseudo-elemento) a la orilla izquierda,
     de modo que sólo se vea la mitad */
  .evento::before {
    left: 0 !important;
    transform: translateX(-50%) translateY(-50%) !important;
  }

  /* Empuja el texto un poco menos a la derecha */
  .evento .contenido {
    margin-left: 15px;   /* antes 20px o 30px: con 15px quedará más cerca */
    margin-right: 8px;   /* opcional, para no pegarse al borde */
  }
}

@media (max-width: 576px) {
  .linea-tiempo::before {
    left: 10px;    /* un poco menos que antes */
  }

  /* desplaza el marcador al borde izquierdo */
  .evento::before {
    left: 0 !important;
    transform: translateX(-50%) translateY(-50%) !important;
  }
  .evento .contenido {
    margin-left: 12px;   /* reduce también aquí */
    margin-right: 6px;
  }
}
/* =====================================
   1) FONDO FIJO EN TODA LA PÁGINA
   ===================================== */
html {
  background: url("../1.6imagenes/fondo-pagina.png") no-repeat center center fixed !important;
  background-size: cover !important;
}
body {
  background: transparent !important;
}

/* =====================================
   2) CENTRAR EL PUNTO EN LA LÍNEA (DESKTOP)
   ===================================== */
.evento {
  position: relative;  /* necesario para el ::before */
}
.evento::before {
  content: "";
  position: absolute;
  left: 50%;                        /* centro exacto */
  top: 50%;                         /* ajústalo si quieres más arriba/abajo */
  transform: translate(-50%, -50%);
  width: 40px;                      /* tamaño del punto */
  height: 40px;
  background: #b177dd;
  border-radius: 50%;
  z-index: 2;
}

/* =====================================
   3) SEPARAR TEXTO / CÍRCULO (DESKTOP)
   ===================================== */
.evento {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5%;                         /* separa texto e imagen en desktop */
}

/* =====================================
   4) MOVIL: PUNTO CORTADO POR LA IZQUIERDA
   ===================================== */
@media (max-width: 768px) {
  /* Oculta flechas, apila columnas, etc. ya lo tenías */
  .evento::before {
    left: 0 !important;            /* orilla izquierda */
    transform: translateX(-50%) translateY(-50%) !important;
    /* opcional: reduce el tamaño */
    width: 30px;
    height: 30px;
  }

  /* Dale un respiro al texto para que no pegue la línea */
  

  /* Baja un poco la línea general si está muy elevada */
  .linea-tiempo::before {
    top: 90px;                     /* antes quizá era 0 */
  }
}


