/* ══════════════════════════════════════════════
   FUENTES PERSONALIZADAS (descomenta cuando
   tengas los archivos en /fonts/)
══════════════════════════════════════════════ */
/*
@font-face {
  font-family: 'NewIconScript';
  src: url('../fonts/NewIconScript.woff2') format('woff2');
  font-display: swap;
}
@font-face {
  font-family: 'Nickainley';
  src: url('../fonts/Nickainley.woff2') format('woff2');
  font-display: swap;
}
*/

/* ══════════════════════════════════════════════
   VARIABLES
══════════════════════════════════════════════ */
:root {
  /* Colores extraídos del diseño Canva */
  --red:        #8B1A1A;   /* títulos grandes rojos */
  --dark:       #1a1a1a;   /* texto cuerpo oscuro */
  --sage:       #9db5a8;   /* botón verde salvia */
  --sage-dark:  #7a9990;
  --cream:      #faf7f2;   /* fondo base crema */
  --gold:       #c9a55a;   /* pin y detalles dorados */

  /* Tipografías:
     Cuando tengas las fuentes locales, sustituye
     'Great Vibes' → 'NewIconScript'
     'Dancing Script' → 'Nickainley'             */
  --font-title: 'Great Vibes', cursive;
  --font-body:  'Carattere', serif;
}

/* ══════════════════════════════════════════════
   RESET
══════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--cream);
  color: var(--dark);
  font-family: var(--font-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a   { text-decoration: none; color: inherit; }

/* ══════════════════════════════════════════════
   TIPOGRAFÍA — CLASES UTILITARIAS
   Configuración texto homogéneo
══════════════════════════════════════════════ */
.title-script {
  font-family: var(--font-title);
  font-weight: normal;
  letter-spacing: 1px;
  line-height: 1.1;
}

.title-script.red {
  color: var(--red);
  font-size: clamp(2.8rem, 8vw, 5.5rem);
}

.subtitle-script {
  font-family: var(--font-body);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  color: var(--sage-dark);
  font-weight: normal;
  margin-bottom: 1rem;
  margin-top: 1rem;
  line-height: 1.4;
}

.subtitle-script.red { color: var(--red); }


.body-script,
.bienvenida-texto p,
.venue-text p {
  font-family: inherit;
}

.body-script {
  font-family: var(--font-body);
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  line-height: 1.85;
  color: var(--dark);
  text-align: center;
}

@media (max-width: 768px) {

  .body-script {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
  }

}

.script-dark {
  font-family: var(--font-body);
  color: var(--dark);
}

.bold { font-weight: 700; }

/* ══════════════════════════════════════════════
   FONDO ACUARELA EN EL BODY - MEJOR OPCION
   Usa tu imagen de fondo en la web
══════════════════════════════════════════════ */

body {
  position: relative;
  background-image: url('../img/fondo-textura.jpg');
  background-size: 100% auto;
  background-repeat: repeat-y;
  background-position: top center;
  font-family: var(--font-body);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.5);
  pointer-events: none;
  z-index: 0;
}


/* ══════════════════════════════════════════════
   FONDO ACUARELA — SECCIONES
   Usa tu imagen de fondo en todas las secciones
══════════════════════════════════════════════ */

.bg-watercolor { 
  background: transparent;
}

.section {
  padding: clamp(3rem, 8vw, 5rem) clamp(1.5rem, 6vw, 5rem);
  text-align: center;
}

/* ══════════════════════════════════════════════
   SEPARADOR DE SECCIONES
══════════════════════════════════════════════ */

.separator {
  width: 200px;
  height: 1px;
  background: linear-gradient(to right,transparent,var(--red),transparent);
  margin: 40px auto;
  opacity: 0.6;
}

.separator::after {
  content: "❦";
  display: block;
  text-align: center;
  margin-top: -10px;
  font-size: 14px;
  color: var(--red);
}

/* ══════════════════════════════════════════════
   --------- BOTÓN MÚSICA ---------
══════════════════════════════════════════════ */

