/* ==========================================================================
   DESIGN SYSTEM - CLARA 1 AÑITO (RAPUNZEL / ENREDADOS)
   ========================================================================== */

:root {
    /* Color Palette - Rapunzel Magic */
    --purple-dark: #6a3a7c;
    --purple-light: #9d75b3;
    --purple-pastel: #e4d7ea;
    --gold: #f4d03f;
    --gold-light: #fbeea4;
    --pink-pastel: #fce8f3;
    --text-color: #4a3b52;
    --text-light: #8b7d91;
    --white: #ffffff;
    
    /* Typography */
    --font-script: 'Great Vibes', cursive;
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Montserrat', sans-serif;
    
    /* Utilities */
    --shadow-soft: 0 10px 30px rgba(106, 58, 124, 0.15);
    --shadow-gold: 0 5px 25px rgba(244, 208, 63, 0.4);
    --border-radius-lg: 30px;
    --border-radius-sm: 15px;
    --transition: all 0.4s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--text-color);
    background-color: var(--pink-pastel);
    line-height: 1.6;
    overflow-x: hidden;
    /* Soft glowing background */
    background: linear-gradient(135deg, var(--pink-pastel) 0%, var(--white) 100%);
}

/* ================== MUSIC OVERLAY ================== */
.music-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--purple-pastel);
    background-image: radial-gradient(circle at center, rgba(244, 208, 63, 0.2) 0%, transparent 60%);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 1s ease, visibility 1s ease;
}

.music-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

.overlay-content {
    text-align: center;
    padding: 60px 40px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 40px;
    box-shadow: var(--shadow-gold);
    max-width: 450px;
    border: 2px solid var(--gold);
    backdrop-filter: blur(10px);
}

.overlay-title {
    font-family: var(--font-script);
    font-size: 5rem;
    color: var(--purple-dark);
    margin-bottom: 10px;
    text-shadow: 2px 2px 5px rgba(244, 208, 63, 0.5);
    font-weight: 400;
}

.overlay-content p {
    margin-bottom: 35px;
    font-size: 1.1rem;
    color: var(--text-color);
    font-family: var(--font-serif);
    font-style: italic;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--purple-light), var(--purple-dark));
    color: var(--white);
    padding: 15px 40px;
    border: none;
    border-radius: 30px;
    font-family: var(--font-sans);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-gold);
    background: linear-gradient(135deg, var(--gold), #d4af37);
    color: var(--purple-dark);
}

.btn-text {
    display: block;
    margin: 25px auto 0;
    background: none;
    border: none;
    color: var(--text-light);
    font-family: var(--font-sans);
    font-weight: 500;
    text-decoration: underline;
    cursor: pointer;
    transition: var(--transition);
}

.btn-text:hover {
    color: var(--purple-dark);
}

/* ================== NAVIGATION ================== */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: var(--transition);
    background: transparent;
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 5px 20px rgba(106, 58, 124, 0.1);
}

.nav-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.nav-logo {
    font-family: var(--font-serif);
    font-size: 24px;
    color: var(--purple-dark);
    font-weight: 700;
    font-style: italic;
}

.nav-logo span {
    color: var(--gold);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    transition: var(--transition);
}

#navbar.scrolled .nav-links a {
    color: var(--purple-dark);
}

.nav-links a:hover {
    color: var(--gold) !important;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--purple-dark);
    transition: var(--transition);
}

/* Mobile Nav */
.mobile-nav {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100vh;
    z-index: 2000;
    pointer-events: none;
}
.mobile-nav.open { pointer-events: auto; }
.mobile-nav-backdrop {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(8px);
    opacity: 0; transition: opacity 0.4s;
}
.mobile-nav.open .mobile-nav-backdrop { opacity: 1; }

.mobile-nav-panel {
    position: absolute;
    top: 0; right: -320px;
    width: 300px; height: 100%;
    background: var(--purple-pastel);
    border-left: 2px solid var(--gold);
    padding: 60px 30px;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 30px rgba(106, 58, 124, 0.2);
}

.mobile-nav.open .mobile-nav-panel { right: 0; }

.mobile-close {
    position: absolute;
    top: 25px; right: 25px;
    background: none; border: none; color: var(--purple-dark); cursor: pointer;
}

.mobile-logo {
    display: block;
    font-family: var(--font-script);
    font-size: 40px;
    color: var(--purple-dark);
    margin-bottom: 40px;
    text-align: center;
}

