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;
}

/* SECCIÓN ANIMACIÓN */
.seccion-mariposa {
  width: 100%;
  margin-top: var(--header-height);
  position: relative;
  top: 0;
  left: 0;
  aspect-ratio: 1440 / 1035;
  background: #671B6B;
}
.capa {
  position: absolute;
  max-width: 100%;
  height: auto;
  will-change: transform;
}
#cielo   { width: 267%; left: -43%; top: -10%; z-index: 1; }
#logoAnim{ width: 52%;  left: 26%;  top: 26%;  z-index: 2; }
#pinos   { width: 90.7%;left: 4.4%; top: 38.7%;z-index: 3; }
#cruz    { width: 48%;  left: -13%; top: 44%;  z-index: 4; }
#panteon { width: 100%; left: 0;    bottom: 0; top: auto; z-index: 5; }

/* SECCIÓN “NOSOTROS” (texto bajo la animación) */
/* === SECCIÓN "NOSOTROS" - BLOQUE MORADO DE TEXTO BAJO LA ANIMACIÓN === */
.seccion-nosotros {
  background-color: #671B6B;
  color: white;
  padding: 30px 20px 40px;  /* ⬅️ Ajuste: menos arriba, más abajo */
  text-align: center;
  width: 100%;
  position: relative;
  z-index: 10;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.contenido-nosotros {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 10px;         /* ⬅️ Un pequeño empuje hacia abajo */
}

/* Título */
.seccion-nosotros h2 {
  font-family: 'Fleur de Leah', sans-serif;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 200;
  margin-bottom: 16px;       /* ⬅️ Espacio entre título y texto */
  line-height: 1.2;
}

/* Texto */
.seccion-nosotros p {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 300;
  max-width: 1000px;
  margin: 0 auto 12px;
  line-height: 1.2;
}

@media (max-width: 768px) {
  .seccion-nosotros p {
    font-size: clamp(0.85rem, 3vw, 1rem);  /* ⬅️ más pequeño en móvil */
    line-height: 1.3;                      /* espacio vertical ajustado */
    padding: 0 10px;                       /* margen lateral para respiro */
  }
.seccion-nosotros h2 {
  line-height: 0.85;
}
  
}




/* MENU “bounce” effect */
@keyframes bounce {
  0%   { transform: scale(1); }
  5%   { transform: scale(0.9); }
  15%  { transform: scale(1.1); }
  20%  { transform: scale(0.95); }
  30%  { transform: scale(1); }
  45%  { transform: scale(1.5); }
  48%  { transform: scale(1.95); }
}
.menu a:active {
  animation: bounce 0.5s ease;
}

/* BOTONES FLOTANTES (Desktop) */
.boton-flotante {
  display: flex;
  align-items: center;
  background-color: #671B6B;
  color: white;
  text-decoration: none;
  font-weight: bold;
  padding: 7px 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 */



/* 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: 3px 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*/
  }

}


  /* ============================
   SECCIÓN DE ANIMACIÓN – GENERAL
   ============================ */
.seccion-mariposa {
  position: relative;
  overflow: hidden;
  background-color: #671B6B;
  width: 100%;
  height: 120vh; /* ALTURA CONTROLADA, AJUSTABLE */
  margin-top: 20px; /* En escritorio, compensación para el header */
}


/* ———————————————
   ESCRITORIO (≥ 769px)
   ——————————————— */
@media screen and (min-width: 769px) {
  .seccion-mariposa {
    margin-top: 160px; /* Se ajusta dinámicamente también por JS */
    min-height: auto;
    height: 115vh; /* ALTURA CONTROLADA, AJUSTABLE, del tamaño de la seccion 2 de animacion */
  }

}

/* ———————————————
   MÓVIL (≤ 768px)
   ——————————————— */
@media screen and (max-width: 768px) {
  .seccion-mariposa {
    height: 105vh; /* Ajusta si quieres menos espacio en móvil */
    margin-top: 0; /* Evita doble espacio si usas padding-top */
    padding-top: 130px; /* Ajusta si header está fijo */
  }
}


  /* 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;
  }




@media screen and (max-width: 320px) {

#cielo {
  top: 50% !important;
  transform: scale(6) !important;
}
#logoAnim {
  top: 45% !important;     /* Lo empuja hacia la base */
  transform: translateY(30%); /* Ajuste fino */
}

#pinos {
  top: 72% !important;
  transform: translateY(5%);
}

