/* ===================================================== */
/* ================== CONFIGURACIÓN BASE ================= */
/* ===================================================== */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Playfair Display', serif;
  background: #0b0b0b;
}


/* ===================================================== */
/* ==================== COVER INICIAL =================== */
/* ===================================================== */

#cover {
  position: fixed;
  inset: 0;
  z-index: 5;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  color: #f3f3f3;
  transition: opacity 0.7s ease;
}

.subtitle {
  letter-spacing: 2px;
  margin: 0 0 18px 0;
  font-size: 14px;
  opacity: 0.9;
}

#openBtn {
  padding: 14px 40px;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.95);
  color: #111;
  font-size: 14px;
  letter-spacing: 3px;

  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#openBtn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}

#openBtn:disabled {
  cursor: default;
}

/* Ornamento animado */

.ornament {
  position: absolute;
  inset: 0;
  pointer-events: none;

  background:
    radial-gradient(circle at 10% 10%, rgba(255,255,255,0.06), transparent 40%),
    radial-gradient(circle at 90% 10%, rgba(255,255,255,0.05), transparent 42%),
    radial-gradient(circle at 10% 90%, rgba(255,255,255,0.04), transparent 45%),
    radial-gradient(circle at 90% 90%, rgba(255,255,255,0.03), transparent 48%),
    radial-gradient(circle at 50% 50%, rgba(255,255,255,0.025), transparent 60%);

  animation: ornamentFloat 14s ease-in-out infinite alternate;
}

@keyframes ornamentFloat {
  from { transform: scale(1) translateY(0); }
  to   { transform: scale(1.03) translateY(-12px); }
}


/* ===================================================== */
/* ================== EFECTO DISOLUCIÓN ================= */
/* ===================================================== */

#dissolve {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;

  z-index: 6;
  pointer-events: none;
  opacity: 0;

  transition: opacity 0.15s ease;
}


/* ===================================================== */
/* ================== INVITACIÓN BASE =================== */
/* ===================================================== */

#invitation {
  min-height: 100vh;
  background: #0f0f0f;
  color: #f2f2f2;
  padding-top: 90px;
}

.hidden { display: none; }

.fade-in {
  animation: fadeIn 1.1s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ===================================================== */
/* ==================== NAVEGACIÓN ====================== */
/* ===================================================== */

.tabs {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 10;

  background: #0b0b0b;
  backdrop-filter: blur(8px);

  display: flex;
  justify-content: center;
  gap: 14px;
  padding: 14px 12px;

  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.tabBtn {
  background: transparent;
  border: none;

  padding: 10px 18px;
  border-radius: 18px;

  font-size: 14px;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.75);

  cursor: pointer;
  transition: all 0.25s ease;
}

.activeBtn {
  background: rgba(255,255,255,0.08);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.2);
}

.tab { display: none; }
.tab.active { display: block; }


/* ===================================================== */
/* ==================== CARD GENERAL ==================== */
/* ===================================================== */

.card {
  max-width: 760px;
  margin: 0 auto;
  padding: 30px 18px 60px;
  text-align: center;
}

h1 {
  margin: 18px 0 10px;
  font-size: 44px;
  letter-spacing: 1px;
}

h2 {
  margin: 0;
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  opacity: 0.65;
}

h3 {
  margin-top: 18px;
  margin-bottom: 8px;
}

.bold { font-weight: 600; }

.link {
  display: inline-block;
  margin-top: 14px;
  color: #ffffff;
  text-decoration: underline;
}


/* ===================================================== */
/* ===================== EVENTO ========================= */
/* ===================================================== */

.tab.evento-hero.active {
  min-height: 100vh;

  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;

  text-align: center;
  padding: 140px 20px 60px;
}

#evento {
  margin-top: -60px;
}

.evento-overline {
  font-size: 13px;
  letter-spacing: 4px;
  text-transform: uppercase;
}

.evento-xv {
  font-size: 64px;
  letter-spacing: 8px;
  margin: 0;
  font-weight: 600;
}

.name {
  font-family: 'Cinzel Decorative', serif;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 16px;
  margin-bottom: 12px;
  color: #8c8c8c;
}