.mobile-nav-panel ul {
    list-style: none;
    display: flex; flex-direction: column; gap: 25px;
    text-align: center;
}

.mobile-nav-panel a {
    color: var(--purple-dark); text-decoration: none; font-size: 14px;
    text-transform: uppercase; letter-spacing: 2px; font-weight: 600;
    transition: var(--transition);
}
.mobile-nav-panel a:hover { color: var(--white); }

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hamburger { display: flex; }
}

/* ================== LAYOUT ================== */
.container {
    max-width: 850px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 100px 0;
    text-align: center;
    position: relative;
}

.section-eyebrow {
    font-family: var(--font-sans);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--purple-light);
    margin-bottom: 15px;
    font-weight: 600;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 42px;
    color: var(--purple-dark);
    margin-bottom: 50px;
    font-style: italic;
    font-weight: 400;
}

.light .section-eyebrow { color: var(--gold-light); }
.light.section-title { color: var(--white); }

/* ================== HERO SECTION ================== */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.9) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 0 20px;
    margin-top: 120px;
}

.hero-eyebrow {
    font-size: 14px;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--text-color);
    margin-bottom: 20px;
}

.hero-name {
    font-family: var(--font-script);
    font-size: 110px;
    color: var(--purple-dark);
    line-height: 1;
    margin-bottom: 10px;
    font-weight: 400;
    text-shadow: 0px 4px 15px rgba(244, 208, 63, 0.4);
}

.hero-subtitle {
    font-family: var(--font-serif);
    font-size: 26px;
    color: var(--purple-light);
    margin-bottom: 20px;
    font-style: italic;
}

.hero-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 25px 0;
    color: var(--gold);
    font-size: 28px;
}

.line-gold {
    width: 60px;
    height: 1px;
    background-color: var(--gold);
}

.hero-date {
    font-family: var(--font-sans);
    font-size: 20px;
    color: var(--white);
    letter-spacing: 4px;
    margin-bottom: 50px;
    font-weight: 700;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
}

.hero-cta {
    display: inline-block;
    padding: 18px 50px;
    background: var(--purple-dark);
    color: var(--white);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    transition: var(--transition);
}

.hero-cta:hover {
    background: var(--gold);
    color: var(--purple-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(244, 208, 63, 0.6);
}

/* ================== COUNTDOWN ================== */
.countdown-section {
    background: var(--white);
    background-image: radial-gradient(circle at right, var(--pink-pastel) 0%, transparent 50%);
}

.countdown {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cd-item {
    background: var(--white);
    border: 1px solid var(--gold-light);
    width: 90px; height: 100px;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.cd-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 5px;
    background: linear-gradient(90deg, var(--purple-light), var(--gold));
}

.cd-num {
    font-family: var(--font-serif);
    font-size: 36px;
    color: var(--purple-dark);
    line-height: 1.1;
}

.cd-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-light);
    margin-top: 5px;
}

/* ================== EVENTO ================== */
.evento {
    background: linear-gradient(135deg, var(--purple-dark) 0%, #4a2559 100%);
    color: var(--white);
    position: relative;
}

/* Floating lantern dots in background */
.evento::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
      radial-gradient(circle at 20% 30%, rgba(244, 208, 63, 0.4) 2px, transparent 4px),
      radial-gradient(circle at 80% 60%, rgba(244, 208, 63, 0.4) 3px, transparent 6px),
      radial-gradient(circle at 40% 80%, rgba(244, 208, 63, 0.3) 2px, transparent 5px);
    pointer-events: none;
}

.evento-grid {
    display: grid;
    gap: 30px;
    margin-top: 50px;
    position: relative;
    z-index: 2;
}

.evento-grid.single-card {
    max-width: 450px;
    margin: 50px auto 0;
}

.evento-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 50px 40px;
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    transition: var(--transition);
}

.evento-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
    box-shadow: 0 10px 40px rgba(244, 208, 63, 0.15);
}

.evento-icon {
    font-size: 50px;
    color: var(--gold);
    margin-bottom: 25px;
    filter: drop-shadow(0 0 10px rgba(244, 208, 63, 0.5));
}

.evento-card h3 {
    font-family: var(--font-serif);
    font-size: 28px;
    color: var(--white);
    margin-bottom: 20px;
    font-style: italic;
}

.evento-time {
    color: var(--gold-light);
    font-weight: 400;
    font-size: 16px;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.evento-place {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 5px;
}

.evento-address {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    margin-bottom: 30px;
}

.evento-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--gold);
    color: var(--purple-dark);
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 15px 30px;
    border-radius: 30px;
    transition: var(--transition);
}