#cruz {
  top: 75% !important;
  transform: translateY(10%);
}

#panteon {
  transform: scale(3) !important;
}

}

@media screen and (min-width: 321px) and (max-width: 540px) {

  #cielo {
    top: 50% !important;
    transform: scale(5.1) !important; /* Menor que en 320px */
    transform: translateY(20%);
  }

  #logoAnim {
    top: 45% !important;
    transform: translateY(20%);
  }

  #pinos {
    top: 72% !important;
    transform: translateY(5%);
  }

  #cruz {
    top: 78% !important;
    transform: translateY(5%);
  }

  #panteon {
    transform: scale(2.5) !important;
  }

}



/* 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 SECCIÓN SERVICIOS DEL LANDPAGE
   =========================== */

/* ———————————————
   SECCIÓN SERVICIOS (común)
   ——————————————— */
#servicios-arealandpage {  /*color del fondo a partir de la seccion de servicios, fondito claro de pinos*/
  background: url("1.6imagenes/fondo-pagina.webp") no-repeat center center fixed;
  background-size: cover;
  z-index: 0;
  padding: 100px 20px 240px; /*ALTURA PARA QUE QUEPAN LAS IMAGENES DE SECCION3*/
  text-align: center;
}



.servicios-titulo{
  font-family:'Montserrat',cursive; /*aqui puede ir una cursiva*/
  color:#671B6B;
  font-size:clamp(2.2rem,5vw,3.5rem);
  margin-bottom:60px;
}

/* Contenedor flexible que variará con media query */
.servicios-grid{
  display:flex;
  gap:90px;
  justify-content:center;
  flex-wrap:wrap;
  max-width:1400px;
  margin:0 auto;
}

.card-servicio{
  position:relative;
  background:#fff;
  border-radius:14px;
  padding:40px 32px 36px;
  text-decoration:none;
  color:#4a4a4a;
  box-shadow:0 8px 20px rgba(0,0,0,0.12);
  transition:transform .35s,box-shadow .35s;
  flex:1 1 300px;     /* ancho mínimo 300 px, crece hasta llenar */
  max-width:380px;
}

.card-servicio:hover{
  transform:translateY(-6px);
  box-shadow:0 12px 24px rgba(0,0,0,0.18);
}

.servicio-icono{
  display:block;
  width:72px; height:72px;
  margin:0 auto 24px;
  border-radius:50%;
  background:#BBA0C9 url('ruta icono default.svg') center/40px 40px no-repeat;
}

/* iconos distintos de SERVICIOS LANDPAGE */
.icono-funerario {
  background-image: url('1.6imagenes/propiedades-funerarias.webp');
  background-size: cover;
}
.icono-prevision {
  background-image: url('1.6imagenes/servicios-funerarios-y-capillas.webp');
  background-size: cover;
}
.icono-asesoria {
  background-image: url('1.6imagenes/cremaciones-y-urnas-conmemorativas.webp');
  background-size: cover;
}

.servicio-nombre{
  font-size:clamp(1.1rem,2.4vw,1.4rem);
  font-weight:700;
  color:#671B6B;
  margin-bottom:10px;
}

.servicio-desc{
  font-size:clamp(.9rem,2.1vw,1.05rem);
  line-height:1.5;
}

.servicios-landing {
  position: relative; /* ¡clave para usar posición absoluta adentro! */
}

/*POSICION DE LA IMAGEN DE ATAUD SECCION 3, EN DESKTOP*/
.img-sobre-botones {
  position: absolute;
  bottom: -155px;                     /*  fija la imagen al fondo de la sección */
  left: 50%;
  transform: translateX(-53%);
  width: 1110px;
  opacity: 1;
  pointer-events: none;
  z-index: 10;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
  transition: transform 0.3s ease;
  object-fit: contain;
}



/*POSICION IMAGEN ATAUD SECCION 3, EN MOVIL*/
@media (max-width: 768px) {
  .img-sobre-botones {
    content: url('1.6imagenes/imagen-decoracionparamenuservicioslandpage-movil.webp'); /* REEMPLAZA aquí con tu imagen para móvil */
    width: 130vw;             /* que se extienda a lo ancho */
    max-width: none;
    height: auto;
    bottom: 0;
    left: 40%;
    transform: translateX(-50%);
  }
}


#servicios-arealandpage {
  position: relative; /* clave para que el "hijo" absoluto se posicione dentro */
  overflow: hidden;   /* si quieres evitar que la imagen se salga */
}




