/* ================= FONTS ================= */

@font-face{
font-family:'LazyDog';
src:url('./fonts/LazyDog.woff2') format('woff2');
font-display:swap;
}

@font-face{
font-family:'PP Hatton';
src:url('./fonts/PPHatton-Medium-500.woff2') format('woff2');
font-weight:500;
font-display:swap;
}

@font-face{
font-family:'PP Hatton';
src:url('./fonts/PPHatton-Bold-700.woff2') format('woff2');
font-weight:700;
font-display:swap;
}

/* ================= GLOBAL ================= */

html{
scroll-behavior:smooth;
}

body{
margin:0;
background:#e8e4db;
font-family:'PP Hatton', serif;
text-align:center;
color:#2f3f29;
}

section{
padding:60px 0px;
}

.container{
max-width:1000px;
margin:auto;
}

a{
text-decoration:none;
color:inherit;
}

/* ================= TYPOGRAPHY ================= */

h1,h2,h3{
font-family:'LazyDog';
letter-spacing:2px;
color:#2f3f29;
}

h1{font-size:7em;}
h2{font-size:3em;}
h3{font-size:2em;}

.date,.location{
font-size:2em;
}

/* ================= HERO ================= */

.hero-img{
width:85%;
max-width:500px;
animation:floatHero 6s ease-in-out infinite;
}

.hero{
animation:heroFade 1.5s ease;
}

/* ================= GENERAL IMAGES ================= */

.reveal{
max-width:100%;
height:auto;
opacity:0;
transform:translateY(30px) scale(0.95);
transition:opacity 1.2s ease, transform 1.2s ease;
}

.reveal.active{
opacity:1;
transform:translateY(0) scale(1);
}

.section-img{
width:80%;
max-width:420px;
margin:auto;
display:block;
}

.decoracion-divider{
width:60%;
max-width:300px;
margin:40px auto;
opacity:0.9;
}

/* ilustraciones específicas */

img[src*="valyjavo-hacienda"]{
width:90%;
max-width:700px;
margin:40px auto;
display:block;
}

img[src*="valyjavo-arcos"]{
width:80%;
max-width:420px;
margin:auto;
display:block;
}


/* ================= TIMES ================= */

.times{
  display:grid;
  grid-template-columns:1fr;
  gap:70px;
  justify-items:center;
  align-items:start;
}

.time-block{
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
}

.time-block img{
  width:100%;
  max-width:220px;
  height:180px;
  object-fit:contain;
  margin-bottom:20px;
}

.time-block h3{
  margin:10px 0 25px;
}

.time{
  font-size:20px;
}

/* Desktop */
@media (min-width:992px){

  .times{
    grid-template-columns:repeat(3, 1fr);
    gap:60px;
    max-width:1100px;
    margin:auto;
  }

}

/* ================= RECOMENDACIONES ================= */

.recomendaciones h2{
margin-bottom:60px;
}

.hotel-tabs{
display:flex;
justify-content:center;
gap:60px;
flex-wrap:wrap;
margin-bottom:40px;
}

.hotel-btn{
background:#fff;
padding:12px 40px;
border-radius:30px;
font-family:'LazyDog';
}

.hotel-info{
max-width:600px;
margin:auto;
}

/* ================= DRESSCODE ================= */

.dresscode-grid{
display:grid;
grid-template-columns:1fr;
gap:10px;
align-items:center;
}

.dresscode-grid img{
width:70%;
max-width:220px;
margin-bottom:20px;
}

/* ================= REGALOS ================= */

.regalos-grid{
display:grid;
grid-template-columns:1fr;
align-items:center;
}

.regalos-grid img{
width:80%;
max-width:350px;
margin-bottom:20px;
}

/* ================= RSVP ================= */

.rsvp-grid{
display:grid;
grid-template-columns:1fr;
gap:60px;
align-items:center;
}

form{
display:flex;
flex-direction:column;
gap:30px;
max-width:800px;
margin:auto;
}

input,select{
border:none;
border-bottom:1px solid #ffab40;
background:transparent;
padding:10px;
font-family:'PP Hatton';
}

/* ================= BUTTON ================= */

.btn{
background:#54723c;
color:#e8e4db;
padding:14px 40px;
border-radius:30px;
border:none;
cursor:pointer;
font-family:'LazyDog';
margin-bottom: 5px;
}

/* ================= LUGAR ================= */

.lugar-grid{
display:grid;
grid-template-columns:1fr;
gap:0;
align-items:center;
}

.lugar-info{
text-align:center;
margin-bottom:10px;
}

.direccion{
font-size:1em;
margin:20px 0;
}

.lugar-mapa img{
width:100%;
max-width:300px;
margin:auto;
display:block;
transition:transform .3s ease;
}

.lugar-mapa img:hover{
transform:scale(1.05);
}

/* ================= HACIENDA DIVIDER ================= */

.hacienda-divider{
padding-bottom:-30px;
text-align:center;
}

.hacienda-text{
margin-bottom:0px;
font-size:1.2em;
opacity:.8;
}

.hacienda-img{
width:100%;
max-width:700px;
margin:auto;
display:block;
}

/* ================= COUNTDOWN ================= */

#countdown{
display:flex;
flex-direction:column;
align-items:center;
margin:20px 0 40px;
}