.evento-link:hover {
    background: var(--white);
    transform: scale(1.05);
}

/* ================== GALERÍA ================== */
.galeria {
    background: var(--pink-pastel);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 50px;
}

.gallery-item {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    height: 350px;
    box-shadow: var(--shadow-soft);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-caption {
    position: absolute;
    bottom: 0; left: 0; width: 100%;
    padding: 25px 20px;
    background: linear-gradient(transparent, rgba(106, 58, 124, 0.9));
    color: var(--white);
    font-family: var(--font-serif);
    font-size: 20px;
    font-style: italic;
    transform: translateY(10px);
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
    opacity: 1;
}

/* ================== REGALITOS ================== */
.regalos-section {
    background: var(--white);
}

.regalos-card {
    background: var(--white);
    border: 1px solid var(--purple-pastel);
    border-radius: var(--border-radius-lg);
    padding: 60px 40px;
    max-width: 650px;
    margin: 0 auto;
    box-shadow: var(--shadow-soft);
}

.regalo-icon {
    font-size: 45px;
    color: var(--purple-light);
    margin-bottom: 20px;
}

.regalos-card p {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 35px;
}

.talles-box {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: left;
    background: var(--pink-pastel);
    padding: 30px;
    border-radius: var(--border-radius-sm);
}

.talle-item {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 15px;
    color: var(--text-color);
}

.talle-item i {
    font-size: 24px;
    color: var(--gold);
    background: var(--white);
    padding: 12px;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.talle-item strong {
    color: var(--purple-dark);
    font-weight: 600;
}

/* ================== RSVP ================== */
.rsvp {
    background: var(--white);
    position: relative;
}

.rsvp-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 400px;
    background: var(--purple-pastel);
    z-index: 1;
    border-radius: 0 0 50% 50% / 50px;
}

.rsvp .container {
    position: relative;
    z-index: 2;
}

.rsvp .section-title { color: var(--purple-dark); }
.rsvp .section-eyebrow { color: var(--purple-dark); }
.rsvp-sub { color: var(--text-light); margin-bottom: 40px; }

.rsvp-form {
    max-width: 550px;
    margin: 0 auto;
    background: var(--white);
    padding: 50px 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 15px 40px rgba(106, 58, 124, 0.1);
    border: 1px solid var(--pink-pastel);
}

.form-group {
    margin-bottom: 25px;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--purple-light);
    margin-bottom: 10px;
}

.form-group input[type="text"], .form-group select {
    width: 100%;
    padding: 16px 20px;
    background: var(--pink-pastel);
    border: 1px solid transparent;
    border-radius: var(--border-radius-sm);
    color: var(--text-color);
    font-family: var(--font-sans);
    font-size: 14px;
    transition: var(--transition);
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: var(--purple-light);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(157, 117, 179, 0.1);
}

.rsvp-btn {
    width: 100%;
    padding: 20px;
    background: var(--purple-dark);
    color: var(--white);
    border: none;
    border-radius: 40px;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    transition: var(--transition);
}

.rsvp-btn:hover {
    background: var(--gold);
    color: var(--purple-dark);
    box-shadow: var(--shadow-gold);
    transform: translateY(-2px);
}

/* ================== FOOTER ================== */
.footer {
    background: var(--white);
    padding: 60px 20px;
    text-align: center;
    color: var(--text-color);
}

.footer-icon {
    font-size: 35px;
    color: var(--gold);
    margin-bottom: 15px;
}

.footer-name {
    font-family: var(--font-script);
    font-size: 45px;
    color: var(--purple-dark);
    margin-bottom: 5px;
}

.footer-date {
    font-family: var(--font-serif);
    font-size: 16px;
    color: var(--purple-light);
    letter-spacing: 4px;
    margin-bottom: 25px;
}

.footer-quote {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 40px;
}

.footer-credit {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #ccc;
}

/* ================== MUSIC TOGGLE ================== */
.music-toggle-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--white);
    border: 1px solid var(--purple-pastel);
    color: var(--purple-dark);
    font-size: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1000;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
}

.music-toggle-btn.visible {
    opacity: 1;
    visibility: visible;
}

.music-toggle-btn:hover {
    transform: scale(1.1);
    border-color: var(--gold);
    color: var(--gold);
}

/* Animation Utilities */
[data-aos] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0);
}
