:root {
  /* Colores */
  --color-fondo1: #dad3c8;
  --invert_color: #0c0c0c;
  --color-fondo: #ebdecf;
  --color-texto-dbg: #faf4e7;
  --color-texto: #42423d;
  --color-texto-sec: #42423d;
  --color-borde: #2c282a;
  --color-boton-a: #faf4e7;
  --color-gold-a: rgb(190, 133, 15);
  --color-silver-a: rgb(144, 141, 141);
  --color-bronce-a: rgb(192, 110, 59);
  --gradient-top-bottom: linear-gradient(to bottom, rgba(87, 73, 60, 0.496), rgba(89, 73, 58, 0));
  --gradient-top-top: linear-gradient(to top, rgba(87, 73, 60, 0.496), rgba(89, 73, 58, 0));


  /* Tipografía */
  --title_font: 'Cinzel Decorative', serif;  /* solo h1 y h2 */
  --body_font: 'Oswald', sans-serif;         /* resto del texto */
}
/* Títulos */
h1, h2 {
  font-family: var(--title_font);
  color: var(--color-texto);
}

/* Resto del texto */
body, p, li, span, a, button {
  font-family: var(--body_font);
  color: var(--color-texto);
}

button:hover,
a:hover,
.card:hover{
  cursor: pointer;
 
}


:target {
  scroll-margin-top: 95px;
} /* ajusta este valor según la altura de tu menú */
body {
  overflow: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  justify-content: center;
  align-items: center;
   width: 100vw;
  background-color: var(--color-fondo) !important;
}
body::-webkit-scrollbar {
  display: none;
}

#header {
  z-index: 100000;
  
}

#init{
  padding:0 5rem;
}


/*===================================PRELOADER LOGO*/
#preloader {
  display: none; /* por defecto oculto */
}
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-fondo); /* fondo blanco */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
/* Contenedor interno para centrar y separar logo y texto */
#preloader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px; /* espacio entre logo y texto */
}
/* Logo animado */
#preloader-logo {
  animation: growAndColor 2s ease-in-out infinite alternate;
  width: 150px;
  transform-origin: center bottom; /* crecer hacia arriba */
  filter: brightness(0); /* negro al inicio */
}

@keyframes growAndColor {
  0% {
    transform: scale(1);
    filter: brightness(0); /* negro */
  }
  100% {
    transform: scale(1.5);
    filter: brightness(0.2); /* gris oscuro sobre blanco */
  }
}

/*===================================LINKS**************/

.lnkMenu {
  position: relative; /* necesario para ::before */
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  text-wrap: nowrap;
  align-items: center;
  letter-spacing: 0.05em;
  margin-inline: 1rem;
  color: var(--color-texto-dbg);  
  --bs-btn-color: var(--color-texto-dbg)!important;
mix-blend-mode: difference;
 }
 #div_menutop .lnkMenu {
  filter: drop-shadow(1px 1px 5px var(--color-borde));
 }

a {
  text-decoration: none!important;   
 
}


/*  .lnkMenu::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 5px;
  transform: scaleX(0);
  transition: transform 0s ease; 
  bottom: 0;
  left: 0;
  transform-origin: left;
}
.lnkMenu:hover::before {
  transform: scaleX(1);
} */

/*=====================================ELEMENTOS BORROSOS POR DEFECTO */
.borroso {
  filter: none;
}
#contact,
#gallery,
#sect_sev,
#findus,
#calculator {
  max-width: 1700px;
  justify-items: center;
  align-items: center;
  margin-top: 10rem;
  margin-bottom: 5rem;

}