.music-btn {
  display: none;
  position: fixed;
  top: 15px;
  right: 15px;
  z-index: 99999;

  background: rgba(255,255,255,0.85);
  border: none;
  border-radius: 50%;

  width: 45px;
  height: 45px;

  font-size: 20px;
  cursor: pointer;

  box-shadow: 0 4px 10px rgba(0,0,0,0.15);

  align-items: center;
  justify-content: center;

  padding: 0; /* importante */

}

/* pequeño efecto */
.music-btn:hover {
  transform: scale(1.1);
}


/* ══════════════════════════════════════════════
   TARJETA SALE DEL SOBRE - COPILOT
══════════════════════════════════════════════ */

#invitation-card {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, 50%) scale(0.8);
  opacity: 0;
  transition: all 1s ease;
}

#invitation-card.show {
  transform: translate(-50%, -20%) scale(1);
  opacity: 1;
}

.card-inner {
  background: rgba(255,255,255,0.85);
  padding: 40px;
  border-radius: 15px;
  text-align: center;
}

/* ══════════════════════════════════════════════
   SOBRE — PANTALLA DE APERTURA - COPILOT
══════════════════════════════════════════════ */

#envelope-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  background-image: url('../img/fondo-textura.jpg');
  background-size: 100% auto;
  background-repeat: repeat-y;
  background-position: top center;
  pointer-events: auto;
}

#envelope-screen.hidden {
  pointer-events: none;
}

#envelope-screen.fade-out {
  opacity: 0;
  transition: opacity 0.8s ease;
}

/* CONTENEDOR */
#envelope-wrapper {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  -webkit-tap-highlight-color: transparent;
}

/* SOBRE */
#envelope-img {
  width: min(420px, 90vw);
  position: relative;
  z-index: 2;
  cursor: pointer;
  transition: transform 0.35s ease;
  animation: floatEnvelope 3s ease-in-out infinite;
  -webkit-tap-highlight-color: transparent; 
  user-select: none;
  -webkit-user-drag: none;

}

/* TARJETA (oculta dentro) */
#card {  
  position: absolute;
  top: 58%;
  left: 50%;
  transform: translate(-50%, 40%);
  width: 85%;
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(6px);
  padding: 25px;
  border-radius: 18px;
  opacity: 0;
  z-index: 1;
  transition: all 0.8s ease;
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

/* TEXTO TARJETA */
#card h1 {
  font-family: var(--font-title);
  font-size: 2.2rem;
  color: var(--red);

}

#card p { 
  font-family: var(--font-body);
  font-size: 1.1rem;
  letter-spacing: 1px;
}

/* HINT */
.env-hint {
  margin-top: 15px;
  opacity: 0.6;
}

/* ESTADO ABIERTO */

#envelope-wrapper.open #envelope-img {
  animation: none;
  transform: translateY(-30px) scale(1.05);
  opacity: 0;
  filter: blur(4px);
  transition: 
    transform 0.8s ease,
    opacity 0.6s ease,
    filter 0.8s ease;
}

#envelope-img:active {
  transform: scale(0.9);
}

#envelope-wrapper.open #card {  
  opacity: 1;
  transform: translate(-50%, -80%);
}

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



/* ══════════════════════════════════════════════
   CONTENIDO PRINCIPAL
══════════════════════════════════════════════ */

#main-content {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.9s ease;
}

#main-content.visible {
  opacity: 1;
  transform: translateY(0);
}

#main-content.hidden {
  opacity: 0;
  pointer-events: none;
}

/* ══════════════════════════════════════════════
   1. HERO
══════════════════════════════════════════════ */


#hero {
  position: relative;
}

.hero-inner {
  position: relative;
}

.hero-img {
 
  width: 100%;
  height: 90vh;
  object-fit: cover;
  object-position: center 30%;
}

@media (max-width: 768px) {

  .hero-img {
  
    width: 100%;
    height: auto;
    max-height: 70vh;  
    object-fit: contain;       
    display: block;
    margin: 0 auto;
  }
}