/* ———————————————
   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;
  }
}


/* ——————————————————————————
   SECCIÓN COTIZA TU PLAN 
   —————————————————————————— */
.seccion-cotiza-fondo {
  background: url("1.6imagenes/fondo-pagina.webp") no-repeat center center fixed;
  background-size: cover;
  padding: 60px 20px 130px;
  text-align: center;
   position: relative;
  overflow: hidden;
}

.cotiza-texto h2 {  /*tipo de letra del apartado de cotiza tu plan*/
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  color: #671B6B;
  font-weight: 720;
  margin-bottom: 5px;
}

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

/* Imagen decorativa estilo banda horizontal */
.cotiza-imagen-banda {
  width: 100vw;         /* asegura que ocupe todo el ancho del viewport */
  overflow: hidden;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;   /* truco para romper el padding del contenedor */
  margin-right: -50vw;
}

.cotiza-imagen-banda img {
  width: 100%;
  height: 33vh;         /* muestra solo el 33% vertical */
  object-fit: cover;
  object-position: center;
  display: block;
}


/* Botón debajo */
.cotiza-boton {
   position: relative;  /* permite controlar el z-index */
  z-index: 5;           /* mayor que el de la imagen */
  margin-top: -30px;    /* lo subes sobre la imagen */
  left: 90px;
}