/* ====================================TEXTOS*/
h1 {
  font-weight: 400;
  font-size: clamp(
    3rem,
    15vw,
    12rem
  ); /* mínimo 3rem, escala con 15% del viewport, máximo 12rem */
  font-style: normal;
  text-transform: uppercase;
 
  justify-content: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0) 40%,
    rgba(0, 0, 0, 0.55) 100%
  );
}
.title{
  color: var(--color-texto-dbg);
}
#title {
  font-size: clamp(2rem, 5vw, 4rem);
  text-shadow: 2px 3px 6px rgba(0, 0, 0, 0.529);
  color: var(--color-texto-dbg);
}
h2 {
  font-weight: 100;
  font-style: italic;
  font-size: clamp(2rem, 6vw, 4rem);
}
h3 {
  font-weight: 600;
  font-style: normal;
  color: var(--color-texto) f8f !important;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  overflow: hidden;
  font-size: clamp(1.5rem, 4.5vw, 3rem);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: letter-spacing 0.5s, color 0.5s, background 0.5s;
}
h4 {
  font-size: clamp(1.2rem, 3.5vw, 2.5rem);
}
p {
  font-size: clamp(0.8rem, 2.5vw, 1.5rem); /* más legible en móviles */
  font-style: normal;
}
/*======================================About*/
.wrapper{
  background-color: var(--color-fondo1);
  width: 100%;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/*======================================FORM STYLE*/
form {
  margin-top: 20px;
  color: var(--color-texto);
  width: 100%;
}
.input-box {
  position: relative;
  display: inline-block;
  width: 100%;
}
textarea,
input {
  overflow: hidden;
  resize: none;
  margin-bottom: 2rem;
  width: 100%;
  padding: 12px 10px;
  font-size: 2rem;
  line-height: 20px; /* mismo que el input */
  border: none; /* Quita todos los bordes */
  border-bottom: 2px solid #ffffff8f; /* Solo línea inferior */
  outline: none;
  background: none;
  vertical-align: top;
  resize: none;
  color: var(--color-texto)!important;
}
/* Label inicial */
form label {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 0 4px;
  font-size: 16px;
  border-radius: 5px;
  transition: 0.3s ease;
  pointer-events: none;
  color: var(--color-texto);
  text-transform: uppercase;
}
/* Flotar label al tener foco, checked o si el contenedor tiene clase .has-value */
.input-box input:focus + label,
.input-box textarea:focus + label,
.input-box input:checked + label,
.input-box.has-value label,
.input-box select:focus + label {
  transform: translateY(-20px);
  font-size: 10px;
  transition: 0.3s ease;
}


.input-box input:checked + label,
.input-box textarea:not(:empty) + label {
  transform: translateY(-20px);
  font-size: 10px;
  transition: 0.3s ease;
}
.popup {
  display: none;
  position: fixed;
  top: 30%;
  left: 4%;
  z-index: 100 !important;
  padding: 10px;
}

.thankyou-container {
  border: 1px solid transparent; /* el borde no se ve */
  box-shadow: 0 4px 10px rgba(74, 74, 74, 0.5); /* sombra visible */
  border-radius: 15px;
  margin: 2rem;
  padding: 1rem;
}

/*=========================================FOOTER*/

.img-fluid{
   border: none; /* opcional */
  padding: 0;   /* opcional */
  filter: opacity(0.25);
  max-height: 800px;
  mix-blend-mode: multiply;
}


#container_top,
#foot_bar {
  transition: background-color 0s ease;
}
/* Footer centrado */
#foot_bar {
   display: flex;
  flex-direction: column;
  align-items: center; /* centra horizontalmente todos los hijos */
  justify-content: center;
  text-align: center;  /* centra el texto dentro de <p> */
  padding-top: 10px;
  padding-bottom: 10px;
}
#div_menubotom a {
  margin: 0 10px; /* separa los iconos */
}
#div_menubotom {
  visibility: hidden; 
}

footer {
  position: fixed;
  bottom: 0; /* lo fija al borde inferior de la pantalla */
  left: 0;
  width: 100%; /* ocupa todo el ancho */
  padding-top: 10px;
  background-color:transparent; /* usa transparent, no "none" */
  z-index: 1000; /* asegura que quede por encima de otros elementos */
  padding-bottom: 10px;
}
.container_top {
  position: fixed;
  top: 0; /* lo fija al borde inferior de la pantalla */
  left: 0;
  width: 100%; /* ocupa todo el ancho */
   background-color:transparent; /* usa transparent, no "none" */
  z-index: 1000;
  padding-bottom: 15px; /* asegura que quede por encima de otros elementos */
}

.imgLogo_v2 {
  max-height: 100px;
  filter: invert(1);
}

.boton-principal {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
  z-index: 1100;
  position: relative;
}

/*=========================================INDEX*/
#cont_background{
  width: 100%;
}
.bottom-content {
    display: flex;
    flex-direction: column;
    align-items: self-start;
    padding-bottom: 10rem;
    max-width:clamp(300px, 70vw, 600px) ;
}

/*BUTTON STYLE*/
.mybtn{
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
  cursor: pointer;
  overflow: hidden;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em; /* color de texto original */
  transition: letter-spacing 0.5s, color 0.5s, background 0.5s;
  background: var(--color-boton-a)!important;
  margin: 0;
}