.evento-fecha {
  font-family: 'Playfair Display', serif;
  font-size: 25px;
  letter-spacing: 2px;
  margin-top: 30px;
}

.evento-frase {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 25px;
  margin-top: 14px;
  letter-spacing: 0.5px;
}

.evento-foto {
  width: 260px;
  border-radius: 14px;
  margin-top: 40px;
  margin-bottom: 30px;

  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  transition: transform 0.4s ease;
  filter: grayscale(20%) contrast(105%);
}

.evento-foto:hover {
  transform: scale(1.03);
}

/* Forzar blanco puro en evento */

#evento .evento-overline,
#evento .evento-fecha,
#evento .evento-frase,
#evento .evento-cruz {
  color: #ffffff;
}


/* ===================================================== */
/* ===================== FAMILIA ======================== */
/* ===================================================== */

.familia-section {
  padding-top: 80px;
  padding-bottom: 80px;
}

.familia-ornament {
  width: 260px;
  height: 2px;
  margin: 40px auto;

  background: linear-gradient(
    to right,
    transparent 0%,
    #444 20%,
    #111 50%,
    #444 80%,
    transparent 100%
  );
}

.familia-section h3 {
  font-size: 22px;
  margin-top: 40px;
  margin-bottom: 20px;
  font-weight: 600;
}

.familia-nombre {
  font-size: 20px;
  margin: 12px 0;
  letter-spacing: 1px;
}


/* ===================================================== */
/* ====================== LUGAR ========================= */
/* ===================================================== */

.lugar-section {
  padding-top: 40px;
  padding-bottom: 80px;
}

.lugar-titulo {
  font-size: 24px;
  margin-bottom: 10px;
}

.lugar-nombre {
  font-size: 24px;
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.lugar-link {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 15px;
}

.lugar-direccion {
  font-size: 14px;
  margin-bottom: 25px;
  opacity: 0.85;
}

/* Galería */

.lugar-galeria {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.lugar-img {
  width: 380px;
  border-radius: 12px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.25);
  transition: transform 0.4s ease;
}

.lugar-img:hover {
  transform: scale(1.04);
}


/* ===================================================== */
/* ======================= RSVP ========================= */
/* ===================================================== */

#rsvp.tab.active {
  min-height: 70vh;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#rsvp h3 {
  font-size: 32px;
  margin-bottom: 20px;
}

#rsvp p {
  font-size: 18px;
  max-width: 600px;
  margin-bottom: 30px;
}

.confirm {
  background: #ffffff;
  color: #000000;
  font-size: 16px;

  padding: 14px 28px;
  border-radius: 6px;
  border: none;

  cursor: pointer;
  transition: all 0.3s ease;
}

.confirm:hover {
  background: #e6e6e6;
  transform: scale(1.05);
}

#listaInvitados h4 {
  font-size: 22px;
  margin-bottom: 12px;
}

#listaInvitados p {
  font-size: 18px;
  margin: 4px 0;
  line-height: 1.3;
}

#confirmMsg {
  margin-top: 18px;
  font-size: 18px;
  opacity: 0;
  transition: opacity 0.5s ease;
}

#confirmMsg.visible {
  opacity: 1;
}


/* ===================================================== */
/* ================== ESQUINAS DECORATIVAS ============== */
/* ===================================================== */

.corner {
  position: fixed;
  width: 180px;
  pointer-events: none;
  z-index: 0;

  filter: invert(1);
  opacity: 0.85;
}

.corner-top-left  { top: 70px; left: 0; }
.corner-top-right { top: 70px; right: 0; transform: scaleX(-1); }
.corner-bottom-left  { bottom: 0; left: 0; transform: scaleY(-1); }
.corner-bottom-right { bottom: 0; right: 0; transform: scaleX(-1) scaleY(-1); }


/* ===================================================== */
/* ======================= RESPONSIVE =================== */
/* ===================================================== */

@media (max-width: 768px) {
  .corner { display: none; }
}

@media (max-width: 500px) {
  h1 { font-size: 34px; }
  h2 { font-size: 12px; }
  .tabs { justify-content: space-around; }

  .evento-xv {
    font-size: 44px;
    letter-spacing: 6px;
  }
}