.btn-cotiza {
  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-cotiza:hover {
  background-color: #542356;
  transform: scale(1.05);
}


/*foto del asesor EN COTIZA TU PLAN*/
.img-decorativa-cotiza {
  position: absolute;
  bottom: 0;
  left: 20%;
  top: 15%;
  transform: translateX(-50%);
  width: 500px;
  max-width: 100%;
  height: auto;
  pointer-events: none;
  z-index: 30;
  object-fit: contain;
  opacity: 1;
}


  /* Botón debajo */
.cotiza-boton {
   position: relative;  /* permite controlar el z-index */
  z-index: 5;           /* mayor que el de la imagen */
  left: 87px;
  margin-top: -50px;    /* lo subes sobre la imagen ULTIMA MODIFICACION LUNES */
}

/*BOTON QUE SE LE DA CLICK PARA IR A MODAL X de cotiza tu plan*/
.btn-cotiza {
  font-size: clamp(0.8rem, 4vw, 1.2rem);
}
.cotiza-boton {
  text-align: left;
  padding-left: 20px; /* opcional para separar del borde */
}

@media screen and (min-width: 741px) {
  .cotiza-boton {
    left: 600px;
    margin-top: -20px;
  }
}

/*en movil foto de asesor*/
@media (max-width: 768px) {
  /* Imagen del asesor */
  .img-decorativa-cotiza {
    position: relative;
    left: 0;
    top: 0;
    bottom: 0;
    transform: none;
    width: 100vw;
    max-width: none;
    height: auto;
    margin-top: 10px;
    margin-bottom: -60px;  /* Superposición con la siguiente sección */
    object-fit: contain;
    z-index: 2;
    opacity: 1;
  }

  /* Botón debajo de la imagen */
  .cotiza-boton {
    position: relative;
    left: 0;
    margin-top: -30px;  /* Subido para pegarlo más a la imagen */
    margin-bottom: 0;
    z-index: 5;
    text-align: center;
  }

  .btn-cotiza {
    width: 90%;
    font-size: 4vw;
    padding: 14px 40px;
    border-radius: 40px;
  }

  /* Elimina espacio extra si la sección morado viene enseguida */
  .seccion-morado-cobranza {
    margin-top: -50px !important;
    padding-top: 0 !important;
  }
}
@media (max-width: 768px) {
  .seccion-morado-cobranza h2 {
    display: block !important;       /* asegura visibilidad */
    font-size: 1.8rem !important;    /* tamaño adecuado para mobile */
    color: #ffffff !important;       /* texto blanco visible */
    margin-bottom: 30px;
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    z-index: 2;
    position: relative;
  }
}



/* ——————————————————————————
   SECCIÓN: SISTEMA DE COBRANZA
   —————————————————————————— */
.seccion-morado-cobranza {
  background-color: #671B6B; /* Fondo morado institucional */
  padding: 60px 20px;
  text-align: center;
}

.contenedor-cobranza {
  max-width: 1200px;
  margin: 0 auto;
  color: #fff;
  font-family: "Montserrat", sans-serif;
}

.contenedor-cobranza h2 {
  font-size: 2.5rem;
  margin-bottom: 40px;
  font-weight: 700;
}

.metodos-pago-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.metodo {
  background-color: #ffffff;
  color: #671B6B;
  border-radius: 20px;
  padding: 20px;
  width: 200px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease;
}

.metodo:hover {
  transform: translateY(-5px);
}

.metodo img {
  width: 60px;
  height: 60px;
  margin-bottom: 15px;
}

.metodo p {
  margin: 0;
}

.metodo.logos-tiendas {
  background-color: transparent;
  box-shadow: none;
  width: auto;
  padding: 0;
}

.metodo.logos-tiendas img {
  width: 300px;
  max-width: 90vw;
  height: auto;
  margin-top: 10px;
}

/* ——— RESPONSIVE ——— */
@media (max-width: 768px) {
  .contenedor-cobranza h2 {
    font-size: 2rem;
  }

  .metodo {
    width: 160px;
    padding: 15px;
    font-size: 0.95rem;
  }

  .metodo img {
    width: 50px;
    height: 50px;
  }

  .metodo.logos-tiendas img {
    width: 250px;
  }
}

@media (max-width: 480px) {
  .metodo {
    width: 140px;
    padding: 12px;
    font-size: 0.85rem;
  }

  .contenedor-cobranza h2 {
    font-size: 1.7rem;
  }

  .metodo img {
    width: 45px;
    height: 45px;
  }

  .metodo.logos-tiendas img {
    width: 220px;
  }
}
@media (max-width: 768px) {
  /* Asegura fondo completo en la sección morado */
  .seccion-morado-cobranza {
    background-color: #671B6B !important;
    margin-top: -80px !important;
    padding-top: 60px !important;
    padding-bottom: 60px;
    width: 100%;
    z-index: 1;
    position: relative;
  }
}
  

/* ——————————————————————————
   SECCIÓN: PAYCASH
   —————————————————————————— */
.paycash-contenedor {
  margin-top: 50px;
  background-color: rgb(220, 190, 224);
  border-radius: 20px;
  padding: 30px 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.paycash-etiqueta span {
  font-family: "Montserrat", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #671B6B; /* morado, NO blanco */
}


.paycash-etiqueta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.paycash-etiqueta img {
  width: 40px;
  height: auto;
}

.paycash-etiqueta span {
  font-family: "Montserrat", sans-serif;
  font-size: 1.5rem;
  font-weig
}


.paycash-logos-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 10px 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.paycash-logos-grid img {
  height: 55px;            /* Tamaño uniforme */
  width: auto;             /* Mantiene proporción original */
  object-fit: contain;
  transition: transform 0.2s ease;
  max-width: 120px;        /* Límite máximo por logo */
}

.paycash-logos-grid img:hover {
  transform: scale(2.2); /* Efecto ligero al pasar el cursor */
}

/* RESPONSIVO */
@media (max-width: 768px) {
  .paycash-logos-grid img {
    height: 40px;
    max-width: 90px;
  }
}

@media (max-width: 480px) {
  .paycash-logos-grid {
    gap: 16px;
  }

  .paycash-logos-grid img {
    height: 35px;
    max-width: 80px;
  }
}





/* ————— MODAL X Cotiza ————— */
.modal-cotiza-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5); /* fondo oscuro translúcido */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.modal-cotiza-content {
  background: #671B6B;
  padding: 30px 25px;
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  color: white;
  position: relative;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

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

.modal-etiqueta {
  background-color: #C89DDD;
  color: white;
  padding: 10px 20px;
  border-radius: 40px;
  margin-bottom: 20px;
  font-weight: bold;
}

.btn-whatsapp-modal {
  background: none;
  border: 2px solid white;
  color: white;
  font-weight: bold;
  padding: 12px 20px;
  text-decoration: none;
  display: inline-block;
  border-radius: 8px;
  margin-bottom: 20px;
}

.btn-whatsapp-modal .icono-wsp {
  width: 24px;
  vertical-align: middle;
  margin-left: 10px;
}

.modal-subtexto {
  margin: 20px 0 10px;
  font-weight: 500;
}

.formulario-modal label {
  display: block;
  text-align: left;
  margin: 10px 0 4px;
}

.formulario-modal input {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 6px;
  background: #E5B5F3;
  margin-bottom: 10px;
  color: #333;
  font-family: 'Montserrat', sans-serif; 
  color: #555; 
  font-size: 0.95rem;

}

.btn-enviar-modal {
  background: #B56CF3;
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 30px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 10px;
   font-family: 'Montserrat', sans-serif; 
  color: white; 
  font-size: 0.95rem;
}
/*rebotes en la ventana de MODAL X de cotizar tu plan*/
.btn-whatsapp-modal:hover {
  animation: whatsapp-bounce 0.5s ease;
}
.btn-enviar-modal:hover {
  animation: whatsapp-bounce 0.5s ease;
}


/* ————— TERMINA MODAL X Cotiza ————— */


/* ---- RECORRIDO VIRTUAL SECCION ---*/
.seccion-recorrido-virtual {
  background: url('1.6imagenes/fondo-pagina.webp') no-repeat center center fixed; /*el ultimo fixed hace que se pegue a la seccion anterior y se vea el fondo como continuacion*/
  background-size: cover;
  padding: 80px 20px;
  text-align: center;
}
/*lineas moradas*/
.seccion-recorrido-virtual::before {
  content: "";
  display: block;
  width: 80%; /*posicion*/
  height: 9px; /*grosor*/
  background-color: #671B6B;
  margin: -70px 0 70px 5px; /*  sube y alinea a la izquierda */
  border-radius: 4px;
}

.seccion-recorrido-virtual::after {
  content: "";
  display: block;
  width: 95%; /*posicion*/
  height: 25px; /*grosor*/
  background-color: #671B6B;
  margin: 140px 0px -90px 360px; /*  baja y alinea a la derecha */
  border-radius: 0px;
}
/*lineas moradas*/

.seccion-recorrido-virtual h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2rem, 4vw, 2.6rem);
  color: #671B6B;
  margin-bottom: 40px;
  font-weight: bold;
}