/*CARRUSEL DE FONDO*/
#carr_ind {
  position: fixed; /* carrusel como fondo */
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 0; /* fondo */
}
/* Ajuste de imágenes para que llenen todo */
.carousel-inner {
  width: 100%;
  height: 100%;
}
.img_carr {
  width: 100%;
  height: 100vh;
  object-fit: cover;
  object-position: center center; /* centra la imagen */ /* filter: brightness(0.5); /* 1 = normal, <1 = más oscuro */
}
.section_v1 {
  position: relative; /* cualquier contenido encima */
  z-index: 10;
  height: 100vh; /* ocupa toda la pantalla visible */
  background-repeat: no-repeat;
  background-size: cover;
  background-blend-mode: darken;
  display: flex;
  flex-direction: column;
  justify-content: flex-end; /* separa el contenido: evently */
}
/*=======================================SECTION SERVICES */
#seccionServices {
  min-height: 100vh; /* siempre cubre la pantalla completa */
  width: 100vw;
  z-index: 1;
  padding: 5rem 0;
  position: relative;          /* para que el overlay no afecte otros elementos */
  background:#ebdecf91 ; /* fondo semitransparente */
  backdrop-filter: blur(24px);  /* desenfoque del carrusel que está detrás */

  z-index: 5;   
}


.cont_index{
  max-width: 800px; margin: 0 auto;
}
#sect_sev {
  text-align: center;
}

/* Desktop */
@media (min-width: 768px) {
  #sect_sev {
    display: flex;
    justify-content: center;
    gap: 10px; /* 👈 EXACTO lo que querías */
  }
}
/* Images */
.img_serv {
  width: 300px;
  height: auto;
  border-radius: 10px;
}
@media (max-width: 1024px) {
  .img_serv {
    max-width: 220px;
    height: auto;
  }
}

/* 
.overlay { position: fixed; top: 0;  left: 0;  width: 100%;   height: 100%;   background-color: var(--color-fondo) rgba(0,0,0,0.8);    display: flex;    justify-content: center;    align-items: center;    z-index: 9999; padding: 20px;
  }
.overlay-content {    display: flex;    flex-direction: row;    max-width: 100%;    max-height: auto;    gap: 20px;    padding: 20px; }
.overlay-content img {   max-height: 80vh;   max-width: 70vw;   object-fit: contain; }
.description-box {max-width: 300px; overflow-y: auto;  }*/

/*calculatorrr*/
.calc {
  transform: translateY(-20px);
  position: absolute;
  left: 40px; /* antes era 12px */
  top: -10px;
}
#p_infoPack,
#bp {
  margin-left: 2rem;
  text-align: left;
}
#packageName {
  text-align: left;
}
/* Quitar los spinners de inputs number */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type="number"] {
  -moz-appearance: textfield; /* Firefox */
}
/* Estilo del mensaje de alerta en calculadora*/
.message-box {
  padding: 12px 18px;
  position: absolute;
  z-index: 20000;
  top: 50%;
  left: 50%;
  background-color: var(--color-fondo1);
  color:var(--color-texto);
  border: 1px solid var(--color-texto-dbg);
  border-radius: 5px;
  margin-top: 10px;
  font-family: sans-serif;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transform: translate(-50%, -50%); /* centra el div realmente */
}

.info-tooltip {
  display: none;
  color: gray;
  font-size: 0.9rem;
  margin-top: 5px;
}
.info-wrapper:hover .info-tooltip {
  display: block;
}
.info-wrapper.active .info-tooltip {
  display: block;
}
.decrease, .increase {
  border-radius: 5px!important;
  border: 1px solid var(--color-texto-dbg)!important;
  color: var(--color-texto-dbg)!important;
  background-color: transparent!important;  
}

/*gallery style*/
#gallery {
  position: relative; /* NO absolute ni fixed */
  overflow: visible; /* que no esconda hijos */
  padding: 0rem 10rem; /* deja espacio para botón y footer */
}
#gallery {
  min-height: 100vh;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  padding-top: 0!important;
}
.gallery-grid img {
  width: 100%;
  height: auto; /* para que mantenga proporción */
  border-radius: 10px;
  object-fit: cover;
  aspect-ratio: 1 / 1;
  transition: transform 0.3s ease;
  cursor: pointer;
}
.gallery-grid img:hover {
  transform: scale(1.05);
   cursor: pointer;
}

