* {
  -webkit-tap-highlight-color: transparent;
}
html {
  scroll-behavior: smooth;
}
/* CAMBIO AQUÍ: El body debe permitir scroll por defecto */
body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  overflow-x: hidden; /* Solo bloqueamos el horizontal */
    background: #f5f2ed;

}

/* Esta es la clase que el JS quita a los 5 segundos */
body.no-scroll {
  overflow: hidden; 
  height: 100vh; /* Asegura que no haya nada de scroll durante la intro */
}

.intro {
  position: fixed;
  width: 100%;
  height: 100vh;
  background: #000;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  z-index: 20;

  animation: fadeOut 2s ease 3s forwards;
}
.intro-line {
  width: 40px;
  height: 1px;
  background: rgba(255,255,255,0.6);
  margin: 15px 0;
  opacity: 0;
  animation: fadeUp 1.5s ease forwards;
  animation-delay: 0.3s;
}
/* TITULO */
.intro h1 {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  letter-spacing: 6px;
  color: white;

  opacity: 0;
  animation: fadeUp 1.5s ease forwards;
}

/* NOMBRES */
.intro p {
  margin-top: 10px;
  font-size: 16px;
  letter-spacing: 3px;
  color: white;

  opacity: 0;
  animation: fadeUp 1.5s ease forwards;
  animation-delay: 0.6s;
}

/* ANIMACIONES */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeOut {
  to {
    opacity: 0;
    pointer-events: none;
    visibility: hidden; /* Esto la elimina totalmente del mapa tras los 5s */
  }
}
/* HERO VIDEO */
.hero {
  height: 100vh;
  position: relative;
  background: #f5f2ed;
    overflow: hidden;
 height: 100vh;
  height: 100svh;
}

.hero video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  position: relative;
  z-index: 0;

  animation: slowZoom 14s ease-in-out infinite alternate;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 140%; /* 👈 MÁS ALTO QUE EL HERO */
  top: 0;

  z-index: 1;

  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.2),
    rgba(0,0,0,0.05),
    rgba(245,242,237,0.3),
    #f5f2ed
  );

  pointer-events: none;
}

.hero-text {
  position: absolute;
  top: 50%;
  width: 100%;
  text-align: center;
  color: white;
  transform: translateY(-50%);
  font-size: 18px;
  letter-spacing: 1px;
  z-index: 2; /* 👈 CLAVE */
}

.info {
  margin-top: 0;
  padding-top: 120px;
  background: transparent; /* 👈 ESTO ES CLAVE */
  position: relative;
  z-index: 2;
}
.info::after {
  content: "";
  position: absolute;
  top: -40px;
  left: 0;
  width: 100%;
  height: 80px;

}

/* TODO ENCIMA */
.card {
  position: relative;
  z-index: 2;

  max-width: 400px;
  margin: -120px auto 0;

  text-align: center;
  color: #2b2b2b;

  padding: 50px 30px;

  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(12px);
  border-radius: 14px;

  box-shadow: 0 20px 60px rgba(0,0,0,0.08);

  animation: floatCard 3s ease-in-out infinite;
}

/* cuando deja de flotar */
.card.stop-floating {
  animation: none;
}
@keyframes floatCard {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-6px); }
  100% { transform: translateY(0); }
}
/* TEXTOS */
.small {
  letter-spacing: 3px;
  font-size: 12px;
}

h1 {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  margin: 10px 0;
}

.location {
  opacity: 0.7;
  margin-bottom: 20px;
}

/* LINEA */
.line {
  width: 50px;
  height: 1px;
  background: #c2a878; /* Color dorado/ocre del corazón */
  margin: 25px auto;
}
/* RESET PARA AMBOS BOTONES */
.calendar-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    margin-top: 35px;
}

/* Esta clase aplica a los DOS por igual */
.btn-calendar {
    /* Reset de estilos de botón */
    appearance: none;
    -webkit-appearance: none;
    background: transparent !important;
    
    display: flex !important;
    justify-content: center;
    align-items: center;
    
    width: 100%;
    max-width: 280px;
    height: 45px;
    
    /* El borde ultra fino "estilo Atelier" */
    border: 0.5px solid rgba(43, 43, 43, 0.4) !important;
    color: #2b2b2b !important;
    
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-decoration: none;
    
    transition: all 0.4s ease;
    cursor: pointer;
}

.btn-calendar:hover {
    border-color: #c2a878 !important;
    color: #c2a878 !important;
    letter-spacing: 4px;
}



.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 1.2s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
.closing {
  background: #f5f2ed;
  padding: 140px 20px; /* 👈 antes 100 */
  text-align: center;
}
.closing-text {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  line-height: 1.6;
  color: #2b2b2b;
  max-width: 500px;
  margin: auto;
}
.closing-logo {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

.closing-logo img {
  width: 250px; /* ajustable */
  opacity: 0.85;

  animation: fadeLogo 2s ease 0.5s forwards;
  opacity: 0;
}

/* animación suave */
@keyframes fadeLogo {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.95);
  }
  to {
    opacity: 0.85;
    transform: translateY(0) scale(1);
  }
}

.calendar {
  margin: 30px auto;
  max-width: 260px;
  color: #2b2b2b;
}

.month {
  font-size: 13px;
  letter-spacing: 2px;
  margin-bottom: 10px;
  opacity: 0.7;
}

/* SEMANA */
.week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  font-size: 12px;
  margin-bottom: 8px;
  opacity: 0.5;
}
.week span {
  font-size: 10px;
  letter-spacing: 2px;
}

