@font-face {
    font-family: 'Playfair Display';
    src: url('fonts/PlayfairDisplay-SemiBoldItalic.woff2') format('woff2'),
        url('fonts/PlayfairDisplay-SemiBoldItalic.woff') format('woff');
    font-weight: 600;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'PoppinsA';
    src: url('fonts/Poppins-Light.woff2') format('woff2'),
        url('fonts/Poppins-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'PoppinsA';
    src: url('fonts/Poppins-SemiBold.woff2') format('woff2'),
        url('fonts/Poppins-SemiBold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Playfair Display';
    src: url('fonts/PlayfairDisplay-Regular.woff2') format('woff2'),
        url('fonts/PlayfairDisplay-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}


:root{
      --gold:#b99d4d; /* dorado principal */
      --gold-dark:#a38721;
      --nav-bg:#0a0505; /* fondo del menú */
    }
    html { scroll-behavior: smooth; }
    body { font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji"; color:#646363; }
    h1,h2,.display-4,.display-5,.navbar-brand { font-family: 'Playfair Display', serif; }

    /* NAVBAR (según diseño) */
    #navContent { padding-top: 35px; }
    .navbar { background:var(--nav-bg); padding: 15px 0px; }
    .navbar .nav-link { color:#fff; font-weight:300; font-family:'Poppins', sans-serif; font-size:1.15rem; padding-bottom: 0px !important;}
    @media (min-width: 1200px){ .navbar .nav-link{ font-size:1.15rem; } }
    .navbar .nav-link:hover, .navbar .nav-link.active { color: var(--gold); }
    .brand-logo { height: 54px; }
    @media (min-width: 992px){ .brand-logo{ height: 72px; } }
    .social-icon{ width:32px; height:32px; display:block; }
    .social-link{ opacity:.95; transition: transform .2s ease, opacity .2s ease; }
    .social-link:hover{ transform: translateY(-1px) scale(1.03); opacity:1; }

    /* HERO */
    .hero {
      position: relative; min-height: 92vh; display:grid; place-items:center; color:#fff;
      background: url('../imagenes/background.jpg') center/cover no-repeat fixed;
    }
    @media (max-width: 768px) {
  .hero {
    /* Imagen mobile: mostrarla ENTERA */
    background-image: url('../imagenes/background_mobile.jpg');
    background-repeat: no-repeat;
    background-position: top center;    /* ajustá a 'center center' si te conviene */
    background-size: cover;           /* clave para que no recorte */
    background-attachment: scroll;      /* quitar el parallax/fixed en mobile */
    background-color: #000;             /* “letterbox” prolijo donde no haya imagen */
    min-height: 100svh;                 /* alto pantalla real en mobile */
  }
}


    .hero .headline { text-shadow: 0 10px 30px rgba(0,0,0,.55); }
    .hero .btn-gold{ background:var(--gold); border-color:var(--gold); font-weight:700; }
    .hero .btn-gold:hover{ background:var(--gold-dark); border-color:var(--gold-dark);} 

    /* SECCIONES */
    section { scroll-margin-top: 90px; }
    .section-title { color: var(--gold-dark); }

    /* Cómo funciona - pasos */
    .step { text-align:center; }
    .step-number { width:58px; height:58px; display:grid; place-items:center; border-radius:50%; background:#f3efdf; border:2px solid var(--gold); color:#000; font-weight:700; margin:0 auto 10px; }

   

    /* Footer */
    footer { background:#a38721; color:#ffffff; font-size:.9rem; padding: 10px 0px; }

    /* Back to top */
    #toTop { position: fixed; right: 16px; bottom: 16px; display:none; z-index: 1040; }


#que-es
{
    padding: 90px 0px 50px 0px !important;
}

.section-title
{
    font-size: 3.5rem;
}

.lead
{
    line-height: 33px;
}

.textos_pasos
{
    font-weight: 300;
    color: #646363;
    font-size: 17px;
}

.pasos_numeros
{
    margin-bottom: 7px;
    width: 100%;
    max-width: 55px;
}

 /* Formulario */
    .form-wrap { background: #a38721; border-radius: 16px; padding: 28px; color:#fff; }
    .form-control, .form-select { border-radius: 10px; }
    .form-check-label a{ color:#fff; text-decoration:underline; }
    .btn-send { background:#000; color:#fff; border:none; padding:.75rem 1.25rem; border-radius:12px; }
    .btn-send:hover { background:#222; }

.form-control
{
    background: #a38721;
}

.navbar-nav {
  flex: 1;                /* que ocupe todo el ancho disponible */
  justify-content: center; /* centra horizontalmente los <li> */
  text-align: center;
}

.titulo_slider
{
    font-family: 'Playfair Display';
    font-style: italic;
    font-size: 4.5rem !important;
    font-weight: 300;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.6) !important;
}
.sub_slider
{
    font-family: 'Playfair Display';
    font-size: 2.3rem !important;
    font-weight: 300;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.6) !important;
}

.btn_slider
{
    font-family: 'PoppinsA';
    color:#ffffff !important;
    border-radius: 0px;
    font-size: 17px;
    font-weight: 300;
}


/* Animaciones hero */
.titulo_slider {
  opacity: 0;
  animation: fadeDown 700ms ease-out 120ms both;
  text-shadow: 0 10px 30px rgba(0,0,0,.35);
}

.sub_slider {
  opacity: 0;
  animation: fadeUp 800ms ease-out 420ms both;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,.25));
}

.btn_slider {
  opacity: 0;
  animation: popIn 650ms cubic-bezier(.2,.8,.2,1) 780ms both;
  transform-origin: center;
}

/* Hover del botón (sutil) */
.btn_slider:hover {
  transform: translateY(-1px);
}

/* Keyframes */
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-14px); filter: blur(4px); }
  to   { opacity: 1; transform: translateY(0);      filter: blur(0);   }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); filter: blur(4px); }
  70%  { opacity: 1; }
  to   { opacity: 1; transform: translateY(0);   filter: blur(0);   }
}

@keyframes popIn {
  0%   { opacity: 0; transform: translateY(10px) scale(.96); }
  60%  { opacity: 1; transform: translateY(0)    scale(1.02); }
  100% { opacity: 1; transform: translateY(0)    scale(1); }
}

/* Respeta usuarios con reducción de movimiento */
@media (prefers-reduced-motion: reduce) {
  .titulo_slider, .sub_slider, .btn_slider { 
    animation: none !important; 
    opacity: 1 !important; 
    transform: none !important;
  }
}


.hero .titulo_slider,
.hero .sub_slider,
.hero .btn_slider { will-change: transform, opacity; }

.hero:not(.in-view) .titulo_slider,
.hero:not(.in-view) .sub_slider,
.hero:not(.in-view) .btn_slider {
  animation: none !important;
  opacity: 0;
  transform: translateY(10px);
  filter: blur(2px);
}



/* ---------- Reveal on scroll (genérico) ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  filter: blur(3px);
  transition:
    opacity 800ms ease,
    transform 800ms cubic-bezier(.2,.8,.2,1),
    filter 800ms ease;
  will-change: opacity, transform, filter;
}

/* cuando entra en viewport */
[data-reveal].in-view {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

/* Variantes */
[data-reveal="fade-up"]     { transform: translateY(18px); }
[data-reveal="fade-down"]   { transform: translateY(-18px); }
[data-reveal="fade-left"]   { transform: translateX(-22px); }
[data-reveal="fade-right"]  { transform: translateX(22px); }
[data-reveal="scale-in"]    { transform: scale(.96); }

[data-reveal="fade-down"].in-view,
[data-reveal="fade-left"].in-view,
[data-reveal="fade-right"].in-view,
[data-reveal="scale-in"].in-view { transform: none; }

/* Stagger (opcional): usar data-reveal-delay="120" etc. lo setea el JS */
[data-reveal][style*="--reveal-delay"] {
  transition-delay: var(--reveal-delay);
}

/* Respeta reducción de movimiento */
@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}

.form-control
{
  font-size: 14px;
  color:#ffffff;
}

/* Color blanco para los placeholders */
.form-control::placeholder {
  color: #ffffff !important;
  opacity: 1; /* algunos navegadores bajan la opacidad por defecto */
}

/* Compatibilidad con navegadores viejos */
.form-control::-webkit-input-placeholder { color: #ffffff !important; }
.form-control:-ms-input-placeholder      { color: #ffffff !important; }
.form-control::-ms-input-placeholder     { color: #ffffff !important; }

#toTop
{
    padding: 4px 8px 4px 8px;
}

.btn-send
{
    border-radius: 0px !important;
    background: #a38721;
    padding: 10px 40px;
    color: #ffffff;
    font-size: 14px;
}

.btn-send:hover
{
    color: #ffffff;
}


.form-control:focus {
  background-color: #a38721 !important;
  color: #fff;
  box-shadow: 0 0 0 0.25rem rgba(255,255,255,0.25); /* halo blanco suave */
  border-color: #fff; /* opcional: borde blanco al hacer focus */
}

.form-control::placeholder {
  color: #fff;
  opacity: 0.8; /* placeholder un poco más suave */
}

/* En caso de validación (Bootstrap cambia los colores) */
.form-control.is-valid,
.form-control.is-invalid {
  background-color: #a38721 !important;
  color: #fff !important;
}


/* --- Carrusel --- */
.gallery-carousel {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.5rem 0;
}

.gallery-carousel .viewport {
  overflow: hidden;
}

.gallery-carousel .track {
  list-style: none;
  display: flex;
  gap: 1rem;
  padding: 0;
  margin: 0;
  will-change: transform;
  transition: transform 320ms ease;
}

.gallery-carousel .slide {
  flex: 0 0 calc((100% - 2rem) / 3); /* 3 visibles con 2 gaps */
}

.gallery-carousel img {
  width: 100%;
  height: auto;       /* altura proporcional */
  border-radius: 8px;
  cursor: zoom-in;
  display: block;
  box-shadow: 0 2px 10px rgba(0,0,0,.15);
}

/* Flechas */
.gallery-carousel .nav {
  background: transparent;
  border: 0;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  color: var(--gold); /* dorado/naranja similar al ejemplo */
  padding: 0 .25rem;
  user-select: none;
}
.gallery-carousel .nav:disabled { opacity: .35; cursor: not-allowed; }

/* Responsive: 1 imagen por vista en móviles */
@media (max-width: 768px) {
  .gallery-carousel .slide {
    flex: 0 0 100%;
  }
  .gallery-carousel img { height: 200px; }
}

/* --- Lightbox --- */
/* --- Lightbox con animación --- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.8);
  display: flex;                /* siempre en flujo, pero oculto con opacity/visibility */
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 2000;                /* por encima del navbar */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 220ms ease, visibility 220ms ease;
}
.lightbox.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lightbox img {
  max-width: min(92vw, 1200px);
  max-height: 90vh;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,.5);
  transform: scale(.985);          /* leve zoom-out inicial */
  transition: transform 260ms cubic-bezier(.2,.8,.2,1);
}
.lightbox.open img {
  transform: scale(1);             /* zoom-in suave al abrir */
}

/* Botón cerrar (con z alto) */
.lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.65);
  background: rgba(0,0,0,.35);
  color: #fff;
  cursor: pointer;
  transition: transform .16s ease, background .16s ease;
  z-index: 2001;
}
.lightbox-close:hover { transform: scale(1.06); background: rgba(0,0,0,.55); }
.lightbox-close svg { display:block; }

/* Respeta usuarios con reducción de movimiento */
@media (prefers-reduced-motion: reduce) {
  .lightbox { transition: none !important; }
  .lightbox img { transition: none !important; transform: none !important; }
}

/* Contenedor relativo a la imagen */
.lightbox-inner {
  position: relative;
  display: inline-block; /* se ajusta al tamaño de la imagen */
}

/* Tu imagen (puede heredar lo que ya tenías) */
.lightbox-inner img {
  max-width: min(92vw, 1200px);
  max-height: 90vh;
  display: block;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,.5);
  transform: scale(.985);                 /* animación que ya usabas */
  transition: transform 260ms cubic-bezier(.2,.8,.2,1);
}
.lightbox.open .lightbox-inner img { transform: scale(1); }

/* Botón cerrar pegado a la esquina de la foto */
.lightbox-close {
  position: absolute;
  top: -14px;
  right: -14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 0px;
  background: #ffffff;
  color: #000000;
  cursor: pointer;
  transition: transform .16s ease, background .16s ease, opacity .16s ease;
  z-index: 1;
}
.lightbox-close:hover { transform: scale(1.06); background: #ececec; }
.lightbox-close svg { display:block; }

/* (Lo que ya tenías del overlay con animación) */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.8);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 220ms ease, visibility 220ms ease;
}
.lightbox.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
  .lightbox { transition: none !important; }
  .lightbox-inner img { transition: none !important; transform: none !important; }
}