#days{
font-family:'LazyDog';
font-size:5em;
line-height:1;
color:#ffab40;
}

.count-label{
font-family:'PP Hatton';
letter-spacing:4px;
font-size:1em;
margin-top:-30px;
}

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

.rsvp{
padding-bottom:120px;
}

.footer{
padding:80px 20px;
font-size:.9em;
opacity:.6;
}

/* ================= FLOAT RSVP ================= */

.floating-rsvp{
position:fixed;
bottom:25px;
right:25px;
background:#9bad73;
color:#fff;
padding:14px 24px;
border-radius:40px;
font-family:'LazyDog';
box-shadow:0 6px 20px rgba(0,0,0,0.25);
z-index:999;
}

.floating-rsvp:hover{
transform:scale(1.05);
}

/* ================= ANIMATIONS ================= */

@keyframes floatHero{
0%{transform:translateY(0)}
50%{transform:translateY(-10px)}
100%{transform:translateY(0)}
}

@keyframes heroFade{
from{
opacity:0;
transform:translateY(20px);
}
to{
opacity:1;
transform:translateY(0);
}
}

.dresscode-grid img{
  transition: transform 0.35s ease, filter 0.35s ease;
  transform-origin: center center;
}

.dresscode-grid img:hover{
  filter: drop-shadow(0 10px 18px rgba(0,0,0,0.10));
}

.dresscode-grid div:first-child img:hover{
  transform: rotate(-4deg) scale(1.03);
}

.dresscode-grid div:last-child img:hover{
  transform: rotate(4deg) scale(1.03);
}

/* ================= MEDIA QUERIES ================= */

@media (min-width:992px){

.decoracion-divider{
width:30%;
max-width:350px;
margin:80px auto;
}

.section-img{
max-width:420px;
}

.dresscode-grid{
grid-template-columns:1fr 1fr;
}

.dresscode-grid img{
max-width:180px;
}

.regalos-grid{
grid-template-columns:1fr 1fr;
max-width:1000px;
margin:auto;
text-align:left;
}

.regalos-grid img{
justify-self:end;
max-width:550px;
}

.rsvp-grid{
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 80px;
    max-width: 1100px;
    margin: auto;
    align-items: flex-start;
  }

  #rsvp-form{
    width: 100%;
    max-width: 400px;
    margin: 0;
  }

  #rsvp-form input,
  #rsvp-form select{
    width: 100%;
    box-sizing: border-box;
  }

.lugar-grid{
grid-template-columns:1.2fr 1fr;
}

.lugar-mapa img{
max-width:400px;
}

.hacienda-divider{
padding:120px 20px 60px;
}

.hacienda-img{
max-width:900px;
}

}.Arcos {
}

/* ================= TITULOS ================= */

.titulo-con-linea{
  display:inline-block;
}

.titulo-con-linea .linea{
  display:block;
  margin:4px auto 0; /* 👈 menos espacio */
    margin-top:-30px; /* 👈 lo acerca al texto */
  background-repeat:no-repeat;
  background-position:center;
  background-size:contain;
}

.linea-corta .linea{
  width:300px;   /* antes 140 */
  height:50px;
  background-image:url('./images/linea.svg');
}

.linea-larga .linea{
  width:450px;   /* antes 220 */
  height:100px;
  background-image:url('./images/linealarga.svg');
}


@media (min-width:992px){

.linea-corta .linea{
  width:260px;
  height:34px;
}

.linea-larga .linea{
  width:420px;
  height:44px;
}

}


/* ================= FORM ================= */

.other-field{
  display:none;
  margin-top:10px;
}

.form-group{
  text-align:left;
  display:flex;
  flex-direction:column;
}

.form-group p{
  margin:0;
}

.form-group label{
  font-family:'PP Hatton';
  font-size: .8em;
}

.campo-acompanante{
  display:none;
}

/* ================= DATOS BANCARIOS ================= */


.bank-section{
  margin-top:30px;
  text-align:center;
}

.bank-details{
  display:none;
  max-width:520px;
  margin:30px auto 0;
  text-align:left;
  color:#2f442c;
  font-family:'PP Hatton';
  font-size: .8em;
}

.bank-details.show{
  display:block;
}

.bank-section{
  margin-top:25px; /* 👈 controla distancia con botones */
}

.bank-details p{
  margin:6px 0;
  line-height:1.35;
}

.bank-details{
  margin-top:20px;
  padding-top:15px;
}

/* MESA DE REGALOS */

.regalos-section{
  padding:60px 20px;
}

.regalos-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:30px;
  align-items:start;
}

.regalos-content{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  text-align: left;
  gap:2px;
  max-width:520px;
  margin:auto;
}
.regalos-content .btn{
  align-self:flex-start;
}

.bank-toggle{
  font-size: inherit; /* 👈 usa el mismo que .btn */
}

.regalos-content p{
  margin:0 0 10px;
}

.bank-section{
  margin-top:0;
}

.bank-details{
  display:none;
  margin-top:18px;
  text-align:left;
}

.bank-details.show{
  display:block;
}

@media (min-width:992px){
  .regalos-grid{
    grid-template-columns:1fr 1fr;
    gap:60px;
  }

  .regalos-grid img{
    max-width:420px;
  }
}