/*===================================calculadora*/
#previewImage {
  display: flex;
  min-width: 100%;
  align-items: center;
  justify-content: center;
  min-height: 40vh;
  background-image: url('/img/photos/family_kids/10.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;  
  position: relative; /* necesario para que ::after se posicione sobre él */
}

#previewImage::after {
  content: '';                        /* obligatorio para que aparezca */
  position: absolute;                  /* posicionamos encima */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-top-top); /* tu gradiente */
  pointer-events: none;                /* no bloquea clicks */
}

.mini-card {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 50px;
  border: 2px solid var(--color-fondo1);
  border-radius: 5px;
  padding: 4px;
  font-size: 0.8rem;
  gap: 4px;
  background-color: transparent; /* o un fondo suave si quieres */
}
#card_container {
  display: flex;
  flex-direction: column; /* vertical por defecto (móvil) */
  gap: 20px; /* espacio entre cards */
}

/* Para pantallas más grandes */
@media (min-width: 768px) {
  #card_container {
    flex-direction: row; /* horizontal en desktop */
    flex-wrap: wrap;     /* para que no se salga de la pantalla */
    justify-content: center; /* opcional, centra las cards */
  }
}

/* Opcional: que las cards tengan un ancho máximo */
#card_container .card {
  flex: 1 1 300px; /* crecen y se ajustan */
}
.card{
  background-color: var(--color-fondo)!important ;
  width: 400px;
  padding: 1rem;
  margin-top: 24px;
  max-height: fit-content;
  }
  .card.active{
   color: var(--color-texto-dbg)!important ;
   cursor: default;
   }
   .card.active p,li{

   }
  .card_gold{
      background-color:var(--color-gold-a)!important ;      
  }

    .card_silver{
     background-color:var(--color-silver-a)!important ;
  }
    .card_bronce{
     background-color:var(--color-bronce-a)!important ;
  }
    .card.active .btn{
      background-color: var(--color-boton-a)!important ;
      color: var(--color-borde)!important;
    }
.features-list{
  text-align: left;
  list-style: none !important;
}
.extras {
  display: none;
  transition: all 0.3s ease;
  margin-top:2rem;    
}

.extras.show {
  display: block;
}
.extra-control {
  display: flex;
  flex-direction: row; /* todo en columna: contador arriba, label abajo */
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  border: solid #42423d46;
  border-radius: 5px;
  padding:0 15px;
}
.extra-control label{
  margin:15px;
  text-align: left;
  max-width: 100px;
}

.counter {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.counter button {
  width: 25px;
  height: 25px;
  font-weight: bold;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #f0f0f0;
  cursor: pointer;
}

.counter .count {
  min-width: 20px;
  text-align: center;
}
/*========================================MOBILE**/
/*MENU HAMBURGUER*******/
#navbarMenu {
  position: fixed; /* siempre visible en la ventana */
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center; /* centra vertical */
  align-items: center; /* centra horizontal */
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  z-index: 1000; /* encima de logo y botón */
  visibility: hidden;
}
#menu_hamburguer {
  visibility: hidden;
}
/* Gradiente de transparente arriba a negro abajo */
.menu-overlay {
  padding-top: 10px;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.7) 100%
  );
  backdrop-filter: blur(8px);
}

@media (max-width: 768px) {
  #contact,
  #gallery,
  #sect_sev,
  #calculator {
    min-width: 1500;
    margin-top: 10rem;
    margin-bottom: 5rem;
  }
  .img_serv {
    max-width: 180px;
    height: auto;
  }

  /*section a{ margin-bottom: 5rem;  }
  .overlay-content { flex-direction: column !important; align-items: center;  gap: 1rem; }
  .overlay-content img {  width: 100% !important;  height: auto !important; }
  .description-box {  width: 100% !important;  text-align: center;   padding: 1rem 0;  }*/

 /*gallery style*/
  .gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 15px;
  }

  /* MOBILE*/
  .lnkMenu {
    color: var(--color-texto-dbg);
  }
  #menu_hamburguer {
    visibility: visible;
  }
  #navbarMenu {
    visibility: hidden;
  }
  #div_menutop {
    display: none;
  }
  #div_menubotom {
    display: block;
   visibility: visible;
  }
  /* ELEMENTOS BORROSOS POR DEFECTO */
  .borroso {
    filter: none;
  }
}