.capillas-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 50px 100px;
  max-width: 900px;
  margin: 0 auto;
}

.capilla-card {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 170px;
  transition: transform 0.3s ease;
}

.capilla-card:hover {
  transform: scale(1.07);
}

.capilla-card img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.capilla-nombre {
  background-color: #671B6B;
  color: white;
  padding: 10px 15px; /*espacio a la derecha o arriba abajo entre botones*/
  border-radius: 19px;
  font-weight: bold;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
  font-size: 1.1rem;
  margin-top: 6px;
  width: 100%;
  text-align: center;
}

/* Responsivo recorrido virtual para móvil */
@media (max-width: 768px) {
  .capillas-grid {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .capilla-card {
    width: 200px;
  }

  .capilla-nombre {
    font-size: 1rem;
  }

  
.seccion-recorrido-virtual::before {
  content: "";
  display: block;
  width: 90%; /*posicion*/
  height: 9px; /*grosor*/
  background-color: #671B6B;
  margin: -80px 0 70px -40px; /*  sube y alinea a la izquierda */
  border-radius: 4px;
  z-index: 10;
}
/*linea gruesa debajo del mono*/
.seccion-recorrido-virtual::after {
content: "";
  display: block;
  width: 70%; /*posicion*/
  height: 40px; /*grosor*/
  background-color: #671B6B;
  top: -100px;
  margin: 260px 0 -120px 130px; /*  sube y alinea a la izquierda */
  border-radius: 0px;
  z-index: 10;
}




}




/*imagen animada de recorrido virtual*/
.seccion-recorrido-virtual {
  position: relative;
  padding: 100px 20px;
  z-index: 1; /* importante para que ::before esté detrás */
}

.seccion-recorrido-virtual::before {
  content: "";
  position: absolute;
   top: 100px;         /* mueve la imagen hacia arriba o abajo */
  left: 0.5px;       /* mueve la imagen hacia la izquierda o derecha */
  width: 100%;
  height: 100%;
  background: url('1.6imagenes/imagen-recorridovirtual-animada.webp') no-repeat center top;
  background-size: cover;
  opacity: 1;
  z-index: 0;
  pointer-events: none;
}

/* Asegura que todo lo demás esté sobre la imagen */
.seccion-recorrido-virtual h2,
.capillas-grid,
.capilla-card {
  position: relative;
  z-index: 2;
}

.seccion-recorrido-virtual h2 {
  margin-top: -50px;
}

@media (max-width: 768px) {
  .seccion-recorrido-virtual::before {
  background-image: url('1.6imagenes/imagen-recorridovirtual-animada-movil.webp');
  
    background-position: center 100px;   /* mueve la imagen hacia abajo */
    background-size: 100%;              /* agranda un poco la imagen */
    top: 1100px;                          /* ajusta verticalmente */  
    left: 40px;                   /* Ajusta verticalmente */
    height: 100%;      
  }
}

@media (max-width: 355px) {
  .seccion-recorrido-virtual::before {
  background-image: url('1.6imagenes/imagen-recorridovirtual-animada-movil.webp');
  
    background-position: center 100px;   /* mueve la imagen hacia abajo */
    background-size: 120%;              /* agranda un poco la imagen */
    top: 1150px;                          /* ajusta verticalmente */  
    left: 40px;                   /* Ajusta verticalmente */
    height: 100%;      
  }
}


/* ---- TERMINA RECORRIDO VIRTUAL SECCION ---*/



/* --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('1.6imagenes/fondo-pagina.webp') 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 */
/* Versión móvil */
@media (max-width: 768px) {
  .obituarios-boton {
    margin-top: -30px;
    text-align: center;
    padding-left: 100px; /* Aumenta este valor según necesidad */
  }

  .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('1.6imagenes/fondo-pagina.webp') 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.webp') 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 
   ——————————————— */

/* ———— SECCIÓN INFORMACIÓN FINAL ———— */
.seccion-informativa-final {
  background: url('1.6imagenes/fondo-pagina.webp') no-repeat center center fixed;
  background-size: cover;
  text-align: center;
    padding-top: 28px; /* o incluso menos */
  padding-bottom: 100px; /* mantienes el espacio inferior si quieres */
  font-family: 'Bellefair', cursive;
  font-size: clamp(1rem, 2vw, 1.4rem);
  color: #4a004e;
  line-height: 1.2;
}

.seccion-informativa-final p {
  max-width: 1000px;
  margin: 0 auto 25px;
}



/* ———— 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;
  }
  .seccion-informativa-final {
    padding-left: 20px;  /*es para espacio de orilla entre texto final*/
    padding-right: 20px;

}

/* 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);
  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*/



.spinner {
  margin: 1rem auto;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #6a1b9a;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  animation: girar 1s linear infinite;
}

@keyframes girar {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.oculto {
  display: none;
}


.mensaje-estado {
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: 5px;
  font-weight: bold;
  text-align: center;
}

.mensaje-estado.exito {
  background-color: #d4edda;
  color: #155724;
}

.mensaje-estado.error {
  background-color: #f8d7da;
  color: #721c24;
}


/* Animación para ocultar los botones */
.boton-flotante {
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.ocultar-boton {
  opacity: 0;
  transform: translateY(80px); /* Puedes usar translateX si prefieres lateral */
  pointer-events: none;
}


.mensaje-estado {
  padding: 1rem 1.5rem;
  margin-top: 1rem;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  display: none;
  transition: all 0.3s ease;
}

.mensaje-estado.exito {
  background-color: #e6f9ee;
  color: #176b41;
  border: 1px solid #b9eacc;
}

.mensaje-estado.error {
  background-color: #fdecea;
  color: #9b1c1c;
  border: 1px solid #f5c2c0;
}

.mensaje-estado.mostrado {
  display: block;
}

.oculto {
  display: none;
}



.referencia-contenedor {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin: 0 auto;
  padding: 0 20px;
  max-width: 1000px;
  flex-wrap: wrap;
  line-height: 0; /* 🔥 Elimina espacio vertical entre imágenes */
}

.referencia-img {
  width: 220px;
  max-width: 100%;
  height: auto;
  display: block;        /* 🔥 Elimina espacio debajo de imagen */
  margin: -40px;
}

.referencia-texto {
  font-family: 'Montserrat', sans-serif;
  color: #ffffff;
  font-size: 18px;
  text-align: center;
  line-height: 1.4;
  max-width: 300px;
  margin: 0;
  line-height: normal;   /* ✅ Vuelve a aplicar para texto */
}



@media (max-width: 768px) {
  .referencia-img {
    width: 160px;
    margin: -10px;
  }

  .referencia-texto {
    font-size: 16px;
    max-width: 240px;
  }

  .referencia-contenedor {
    gap: 25px;
  }
}

@media (max-width: 480px) {
  .referencia-contenedor {
    flex-direction: column;
    gap: 20px;
  }

  .referencia-img {
    width: 130px;
  }

  .referencia-texto {
    font-size: 14px;
    max-width: 200px;
  }
}