.hero-text {
  font-family: var(--font-title);
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: #ffffff;
  text-shadow: 
    0 2px 8px rgba(0,0,0,0.6),
    0 4px 20px rgba(0,0,0,0.4);
}

.hero-text h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  white-space: nowrap
}

.hero-text p {
  font-size: 1.5rem;
  letter-spacing: 2px;
}


/* ══════════════════════════════════════════════
   2. FECHA — ¡Nos casamos!
══════════════════════════════════════════════ */
#fecha {
  padding: clamp(3rem, 8vw, 5rem) clamp(1.5rem, 6vw, 5rem);
  text-align: center;
}

#fecha .title-script {
  font-size: clamp(3rem, 10vw, 6.5rem);
  margin-bottom: 2rem;
}

.fecha-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.fecha-month {
  font-size: clamp(3rem, 8vw, 5rem);
  margin-bottom: 0.25rem;
}

.fecha-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 5vw, 4rem);
  width: 100%;
  max-width: 600px;
}

.fecha-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.fecha-col--center .fecha-item {
  font-size: clamp(3rem, 8vw, 5rem);
}

.fecha-line {
  width: clamp(80px, 20vw, 180px);
  height: 1.5px;
  background: var(--dark);
}

.fecha-item {
  font-family: var(--font-body);
  font-size: clamp(1.2rem, 3.5vw, 2rem);
  color: var(--dark);
  white-space: nowrap;
}

.fecha-year {
  font-size: clamp(3rem, 8vw, 5rem);
  margin-top: 0.25rem;
}

/* ══════════════════════════════════════════════
   BIENVENIDA y GALERIA
══════════════════════════════════════════════ */

.bienvenida-header {
  text-align: center;
  margin-bottom: 40px;
}

.bienvenida-header h2 {
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  line-height: 1.1;
}


@media (max-width: 768px) {

.bienvenida-layout {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: clamp(15px, 3vw, 30px);
    max-width: 900px;
    margin: 0 auto;
    align-items: center;
  }

.bienvenida-gallery {
    margin-left: 0;
  }

.bienvenida-gallery img {
    width: 100%;
    max-width: clamp(90px, 14vw, 130px);
  }

.bienvenida-texto {
    max-width: 100%;
    min-width: 183px;
  }

.bienvenida-texto p {
    /*font-size: clamp(1.4rem, 3vw, 1.8rem);*/
    line-height: 1.8;
    min-width: 183px;
  }

.bienvenida-texto h2 {
    font-size: 2.2rem;
  }

.bienvenida-header h2 {
    font-size: 2.4rem;
  }
}

.bienvenida-layout {   
  display: grid; 
  grid-template-columns: minmax(100px, 180px) 1fr;
  gap: clamp(15px, 4vw, 40px);
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.bienvenida-gallery {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.bienvenida-gallery img {
  width: 100%;
  max-width: 140px;
  border-radius: 8px;
}


.bienvenida-texto {
  max-width: 650px;
  text-align: center;
  margin: 0 auto;
}

.bienvenida-texto h2 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: 20px;
}

.bienvenida-texto p {
  font-family: var(--font-body);
  line-height: 1.8;
  max-width: 100%;
  margin: 0 auto;
}

/* ══════════════════════════════════════════════
   3-4. CEREMONIA Y HACIENDA — layout imagen+texto
══════════════════════════════════════════════ */
#ceremonia .title-script,
#hacienda .title-script {
  margin-bottom: 2.5rem;
}


@media (max-width: 768px) {

  #ceremonia {
    padding-bottom: 20px !important;
  }

  #hacienda {
    padding-top: 20px !important;
  }

}


#hacienda {
  padding-top: 20px !important;
}

#ceremonia {
  padding-bottom: 20px !important;
}


.venue-layout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(2rem, 5vw, 5rem);
  max-width: 1100px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.venue-text {
  flex: 1 1 320px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  /*gap: 1.5rem;*/
  gap: 1px;
}

.venue-img-wrap {
  flex: 1 1 320px;
  max-width: 480px;
}

