/* ===================== VARIABLES ===================== */
:root {
  --primary: #2c2c2c;
  --secondary: #e5e5e5;
  --accent: #c9a97a;
  --font-main: 'Playfair Display', serif;
  --font-script: 'Jalry';
}

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

body {
  font-family: var(--font-main);
  color: var(--primary);
  line-height: 1.6;
  
}

@keyframes shine {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;

  background: linear-gradient(
    120deg,
    rgba(255,255,255,0.02) 0%,
    rgba(255,255,255,0.04) 20%,
    rgba(255,255,255,0.25) 50%, /* brillo fuerte */
    rgba(255,255,255,0.04) 80%,
    rgba(255,255,255,0.02) 100%
  );

  background-size: 300% 300%;
  animation: shine 10s linear infinite;

  mix-blend-mode: overlay;
  opacity: 0.7;
}



.section {
  padding: 80px 20px;
  text-align: center;
  
}

.section.dark {
  background: var(--primary);
  color: white;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 30px;
}

@font-face {
  font-family: 'Jalry';
  src: url('fonts/Jelry.otf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

/* ===================== HERO ===================== */
.hero {
  height: 80vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero .overlay {
  position: absolute;
  inset: 0;                 
  background: rgba(255, 255, 255, 0);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: rgb(3, 0, 0);
}


.nombre {
  font-family: var(--font-script);
  font-size: 6rem;
}

.edad {
  font-size: 2rem;
  margin-top: 10px;
}

.fecha {
  margin-top: 20px;
  font-size: 1.2rem;
}

/* ===================== BOTONES ===================== */
.btn {
  display: inline-block;
  padding: 10px 20px;
  margin-top: 20px;
  border: 1px solid var(--accent);
  color: var(--accent);
  text-decoration: none;
  transition: 0.3s;
}

.btn:hover {
  background: var(--accent);
  color: white;
}

/* ===================== COUNTDOWN ===================== */
.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 600px;
  margin: auto;
}

.countdown-grid span {
  font-size: 2.5rem;
  display: block;
}

/* ===================== GALERIA ===================== */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}

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

/* ===================== FORMULARIOS ===================== */
form {
  max-width: 400px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

input, textarea {
  padding: 10px;
  border: 1px solid #ccc;
  width: 100%;
}

/* ===================== MUSIC CONTROL ===================== */
.music-control {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
}

#play-pause {
  width: 50px;
  height: 50px;
  background: var(--accent);
  border-radius: 50%;
  cursor: pointer;
}

/* ===================== ICONOS DE SECCION ===================== */

.section-icon {
  width: 70px;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(30px) scale(0.9);
  transition: all 0.8s ease;
  filter: brightness(0) invert(1) opacity(0.8);
}


.section:hover .section-icon {
  transform: scale(1.1);
  opacity: 1;
  filter: grayscale(0%);
}

.section-icon.visible {
  animation: float 4s ease-in-out infinite;
  opacity: 1;
  transform: translateY(0) scale(1);

}

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

.dresscode-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  max-width: 900px;
  margin: 40px auto 0;
}

.dresscode-text {
  text-align: left;
  font-size: 1.1rem;
  line-height: 1.8;
}

.dresscode-img img {
  width: 50%;
  border-radius: 10px;
}

@media (max-width: 768px) {
  .dresscode-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .dresscode-text {
    text-align: center;
  }
}

/* Inputs generales */
input,
textarea {
  font-family: var(--font-main);
  font-size: 1rem;
  padding: 12px 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  width: 100%;
  background: #fff;
  color: #2c2c2c;
}

/* Placeholder consistente */
input::placeholder,
textarea::placeholder {
  font-family: var(--font-main);
  color: #999;
  opacity: 1; /* importante para Firefox */
}

/* Opcional: efecto elegante */
input:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 8px rgba(201, 169, 122, 0.3);
}

#form-msg {
  margin-top: 10px;
  font-size: 0.9rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

#form-msg.show {
  opacity: 1;
}

#form-msg.success {
  color: #8bc34a;
}

#form-msg.error {
  color: #e53935;
}

.section-fixed-bg {
  background-image: url("img/foto_xv.jpg");
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  position: relative;
}

/* overlay */
.section-fixed-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(201, 169, 122, 0.25); /* dorado suave */

}

/* contenido arriba */
.section-fixed-bg .container,
.section-fixed-bg .section-icon {
  position: relative;
  z-index: 2;
}


@media (max-width: 768px) {
  .section-fixed-bg {
    background-attachment: scroll;
  }
}

.section-fixed-bg .container {
  background: rgba(255, 255, 255, 0.08); /* transparencia suave */
  backdrop-filter: blur(12px);           /* efecto vidrio */
  -webkit-backdrop-filter: blur(12px);   /* soporte Safari */

  border: 1px solid rgba(255, 255, 255, 0.2);

  border-radius: 20px;
  padding: 40px;

  box-shadow: 
    0 8px 30px rgba(0,0,0,0.25),
    inset 0 0 20px rgba(255,255,255,0.05);
}

.section-fixed-bg .container::before {
  border-radius: 20px;
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 20%,
    rgba(255,255,255,0.25),
    transparent 80%,
       to bottom,
    rgba(0,0,0,0.2),
    rgba(0,0,0,0.5)
  );

  opacity: 0.1;
  pointer-events: none;
}
.section-fixed-bg .container {
  
  border-radius: 20px;
  padding: 40px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
}
.section-fixed-bg .section-title,
.section-fixed-bg p,
.section-fixed-bg h4 {
 
  color: rgb(3, 0, 0);
 /* text-shadow: 0 2px 10px rgba(0,0,0,0.5);*/
}
.section-decorada {
  position: relative;
  padding: 100px 20px;
  text-align: center;
  overflow: hidden;
}

/* HOJA IZQUIERDA (arriba) */
.section-decorada::before {
  content: "";
  position: absolute;
  top: 20px;            /* 🔽 baja un poco */
  left: 0;
  width: 500px;
  height: 180px;

  background-image: url('img/hojas.png');
  background-repeat: no-repeat;
  background-size: contain;
  background-position: top left;

  opacity: 0.5;
  pointer-events: none;
}

/* HOJA DERECHA (abajo) */
.section-decorada::after {
  content: "";
  position: absolute;
  top: 20px;
  right: 0;

  width: 500px;
  height: 180px;

  background-image: url('img/hojas.png');
  background-repeat: no-repeat;
  background-size: contain;
  background-position: top right;

  transform: scaleX(-1); /* 🔥 clave: efecto espejo */

  opacity: 0.5;
  pointer-events: none;
}


/* CONTENIDO SIEMPRE ARRIBA */
.section-decorada .container {
  position: relative;
  z-index: 2;
}

@media (max-width: 768px) {
  .section-decorada {
    padding: 80px 15px;
  }

  .section-decorada::before,
  .section-decorada::after {
    width: 110px;
    height: 110px;
    opacity: 0.4;
  }

  .section-decorada::before {
    left: -10px;  /* leve ajuste visual */
  }

  .section-decorada::after {
    right: -10px;
  }
}