/* DÍAS */
.days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.days span {
  display: flex;
  justify-content: center;
  align-items: center;

  width: 100%;   /* CLAVE */
  height: 28px;  /* mismo alto para todos */

  font-size: 13px;
}

/* DÍA DESTACADO */
.heart-day {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* CORAZÓN SVG (decorativo, no rompe la grilla) */
.heart-svg {
  position: absolute;
  width: 30px;
  height: 28px;

  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  stroke: #c2a878;
fill: rgba(194,168,120,0.25);
stroke-width: 1.5;
  opacity: 0.9;

  animation: pulseHeart 1.8s ease-in-out infinite;
}
/* número */
.day-number {
  position: relative;
  z-index: 2;
  font-size: 13px;
  color: #2b2b2b;
}

@keyframes pulseHeart {
  0% {
    transform: translate(-50%, -50%) scale(1);
    filter: drop-shadow(0 0 0 rgba(194,168,120,0));
  }

  25% {
    transform: translate(-50%, -50%) scale(1.12);
    filter: drop-shadow(0 0 6px rgba(194,168,120,0.4));
  }

  40% {
    transform: translate(-50%, -50%) scale(1);
  }

  60% {
    transform: translate(-50%, -50%) scale(1.08);
    filter: drop-shadow(0 0 4px rgba(194,168,120,0.3));
  }

  100% {
    transform: translate(-50%, -50%) scale(1);
    filter: drop-shadow(0 0 0 rgba(194,168,120,0));
  }
}
.footer-atelier {
  background: #f5f2ed; /* mismo que la web */
  padding: 40px 20px;
  text-align: center;
  border-top: 1px solid rgba(0,0,0,0.08);
}

.footer-atelier p {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  letter-spacing: 1px;
  color: #777;
}

.footer-atelier a {
  color: #444;
  text-decoration: none;
  border-bottom: 1px solid #ccc;
  transition: all 0.3s ease;
}

.footer-atelier a:hover {
  color: #000;
  border-bottom: 1px solid #000;
}
/* ==========================================
   VERSION MOBILE (Hasta 768px)
   ========================================== */
@media (max-width: 768px) {
  .intro h1 { font-size: 26px; letter-spacing: 4px; }
  .intro p { font-size: 13px; letter-spacing: 2px; }
  .intro-line { width: 30px; }
  .hero-text { font-size: 14px; padding: 0 15px; }
  .scroll-indicator { bottom: 25px; }
  
  .info { padding: 60px 15px; } /* Llave corregida aquí */
  
  .card {
    padding: 35px 20px;
    max-width: 92% !important; /* Dejamos un margen para que no toque los bordes */
    border-radius: 10px;
    margin: -20vh auto 0;
  }

  h1 { font-size: 24px; }
  .small { font-size: 10px; letter-spacing: 2px; }
  .location { font-size: 13px; }
  button { width: 100%; padding: 12px; font-size: 10px; }

  .closing {
    background: #f5f2ed;
    padding: 140px 20px 120px;
    text-align: center;
    opacity: 0;
    transform: translateY(40px);
    transition: all 1.4s ease;
  }
  .closing.active { opacity: 1; transform: translateY(0); }
  .closing-signature { margin-top: 40px; font-size: 12px; letter-spacing: 6px; color: #c2a878; opacity: 0.7; }

  .calendar { max-width: 100%; }
  .days span { height: 26px; font-size: 12px; }
  .heart-svg { width: 26px; height: 24px; }
  .footer-atelier p { font-size: 10px; }
}

/* ==========================================
   SISTEMA DE ESCRITORIO UNIFICADO (Desde 1024px en adelante)
   ========================================== */
@media (min-width: 1024px) {
  
  /* 1. Contenedor Padre: Aseguramos que todo se centre */
  .info {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    padding-top: 100px !important; /* Espacio para que luzca el video */
    position: relative;
    z-index: 2;
  }

  /* 2. La Tarjeta: Tamaño fijo "Bespoke" */
  .card {
    position: relative;
    width: 480px !important; /* En desktop el ancho es fijo y elegante */
    max-width: 480px !important;
    margin: -150px auto 0 !important; /* Solapamiento controlado */
    padding: 60px 50px !important;
    border-radius: 20px;
    backdrop-filter: blur(15px);
    background: rgba(255, 255, 255, 0.6);
  }


  /* 3. Ajustes de pantalla ULTRA (Evita que falle en >1500px) */
  @media (min-width: 1500px) {
    .info { padding-top: 15vh !important; }
    .card { width: 520px !important; max-width: 520px !important; }
    .hero { max-height: 85vh; } /* Evita que el video se coma toda la pantalla */
  }

  /* 4. Elementos Internos (Escalables) */
  h1 { font-size: 42px !important; letter-spacing: 2px; }
  .small { font-size: 13px; letter-spacing: 4px; }
  .location { font-size: 16px; margin-bottom: 30px; }

  .calendar { 
    width: 320px !important; 
    max-width: 320px !important; 
    margin: 40px auto !important; 
  }
  
  .days span { height: 40px !important; font-size: 16px !important; }
  .heart-svg { width: 42px !important; height: 38px !important; }

  button { 
    width: 100%; 
    padding: 18px !important; 
    font-size: 12px; 
    cursor: pointer; 
    margin-top: 20px;
  }

  .closing-text { font-size: 24px; max-width: 650px; margin: auto; }
  .closing-logo img { width: 300px; }
  .hero video { object-position: center 50%; }
}
