    html {
      scroll-behavior: smooth;
    }
/* ==========================================================
       BASE - FONDO CLARO Y ESTILO ELEGANTE
    ========================================================== */
    :root{
      --bg:#f6f2eb; /* Fondo crema claro */
      --text:#4b463f;
      --accent:#b59b72; /* dorado suave */
      --muted:#6b645b;
      --card:rgba(255,255,255,0.75);
      --glass:rgba(255,255,255,0.45);
      --maxw:1100px;
    }

    *{box-sizing:border-box;margin:0;padding:0;}
    
    body{
      background:var(--bg);
      color:var(--text);
      font-family:Inter, sans-serif;
      -webkit-font-smoothing:antialiased;
    }

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

    /* ==========================================================
       HEADER
    ========================================================== */
    header{
      position:fixed;
      top:18px; left:0; right:0;
      z-index:100;
      display:flex;
      justify-content:center;
      pointer-events:none;
    }

    .nav{
      background:var(--glass);
      padding:10px 22px;
      border-radius:999px;
      backdrop-filter:blur(8px);
      border:1px solid rgba(0,0,0,0.08);
      pointer-events:auto;
      font-family:'Playfair Display', serif;
      font-size:18px;
      letter-spacing:1px;
      color:var(--text);
    }

    /* ==========================================================
       HERO (SECCIÓN #home) — SOBRE DE CARTA COMO FONDO
    ========================================================== */
    .hero{
      height:100vh;
      min-height:680px;
      display:flex;
      align-items:center;
      justify-content:center;
      position:relative;
      text-align:center;
      padding:20px;
      background-image:url('https://images.unsplash.com/photo-1524492412937-b28074a5d7da?auto=format&fit=crop&w=1600&q=80');
      background-size:cover;
      background-position:center;
      background-repeat:no-repeat;
    }

    /* Capita blanca suave sobre el fondo de sobre */
    .hero::after{
      content:"";
      position:absolute;
      inset:0;
      background:rgba(255,255,255,0.65);
      backdrop-filter:blur(2px);
    }

    .hero-content{
      position:relative;
      z-index:10;
      max-width:880px;
    }

    .date{
      font-family:'Inter',sans-serif;
      letter-spacing:2px;
      font-size:14px;
      margin-bottom:16px;
      color:var(--muted);
      text-transform:uppercase;
    }

    .title{
      font-family:'Great Vibes',cursive;
      font-size:84px;
      color:var(--accent);
    }

    .subtitle{
      margin-top:10px;
      font-size:20px;
      font-family:'Playfair Display',serif;
      color:var(--text);
      opacity:0.85;
    }

    .cta-row{
      margin-top:28px;
      display:flex;
      gap:12px;
      justify-content:center;
      flex-wrap:wrap;
    }

    .btn{
      background:white;
      border:1px solid #d7d2ca;
      padding:10px 18px;
      border-radius:10px;
      cursor:pointer;
      font-weight:600;
      color:var(--text);
    }

    .btn.primary{
      border:2px solid var(--accent);
      color:var(--accent);
      background:transparent;
    }

    /* ==========================================================
       SECCIONES
    ========================================================== */

    
    /* ============================================
    Envelope Hero Section
    ============================================= */

    .envelope-wrapper{
    display:flex;
    justify-content:center;
    align-items:center;
    height:100vh;
    padding:40px 20px;
    background:var(--bg);
    position:relative;
    }

    /* El sobre en sí */
    .envelope{
    position:relative;
    width:420px;
    height:300px;
    perspective:900px;
    background: url(../images/envelope.png);
    background-position: center;
    background-size: auto;
    }

    /* Cuerpo del sobre */
    .envelope-body{
    width:100%;
    height:100%;
    background:#dce8dd; /* verde pastel muy suave */
    border-radius:8px;
    position:absolute;
    top:0; left:0;
    border:2px solid #c6d6c8;
    }

    /* Solapa superior del sobre */
    .envelope-flap{
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:50%;
    background:#dce8dd;  /* verde pastel */
    border-radius:8px 8px 0 0;
    border:2px solid #c6d6c8;
    border-bottom:none;

    transform-origin:top;
    transform:rotateX(0deg);
    transition:transform 1.2s ease;
    z-index:10;
    }

    /* Animación opcional: abre el sobre cuando entra a pantalla */
    .envelope-wrapper:hover .envelope-flap{
    transform:rotateX(-125deg);
    }

    /* Sello dorado circular */
    .seal{
    width:76px;
    height:76px;
    background:radial-gradient(circle, #f7e5a3 0%, #d3b974 60%, #b79f63 100%);
    border-radius:50%;
    position:absolute;
    top:105px;
    left:50%;
    transform:translateX(-50%);
    z-index:1;
    box-shadow:
        0 0 6px rgba(0,0,0,0.2),
        inset 0 0 4px rgba(255,255,255,0.8);
    border:3px solid #b49b63;
    }

    /* Textura o pequeño diseño opcional del sello */
    .seal::after{
    content:"IE";
    position:absolute;
    inset:0;
    display:flex;
    align-items:center;
    justify-content:center;
    font-family:'Playfair Display', serif;
    font-weight:700;
    font-size:22px;
    color:#7d673c;
    }

    /* Contenido dentro del sobre */
    .envelope-content{
    position:absolute;
    inset:0;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    padding:30px 20px;
    text-align:center;
    z-index:5;
    background: rgb(246 242 235 / 15%);
    }

    .envelope-content .date{
    font-size:14px;
    letter-spacing:2px;
    color:#7a7a7a;
    margin-bottom:12px;
    }

    .envelope-content .title{
    font-family: 'Great Vibes', cursive;
    font-size: 45px;
    color: #6b533b;
    margin-bottom: 50%;
    }

    .envelope-content .subtitle{
    font-family:'Playfair Display',serif;
    font-size:18px;
    margin-bottom:22px;
    color:#4c4c4c;
    }

    .envelope-content .cta-row{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    justify-content:center;
    }


    section.story{
      padding:30px 0;
      display:flex;
      align-items:center;
      justify-content:center;
    }

    .container{
      max-width:var(--maxw);
      margin:auto;
      padding:0 24px;
    }

    .row{
      display:grid;
      grid-template-columns:1fr 420px;
      gap:40px;
      align-items:center;
    }

    .col-text h2{
      font-family:'Playfair Display',serif;
      font-size:34px;
      margin-bottom:12px;
    }

    .col-text p{
      font-size:16px;
      line-height:1.7;
      color:var(--muted);
    }

    .card{
      background:var(--card);
      padding:18px;
      border-radius:14px;
      border:1px solid rgba(0,0,0,0.08);
    }

    .photo{
      width:100%;
      height:260px;
      object-fit:contain;
      border-radius:10px;
    }

    /* RSVP */
    input,textarea,select{
      padding:10px;
      border-radius:8px;
      border:1px solid #cfcfcf;
      background:white;
      color:var(--text);
      font-size:15px;
    }

    /* ============================================
    SECCIÓN DETALLES — estilo imagen
    ============================================= */

    .detalles-section{
    background:#c5c5a5; /* verde pastel arena */
    padding:80px 20px;
    text-align:center;
    font-family:'Playfair Display', serif;
    color:#f5f2e9;
    }

    .detalles-intro{
    font-size:18px;
    margin-bottom:40px;
    opacity:0.95;
    }

    /* Fecha grande */
    .fecha-block .mes{
    font-size:25px;
    letter-spacing:3px;
    margin-bottom:14px;
    }

    .fecha-grid{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:30px;
    font-size:18px;
    }

    .fecha-lado{
    opacity:0.85;
    border-top: solid;
    border-bottom: solid;
    padding: 0px 20px;
    }

    .fecha-dia{
    font-size:70px;
    font-weight:300;
    font-family:'Playfair Display', serif;
    }

    /* Countdown */
    .faltan{
    margin-top:50px;
    font-size:22px;
    letter-spacing:2px;
    }

    .countdown{
    margin-top:20px;
    display:flex;
    justify-content:center;
    gap:40px;
    font-family:'Playfair Display', serif;
    color:#f0ede4;
    }

    .countdown div{
    text-align:center;
    }

    .countdown span{
    font-size:40px;
    }

    .countdown small{
    display:block;
    margin-top:4px;
    font-size:14px;
    opacity:0.8;
    }

    /* Calendar */
    .calendar-block{
    margin-top:70px;
    }

    .gran-dia{
    font-size:26px;
    margin-bottom:5px;
    }

    .gran-dia-mes{
    letter-spacing:2px;
    font-size:16px;
    margin-bottom:20px;
    }

    .calendar{
    display:flex;
    flex-direction:column;
    align-items:center;
    }

    .calendar .week{
    font-size:14px;
    letter-spacing:4px;
    margin-bottom:10px;
    opacity:0.9;
    }

    .calendar .days{
    display:grid;
    grid-template-columns:repeat(7, 40px);
    justify-content:center;
    gap:12px;
    font-size:18px;
    }

    .calendar .days span{
    opacity:0.85;
    }

    .calendar .days .heart{
    position:relative;
    font-weight:600;
    }

    .calendar .days .heart::after{
    content:"";
    position:absolute;
    left:50%;
    top:50%;
    width:34px;
    height:30px;
    transform:translate(-50%, -50%);
    background:url('https://cdn-icons-png.flaticon.com/512/833/833472.png') no-repeat center/contain;
    opacity:0.35;
    }


    /* ============================================
   ITINERARIO — TIMELINE ESTILO A
============================================= */

.timeline-section{
  padding:100px 20px;
  max-width:1000px;
  margin:auto;
  position:relative;
}

.timeline-title{
  text-align:center;
  font-family:'Playfair Display', serif;
  font-size:36px;
  margin-bottom:60px;
  color:var(--text);
}

/* contenedor */
.timeline{
  position:relative;
  margin:0 auto;
  padding-left:40px;
  padding-right:40px;
}

/* línea central */
.timeline::before{
  content:"";
  position:absolute;
  top:0;
  left:50%;
  transform:translateX(-50%);
  width:3px;
  height:100%;
  background:#d9c89a; /* dorado suave */
  border-radius:2px;
}

/* item */
.timeline-item{
  position:relative;
  width:100%;
  min-height:120px;
  margin:50px 0;
  display:flex;
  align-items:center;
}

/* círculo dorado */
/* .timeline-icon{
  width:22px;
  height:22px;
  background:radial-gradient(circle, #fff7d0 0%, #e8d08a 50%, #c5a96a 100%);
  border-radius:50%;
  border:2px solid #b79f63;
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  z-index:5;
  box-shadow:
    0 2px 6px rgba(0,0,0,0.1),
    inset 0 0 3px rgba(255,255,255,0.5);
} */

.timeline-icon > img {
    height: 45px;
    margin-left: 10px;
}

/* tarjetas */
.timeline-content{
  width:42%;
  /* background:white; */
  padding:18px 22px;
  border-radius:12px;
  /* border:1px solid #e8e2d8;
  box-shadow:0 4px 14px rgba(0,0,0,0.06); */
  font-size:15px;
  color:var(--text);
  position:relative;
}

.timeline-content.left{
  margin-right:auto;
  text-align:right;
}

.timeline-content.right{
  margin-left:auto;
  text-align:left;
}

.timeline-content h3{
  color:var(--accent);
  margin-bottom:6px;
  font-size:20px;
  font-family:'Playfair Display', serif;
}

/* ============================================
   EFECTO STORYTELLING — Fade lento + desplazamiento
============================================= */

.reveal-story{
  opacity:0;
  transform:translateY(40px);
  transition:opacity 1.4s ease, transform 1.4s ease;
}

.reveal-story.inview{
  opacity:1;
  transform:translateY(0);
}

/* Responsive */
@media(max-width:830px){
  .timeline::before{left:32px;}
  .timeline-icon{left:32px;}
  
  .timeline-content{
    width:calc(100% - 15px);
    margin-left:15px !important;
    text-align:center !important;
  }
}


    /* Footer */
    footer{
      text-align:center;
      padding:40px;
      color:#7d7d7d;
      font-size:14px;
    }

    /* Reveal animations */
    .reveal{
      opacity:0;
      transform:translateY(24px);
      transition:0.8s ease;
    }
    .reveal.inview{
      opacity:1;
      transform:none;
    }

    @media(max-width:920px){
      .row{grid-template-columns:1fr;}
      .title{font-size:64px;}
    }

    @media(max-width:520px){
      .title{font-size:46px;}
      .hero{min-height:560px;}
    }

    /* Audio button */
    .audio-btn{
      position:fixed;
      bottom:20px;
      right:20px;
      background:var(--accent);
      color:white;
      padding:12px 18px;
      border-radius:30px;
      cursor:pointer;
      font-weight:bold;
      z-index:90;
      box-shadow:0 4px 12px rgba(0,0,0,0.2);
    }