:root{
  --crema: #f8f4ea;
  --crema-suave: #f1ebdc;
  --verde: #5c6b4f;
  --verde-oscuro: #3f4a35;
  --texto: #4a4536;
  --dorado: #a98d5c;
}

*{box-sizing:border-box;margin:0;padding:0;}

body{
  font-family:'Jost', sans-serif;
  background: var(--crema);
  color: var(--texto);
  scroll-behavior: smooth;
  overflow-x:hidden;
}

h1,h2,h3{
  font-family:'Cormorant Garamond', serif;
  color: var(--verde-oscuro);
}

/* ===== DECORACIONES DE RAMAS ===== */
.branch-decor{
  position:absolute;
  z-index:0;
  pointer-events:none;
  opacity:0.9;
}
.branch-hero-top{
  top:-20px; right:-30px;
  width:260px;
}
.branch-hero-bottom{
  bottom:-20px; left:-30px;
  width:260px;
  transform: rotate(180deg);
}
.branch-section-right{
  top:20px; right:-40px;
  width:180px;
  opacity:0.5;
}
.branch-section-left{
  top:-10px; left:-40px;
  width:160px;
  opacity:0.5;
  transform: rotate(180deg);
}

/* ===== NAV ===== */
.navbar{
  position: sticky; top:0; z-index:100;
  display:flex; justify-content:space-between; align-items:center;
  padding: 15px 40px;
  background: rgba(248,244,234,0.95);
  border-bottom: 1px solid #e4ddc9;
}
.nav-logo{ font-family:'Cormorant Garamond',serif; font-size:1.6rem; color:var(--verde-oscuro); }
.nav-links{ display:flex; gap:25px; list-style:none; align-items:center;}
.nav-links a{ text-decoration:none; color:var(--texto); font-size:.95rem; letter-spacing:.5px;}
.rsvp-btn{ border:1px solid var(--verde-oscuro); padding:6px 16px; border-radius:20px;}
.burger{ display:none; font-size:1.5rem; cursor:pointer;}