.venue-img {
  width: 100%;
  border-radius: 8px;
  /* Efecto acuarela: sin bordes duros si la imagen tiene transparencia */
}

.iglesia-img {
  max-width: 550px;
}

/* Pin dorado */
.pin-link {
  display: inline-block;
  padding: 10px;
  transform: translateY(-5px);
  align-items: center;
  align-self: center;
  margin-top: 1px;
  gap: 2px;
  transition: transform 0.2s ease;
  max-width: fit-content;
  border-radius: 50%;
}

.pin-link:hover { transform: scale(1.1); }

.pin-icon {
  width: 56px;
  margin-top: 1px;
  height: 80px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
  transition: transform 0.2s ease;
}

.pin-icon:hover {
  transform: scale(1.1);
}


/* ══════════════════════════════════════════════
   5. ASISTENCIA
══════════════════════════════════════════════ */
#asistencia .title-script { margin-bottom: 2rem; }

.asistencia-text {
  max-width: 780px;
  margin: 0 auto 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-btn-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.btn-form {
  padding: 18px 30px;
  background: var(--sage);
  color: white;
  border-radius: 50px;
  font-size: 1.6rem;
  display: inline-flex;
  align-items: center;
  gap: 15px;
  justify-content: center;
  height: 60px;
  width: 370px;
  position: relative;
  overflow: visible;
}

.btn-text {
  padding-right: 30px; /* hueco para la pluma */
}

.pluma-icon {
  height: 100%;
  max-height: 100px;
  width: auto;
  transform: translateY(1px);
  position: absolute;   /* 👈 ya no afecta al tamaño del botón */
  right: 20px;          /* posición dentro del botón */
  top: 70%;
  transform: translateY(-50%);
  height: 100px;         /* 👈 ahora puedes hacerla grande */
  width: auto;
  pointer-events: none; /* 👈 no bloquea el click */
}

.btn-form:hover .pluma-icon {
  transform: translateY(-50%) translateX(3px);
}

/* ══════════════════════════════════════════════
   6. INFORMACION DE LA BODA
══════════════════════════════════════════════ */

.gallery-three {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
  margin-bottom: 30px;
}

.gallery-three img {
  width: 30%;
  max-width: 180px;
  border-radius: 10px;
}

.info-text p {
  margin-bottom: 5px;
}

.info-text strong {
  color: var(--red);
  display: block;
  margin-top: 30px;
}

.sibaritas {
  display: block;
  margin-top: 30px;
}

.contacto {
  display: block;
  margin-top: 10px;
}

/* ══════════════════════════════════════════════
  CONTADOR
══════════════════════════════════════════════ */

.countdown-grid {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.countdown-block {
  background: rgba(139, 111, 71, 0.85);
  color: white;
  padding: 20px 25px;
  border-radius: 15px;
  text-align: center;
  min-width: 90px;
}

.cd-num {
  font-size: 2.8rem;
  display: block;
  font-weight: bold;
  font-size: clamp(1.8rem, 6vw, 4rem);
}

.cd-label {
  font-size: 0.9rem;
  letter-spacing: 1px;
  font-size: 0.7rem;
}


.countdown-clean {
  
  /*display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: nowrap;
  margin-top: 30px;*/
  
  font-size: initial;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 30px;
  text-align: center;

}

/* CONTENEDOR INDIVIDUAL */
.countdown-clean div {
  text-align: center;
}

/* NÚMEROS */
.cd-num {
  display: block;
  font-family: 'Great Vibes', cursive;
  font-size: clamp(1.8rem, 5vw, 3rem);
  color: var(--red);
  line-height: 1;
}

/* TEXTO */
.cd-label {
  font-family: var(--font-title);
  font-size: 1rem;
  letter-spacing: 1px;
  color: var(--gold);
  opacity: 0.9;
}


.countdown-clean div::after {
  content: "";
  display: block;
  width: 40px;
  height: 1px;
  background: var(--red);
  margin: 8px auto 0;
  opacity: 0.4;
}

.countdown-subtext {
  margin-top: 30px;
}