/* ===== HERO ===== */
.hero{
  min-height: 90vh;
  display:flex; flex-direction:column; justify-content:center; align-items:center;
  text-align:center; position:relative; padding:40px 20px;
  background: radial-gradient(circle at center, #fbf9f3 0%, var(--crema) 70%);
  overflow:hidden;
}

.hero-frame{
  position:relative;
  z-index:1;
  padding: 70px 60px;
  max-width: 700px;
}
.hero-frame::before,
.hero-frame::after{
  content:'';
  position:absolute;
  width:45px;
  height:45px;
}
.hero-frame::before{
  top:0; left:0;
  border-top:1px solid var(--verde-oscuro);
  border-left:1px solid var(--verde-oscuro);
}
.hero-frame::after{
  bottom:0; right:0;
  border-bottom:1px solid var(--verde-oscuro);
  border-right:1px solid var(--verde-oscuro);
}

.hero-content{ position:relative; z-index:1;}
.hero .subtitle{ letter-spacing:4px; font-size:.9rem; color:var(--verde);}

.divider{
  display:flex; align-items:center; justify-content:center;
  gap:12px; margin:14px 0;
}
.divider::before, .divider::after{
  content:'';
  height:1px; width:55px;
  background: var(--verde-oscuro);
  opacity:0.3;
}
.divider span{
  display:block; width:6px; height:6px;
  background:var(--dorado); border-radius:50%;
}

.hero h1{ font-size:4rem; font-weight:500; margin:6px 0 10px;}
.hero h1 .y{ font-style:italic; color:var(--dorado); font-weight:400;}

.hero-date-full{
  font-family:'Cormorant Garamond', serif;
  font-style: italic;
  font-size:1.15rem;
  color: var(--verde);
  letter-spacing: 1px;
  margin-bottom: 15px;
}

.hero-text{ max-width:500px; margin:0 auto 15px; line-height:1.6;}
.hero-date{ margin:20px 0; font-size:1rem; color:var(--verde-oscuro);}

.btn{
  display:inline-block; background:var(--verde-oscuro); color:#fff;
  padding:12px 30px; border-radius:30px; text-decoration:none;
  letter-spacing:1px; font-size:.9rem; border:none; cursor:pointer;
  transition:.3s;
}
.btn:hover{ background: var(--verde);}
.btn.small{ padding:8px 20px; font-size:.85rem;}
.full-btn{ width:100%; margin-top:10px; padding:14px;}

.scroll-indicator{
  position:absolute;
  bottom:30px; left:50%;
  transform:translateX(-50%);
  z-index:1;
  animation: bounceY 2s infinite;
}
.scroll-chevron{
  width:10px; height:10px;
  border-right:1px solid var(--verde-oscuro);
  border-bottom:1px solid var(--verde-oscuro);
  transform:rotate(45deg);
  opacity:0.6;
}
@keyframes bounceY{
  0%,100%{ transform:translateX(-50%) translateY(0);}
  50%{ transform:translateX(-50%) translateY(8px);}
}

/* ===== SECTIONS ===== */
.section{ padding:80px 20px; position:relative; overflow:hidden;}
.section.alt{ background: var(--crema-suave);}
.section-inner{ max-width:1100px; margin:0 auto; position:relative; z-index:1;}
.section-inner.narrow{ max-width:650px;}
.section-label{ letter-spacing:3px; text-transform:uppercase; font-size:.8rem; color:var(--dorado);}
.section-label.center, h2.center, .desc.center{ text-align:center;}
.grid{ display:grid; grid-template-columns:1fr 1fr; gap:50px; align-items:center;}
.grid.reverse .img-box{order:2;}
.img-box img{ width:100%; border-radius:8px; box-shadow:0 10px 25px rgba(0,0,0,.1);}
.text-box h2{ font-size:2.2rem; margin:5px 0;}
.location{ color:var(--verde); font-weight:500;}
.hour{ margin:10px 0; font-weight:500;}
.desc{ line-height:1.7; margin:15px 0;}
.map-link{ color:var(--verde-oscuro); text-decoration:underline; font-size:.9rem;}
.map-embed{ margin-top:15px; border-radius:8px; overflow:hidden;}

/* ===== HOTELES ===== */
.hotels-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:25px;
  margin-top:40px;
  align-items:stretch;
}
.hotels-grid.two-col{
  grid-template-columns:repeat(2,1fr);
  max-width:700px;
  margin-left:auto;
  margin-right:auto;
}
.hotel-card{
  display:flex;
  flex-direction:column;
  background:#fff; border:1px solid #e4ddc9; border-radius:10px;
  padding:30px 25px; text-align:center; transition:.3s;
  height:100%;
}
.hotel-card:hover{ box-shadow:0 10px 20px rgba(0,0,0,.05); transform: translateY(-3px);}
.hotel-card h3{ margin-bottom:6px;}
.hotel-sub{ color:var(--verde); font-size:.9rem; margin-bottom:12px;}
.hotel-desc{ font-size:.9rem; margin-bottom:12px; line-height:1.5; flex-grow:1;}
.hotel-address{ font-size:.8rem; color:#999; margin-bottom:16px; letter-spacing:.3px;}
.discount-code{ margin-bottom:18px;}
.discount-code span{ font-weight:600; color:var(--dorado);}
.hotel-card .btn.small{ margin-top:auto; align-self:center;}

/* ===== BUS — MAPA DE RUTA ===== */
.route-map{
  display:flex;
  align-items:flex-start;
  justify-content:center;
  margin-top:55px;
  gap:0;
}
.route-stop{
  display:flex;
  flex-direction:column;
  align-items:center;
  min-width:110px;
  text-align:center;
}
.stop-dot{
  width:14px; height:14px;
  border-radius:50%;
  border:2px solid var(--verde-oscuro);
  background:var(--crema-suave);
  margin-bottom:12px;
  flex-shrink:0;
}
.stop-dot.event{
  background:var(--verde-oscuro);
  width:18px; height:18px;
  border-color:var(--verde-oscuro);
}
.stop-name{
  font-family:'Cormorant Garamond', serif;
  font-size:1rem;
  color:var(--verde-oscuro);
  line-height:1.3;
  margin-bottom:6px;
}
.stop-time{
  font-size:.75rem;
  letter-spacing:1px;
  color:var(--dorado);
  text-transform:uppercase;
}
.route-line{
  flex:1;
  display:flex;
  align-items:flex-start;
  padding-top:5px;
  position:relative;
}
.route-line::before{
  content:'';
  position:absolute;
  top:6px;
  left:0; right:0;
  height:1px;
  background: var(--verde-oscuro);
  opacity:0.25;
}
.route-arrow{
  position:absolute;
  top:-4px;
  left:50%;
  transform:translateX(-50%);
  font-size:1rem;
  color:var(--verde-oscuro);
  opacity:0.5;
}

/* ===== FORMULARIO ===== */
.rsvp-form{ margin-top:40px;}
.form-grid{
  display:grid; grid-template-columns:1fr 1fr; gap:20px;
  margin-bottom:20px;
}
.form-row{ margin-bottom:20px; display:flex; flex-direction:column;}
.form-row.full{ grid-column:1/-1;}
.form-row label{ margin-bottom:8px; font-size:.9rem; font-weight:500; color:var(--verde-oscuro);}

input, select, textarea{
  padding:12px 14px; border:1px solid #d8d2c0; border-radius:8px;
  font-family:'Jost', sans-serif; font-size:.95rem;
  background:#fff; color:var(--texto);
  width:100%;
}
input:focus, select:focus, textarea:focus{
  outline:none; border-color:var(--verde-oscuro);
}

.option-group{
  display:flex; flex-wrap:wrap; gap:12px; margin-top:5px;
}
.option-card{
  display:flex; align-items:center; gap:10px;
  border:1px solid #d8d2c0; border-radius:30px;
  padding:10px 20px; background:#fff;
  cursor:pointer; transition:.25s; width:auto;
  font-size:.9rem;
}
.option-card input[type="radio"]{
  width:16px; height:16px; margin:0;
  accent-color: var(--verde-oscuro);
  cursor:pointer;
}
.option-card:hover{
  border-color:var(--verde-oscuro);
  background:var(--crema-suave);
}
.option-card.selected{
  background:var(--verde-oscuro);
  border-color:var(--verde-oscuro);
  color:#fff;
}
.option-card.selected input{ accent-color:#fff;}

.hidden{ display:none;}
#formMsg{ margin-top:15px; font-weight:500; text-align:center;}

.field-error{
  display:none;
  font-size:.8rem;
  color:#c0392b;
  margin-top:5px;
}
.field-error.visible{ display:block;}
input.invalid{ border-color:#c0392b;}

/* ===== FOOTER ===== */
.footer{ text-align:center; padding:30px; background:var(--verde-oscuro); color:#fff; position:relative;}

/* ===== CÓMO LLEGAR ===== */
.transport-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:30px;
  margin-top:40px;
  max-width:780px;
  margin-left:auto;
  margin-right:auto;
}
.transport-card{
  display:flex;
  flex-direction:column;
  background:#fff;
  border:1px solid #e4ddc9;
  border-radius:12px;
  overflow:hidden;
  transition:.3s;
}
.transport-card:hover{ box-shadow:0 10px 20px rgba(0,0,0,.08); transform:translateY(-3px);}
.transport-img-box{ width:100%; height:200px; overflow:hidden;}
.transport-img-box img{ width:100%; height:100%; object-fit:cover; display:block;}
.transport-body{
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  padding:28px 25px;
  flex-grow:1;
}
.transport-body h3{ font-size:1.6rem; margin-bottom:4px;}
.transport-time{
  font-family:'Cormorant Garamond', serif;
  font-style:italic;
  font-size:1.05rem;
  color:var(--dorado);
  margin-bottom:14px;
}
.transport-desc{ font-size:.9rem; line-height:1.6; color:var(--texto); margin-bottom:20px; flex-grow:1;}
.transport-card .btn.small{ margin-top:auto;}

/* ===== GASTRONOMÍA ===== */
.resto-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:22px;
  margin-top:40px;
}
.resto-card{
  background:#fff;
  border:1px solid #e4ddc9;
  border-radius:10px;
  padding:24px 20px;
  display:flex;
  flex-direction:column;
  transition:.3s;
}
.resto-card:hover{ box-shadow:0 8px 18px rgba(0,0,0,.06); transform:translateY(-2px);}
.resto-header{
  display:flex;
  align-items:baseline;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom:10px;
}
.resto-header h3{ font-size:1.3rem; line-height:1.2;}
.resto-tag{
  font-size:.72rem;
  letter-spacing:.5px;
  text-transform:uppercase;
  color:var(--dorado);
  white-space:nowrap;
}
.resto-desc{ font-size:.88rem; line-height:1.6; color:var(--texto); flex-grow:1; margin-bottom:14px;}
.resto-link{
  font-size:.82rem;
  color:var(--verde-oscuro);
  text-decoration:none;
  font-weight:500;
  letter-spacing:.3px;
  margin-top:auto;
}
.resto-link:hover{ text-decoration:underline;}

/* ===== OVERLAY DE CARGA ===== */
.loading-overlay{
  display:none;
  position:fixed;
  inset:0;
  z-index:9999;
  background:rgba(248,244,234,0.92);
  backdrop-filter:blur(4px);
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:20px;
}
.loading-overlay.visible{
  display:flex;
}
.spinner{
  width:48px; height:48px;
  border:3px solid #d8d2c0;
  border-top-color: var(--verde-oscuro);
  border-radius:50%;
  animation: spin .8s linear infinite;
}
@keyframes spin{
  to{ transform:rotate(360deg);}
}
.loading-text{
  font-family:'Cormorant Garamond', serif;
  font-size:1.2rem;
  color:var(--verde-oscuro);
  letter-spacing:1px;
}

/* ===== RESPONSIVE ===== */
@media(max-width:768px){
  .nav-links{
    display:none;
    flex-direction:column;
    position:absolute;
    top:100%;
    left:0; right:0;
    background:rgba(248,244,234,0.98);
    border-bottom:1px solid #e4ddc9;
    padding:15px 25px 20px;
    gap:18px;
    z-index:99;
  }
  .nav-links.mobile-show{ display:flex;}
  .burger{ display:block;}
  .grid{ grid-template-columns:1fr;}
  .grid.reverse .img-box{ order:0;}
  .hotels-grid, .hotels-grid.two-col{ grid-template-columns:1fr;}
  .form-grid{ grid-template-columns:1fr;}
  .hero h1{ font-size:2.7rem;}
  .hero-frame{ padding:50px 25px;}
  .hero-frame::before, .hero-frame::after{ width:30px; height:30px;}
  .branch-hero-top, .branch-hero-bottom{ width:160px;}
  .branch-section-right, .branch-section-left{ display:none;}
  .route-map{
    flex-direction:column;
    align-items:center;
    gap:0;
  }
  .route-line{
    width:1px; height:40px;
    flex:none;
  }
  .route-line::before{
    top:0; bottom:0; left:50%; right:auto;
    width:1px; height:100%;
  }
  .route-arrow{
    top:50%;
    left:50%;
    transform:translate(-50%,-50%) rotate(90deg);
  }
  .route-stop{ min-width:auto;}
  .transport-grid{ grid-template-columns:1fr;}
  .resto-grid{ grid-template-columns:1fr;}
}
