/* Base Reset & Variables */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

:root {
    --bg-color: #f6f4f3; 
    --text-main: #484139; 
    --text-muted: #766a5d;
    --accent-gold: #64594f; 
    --border-light: rgba(140, 123, 100, 0.15);
}

/* Custom Text Highlight Selection */
::-moz-selection { background: rgba(140, 123, 100, 0.15); color: var(--text-main); }
::selection { background: rgba(140, 123, 100, 0.15); color: var(--text-main); }

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* TEXTURA DE PAPEL ALGODÓN ULTRA SUTIL GENERAL */
body::before {
    content: '';
    position: fixed; 
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        radial-gradient(rgba(140, 123, 100, 0.012) 1px, transparent 0),
        radial-gradient(rgba(140, 123, 100, 0.008) 1px, transparent 0);
    background-size: 8px 8px;
    background-position: 0 0, 4px 4px;
    pointer-events: none;
    z-index: 9998; 
}

/* Typography */
h1, h2, h3, h4, .monogram, .footer-signature, .quote, .welcome-monogram {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 100;
}

/* Welcome Overlay Layout */
.welcome-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
    background: #f4f1ea; /* Un tono ligeramente más cálido de sobre */
    z-index: 9999; 
    display: flex; justify-content: center; align-items: center; 
    transition: transform 1.3s cubic-bezier(0.76, 0, 0.24, 1), opacity 1.3s ease; 
    padding: 40px;
}
.welcome-overlay.dismissed {
    transform: translateY(-100%);
    opacity: 0;
}

/* TARJETA CON TEXTURA DE PAPEL RUGOSO CON RELIEVE */
.premium-paper-card {
    position: relative;
    width: 100%;
    max-width: 460px;
    padding: 70px 45px;
    background-color: #fffdfa; /* Blanco marfil de papel fino */
    
    /* Mix de sombras suaves y bordes para emular relieve real e imperfección orgánica */
    border: 1px solid rgba(140, 123, 100, 0.2);
    box-shadow: 
        inset 0 0 40px rgba(244, 241, 234, 0.5), /* Sombra interior suave */
        0 15px 35px rgba(140, 123, 100, 0.08); /* Caída en el fondo */
    
    /* Textura micro-porosa exclusiva e independiente para la tarjeta */
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="4" height="4"><circle cx="2" cy="2" r="1" fill="%238c7b64" fill-opacity="0.04"/></svg>');
    
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 2px;
}

/* Marco Letterpress (Efecto Imprenta Hundido) */
.letterpress-border {
    position: absolute;
    top: 15px; left: 15px; right: 15px; bottom: 15px;
    border: 1px solid rgba(140, 123, 100, 0.15);
    /* El truco de sombras para el efecto bajo relieve hundido nítido */
    box-shadow: 
        inset 1px 1px 2px rgba(0, 0, 0, 0.03), 
        1px 1px 0px rgba(255, 255, 255, 0.8);
    pointer-events: none;
}

/* Welcome Content Packaging */
.welcome-content {
    text-align: center;
    width: 100%;
    z-index: 2;
}

.welcome-monogram {
    font-size: 54px;
    color: var(--accent-gold);
    line-height: 1;
    margin-bottom: 25px;
    letter-spacing: 2px;
    opacity: 0;
    animation: calmReveal 1.2s ease-out 0.15s forwards;
}
.welcome-monogram .ampersand-serif {
    font-style: italic;
    font-size: 0.8em;
    opacity: 0.7;
}

.welcome-divider {
    width: 40px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--accent-gold), transparent);
    margin: 0 auto 25px;
    opacity: 0;
    animation: calmReveal 1.2s ease-out 0.35s forwards;
}

.premium-paper-card h2 {
    font-size: 26px; color: var(--text-main); margin-bottom: 12px; letter-spacing: 1px; line-height: 1.3;
    font-weight: 300; opacity: 0;
    animation: calmReveal 1.2s ease-out 0.55s forwards;
}
.premium-paper-card p {
    font-size: 11px; letter-spacing: 4px; color: var(--text-muted); margin-bottom: 45px; font-weight: 300;
    opacity: 0;
    animation: calmTracking 1.5s ease-out 0.75s forwards;
}

/* Cinematic Core Entry Animations */
@keyframes calmReveal {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes calmTracking {
    from { opacity: 0; letter-spacing: 1px; }
    to { opacity: 1; letter-spacing: 4px; }
}

/* Buttons con Shimmer Metálico Fluido */
.btn-elegant {
    padding: 14px 40px; background: transparent; color: var(--accent-gold); 
    border: 1px solid var(--accent-gold); font-family: 'Montserrat', sans-serif; 
    font-size: 11px; font-weight: 300; letter-spacing: 3px; text-transform: uppercase;
    cursor: pointer; position: relative; z-index: 1; overflow: hidden;
    transition: color 0.4s ease, transform 0.3s ease, box-shadow 0.4s ease; border-radius: 2px; text-decoration: none; display: inline-block;
}
.btn-elegant:hover { color: white; transform: translateY(-2px); box-shadow: 0 12px 25px rgba(140, 123, 100, 0.15); }
.btn-elegant::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: var(--accent-gold); z-index: -1; transform: scaleX(0); transform-origin: right;
    transition: transform 0.6s cubic-bezier(0.76, 0, 0.24, 1);
}
.btn-elegant:hover::before { transform: scaleX(1); transform-origin: left; }

.btn-elegant::after {
    content: ''; position: absolute; top: 0; left: -50%; width: 20%; height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg); animation: shimmerEffect 6s infinite ease-in-out;
}
@keyframes shimmerEffect {
    0% { left: -150%; }
    30% { left: 150%; }
    100% { left: 150%; }
}

.btn-outline {
    display: inline-block; margin-top: 25px; padding: 10px 25px; border: 1px solid var(--border-light); 
    color: var(--text-muted); text-decoration: none; font-size: 12px; letter-spacing: 1px; 
    text-transform: uppercase; transition: all 0.3s ease; border-radius: 2px;
}
.btn-outline:hover { border-color: var(--accent-gold); color: var(--accent-gold); background: #fff; }

/* Hero Section */
.hero-section { position: relative; height: 100vh; overflow: hidden; display: flex; align-items: center; justify-content: center;}
.hero-bg { position: absolute; top: 0; left: 0; width: 100%; height: 110%; background-size: cover; background-position: center 20%; filter: brightness(0.65); z-index: 1;}
.hero-overlay { position: relative; z-index: 2; text-align: center; color: white; padding: 0 20px; width: 100%;}
.monogram { font-size: 48px; letter-spacing: 6px; margin-bottom: 20px; opacity: 0.95; }
.hero-names { font-size: 68px; line-height: 1.1; margin-bottom: 15px; font-weight: 300; }
.hero-ampersand { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 0.85em; color: rgba(255,255,255,0.7); }
.hero-subtitle { font-family: 'Montserrat', sans-serif; font-size: 13px; letter-spacing: 4px; text-transform: uppercase; opacity: 0.8; margin-top: 25px;}
.scroll-indicator { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); z-index: 2; color: white; opacity: 0.7; cursor: pointer; animation: bounce 2s infinite; }

/* Main Container Smooth Transition Reveal Frame */
.container { 
    max-width: 900px; margin: 0 auto; padding: 0 20px; 
    opacity: 0; transform: translateY(25px); 
    transition: opacity 1.8s ease, transform 1.8s ease; 
}
.container.revealed { opacity: 1; transform: translateY(0); }

.section { padding: 60px 0; text-align: center; }
.section-title { font-size: 40px; color: var(--accent-gold); margin-bottom: 20px; letter-spacing: 1px; }
.section-text { font-size: 15px; max-width: 680px; margin: 0 auto; color: var(--text-muted); line-height: 1.85; font-weight: 300; }
.floral-ornament { text-align: center; padding: 16px 0; opacity: 0.5; }

/* Quotes */
.quote { font-size: 28px; line-height: 1.6; font-style: italic; color: var(--accent-gold); padding: 0 30px; }
.parents-names { display: flex; justify-content: center; gap: 64px; margin-bottom: 20px; }
.parents-col { display: flex; flex-direction: column; gap: 10px; }
.parents-col span { font-family: 'Montserrat', sans-serif; font-size: 13px; font-weight: 300; font-style: normal; letter-spacing: 2px; color: var(--text-main); text-transform: uppercase; }
@media (max-width: 480px) {
    .parents-names {
        flex-direction: column;
        align-items: center;
        gap: 18px;
    }
    .parents-col {
        align-items: center;
        text-align: center;
        gap: 6px;
    }
    .parents-col span {
        font-size: 11px;
        letter-spacing: 1px;
    }
}

/* Cards & Grid Containers */
.events-container { display: flex; gap: 25px; justify-content: center; margin-top: 30px; }
.event-card, .info-card {
    flex: 1; background: #fff; padding: 35px 28px; border: 1px solid var(--border-light);
    border-radius: 3px; text-align: center; transition: transform 0.4s ease;
}
.event-card:hover { transform: translateY(-3px); }
.event-icon { margin-bottom: 16px; }
.event-title, .info-card h4 { font-size: 25px; color: var(--accent-gold); margin-bottom: 14px; font-weight: 400; letter-spacing: 0.5px;}
.event-detail, .info-card p { font-size: 14px; margin-bottom: 9px; color: var(--text-main); font-weight: 300; }
.event-note { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 19px; color: var(--text-muted); margin-top: 14px; }
.highlight-text { font-weight: 400; color: var(--accent-gold); margin-top: 12px; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; }
.accent-text { color: var(--accent-gold); font-weight: 500; }

.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }

/* Countdown Setup */
.countdown-box { border: 1px solid var(--border-light); padding: 35px 20px; background: #fff; border-radius: 3px; }
.countdown-title { font-family: 'Montserrat', sans-serif; font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 22px; }
.countdown-grid { display: flex; justify-content: center; gap: 60px; }
.countdown-number { font-family: 'Cormorant Garamond', serif; font-size: 54px; color: var(--accent-gold); line-height: 1; margin-bottom: 5px; font-weight: 300; }
.countdown-label { font-size: 11px; text-transform: uppercase; letter-spacing: 2px; color: var(--text-muted); }

/* Bank Cards Interactive System */
.tap-hint { font-size: 11px; color: var(--text-muted); letter-spacing: 1px; margin-bottom: 25px; font-style: italic;}
.bank-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 20px; }
.bank-card {
    text-align: left; padding: 25px 28px; border: 1px solid var(--border-light); background: #fff;
    border-radius: 3px; cursor: pointer; transition: all 0.3s ease; position: relative;
}
.bank-card:hover { border-color: var(--accent-gold); background: #fafaf9; }
.bank-label { font-family: 'Cormorant Garamond', serif; font-size: 24px; color: var(--accent-gold); margin-bottom: 15px; border-bottom: 1px solid var(--border-light); padding-bottom: 10px; transition: color 0.3s ease; }
.bank-detail { font-size: 13px; margin-bottom: 8px; color: var(--text-main); font-weight: 300; letter-spacing: 0.3px;}

/* Custom Photos Framing */
.photo-frame { width: 100%; max-width: 620px; margin: 0 auto; padding: 16px; background: #fff; border: 1px solid var(--border-light); border-radius: 2px; }
.section-photo { padding: 20px 0; }
.hero-names br { display: none; }
@media (max-width: 480px) { .hero-names br { display: block; } }
.photo-frame img { width: 100%; height: auto; display: block; filter: grayscale(5%) sepia(2%); transition: filter 0.6s ease;}
/* Elegant Footer Layout */
.footer { padding: 60px 20px; text-align: center; background: #fff; border-top: 1px solid var(--border-light); position: relative; z-index: 3;}
.footer-text { font-family: 'Cormorant Garamond', serif; font-size: 22px; line-height: 1.8; color: var(--text-muted); margin-bottom: 20px; font-style: italic; }
.footer-signature { font-size: 36px; color: var(--accent-gold); margin-top: 25px; letter-spacing: 0.5px; }
.phone-number { margin-top: 20px; font-size: 13px; letter-spacing: 2px; color: var(--text-muted); }

/* SVG Music Engine Button Control */
.music-control { 
    position: fixed; bottom: 30px; right: 30px; width: 52px; height: 52px; 
    background: var(--bg-color); color: var(--accent-gold); border: 1px solid var(--border-light); 
    border-radius: 50%; cursor: pointer; z-index: 1000; transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex; justify-content: center; align-items: center; box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}
.music-control:hover { background: var(--accent-gold); color: white; transform: scale(1.05); }
.icon-pause { display: none; }
.music-control.playing .icon-play { display: none; }
.music-control.playing .icon-pause { display: block; }

@keyframes bounce { 0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); } 40% { transform: translateY(-12px) translateX(-50%); } 60% { transform: translateY(-6px) translateX(-50%); } }

/* =========================================
   RESPONSIVE QUERIES (MOBILE FIXES)
   ========================================= */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-names { font-size: 44px; }
    .hero-subtitle { font-size: 11px; letter-spacing: 3px; }
    .monogram { font-size: 36px; }
}

@media (max-width: 768px) {
    .section { padding: 45px 0; }
    
    /* Overlay Dimensions Scales on Mobile screens */
    .welcome-overlay { padding: 20px; }
    .premium-paper-card { padding: 50px 25px; }
    .premium-paper-card h2 { font-size: 22px; }
    .welcome-monogram { font-size: 44px; }

    /* Hero Scales */
    .hero-bg { background-position: 58% 75% !important; background-size: cover !important; top: -10%; height: 120%; }
    .hero-names { font-size: 40px; }
    .monogram { font-size: 32px; }
    .hero-subtitle { font-size: 11px; letter-spacing: 3px; }

    /* Forms & Structure Columns Stacking */
    .events-container { flex-direction: column; gap: 20px; }
    .info-grid { grid-template-columns: 1fr; gap: 20px; }
    .bank-grid { grid-template-columns: 1fr; gap: 20px; }
    
    /* Timers Mobile spacing */
    .countdown-grid { gap: 25px; }
    .countdown-number { font-size: 42px; }
    
    /* Text Scales */
    .section-title { font-size: 32px; }
    .quote { font-size: 22px; padding: 0 10px; }
    .section-text { font-size: 14px; line-height: 1.8; }
    
    .event-card, .info-card { padding: 28px 20px; }
    .bank-card { padding: 20px; }
    
    .music-control { bottom: 25px; right: 25px; width: 48px; height: 48px; }
}

@media (min-width: 481px) and (max-width: 620px) {
    .hero-names { font-size: 30px; }
}

@media (max-width: 390px) {
    .hero-names { font-size: 26px; }
    .monogram { font-size: 24px; }
    .hero-overlay { padding: 0 14px; }
    .section-title { font-size: 26px; }
    .quote { font-size: 19px; padding: 0 8px; }
    .countdown-grid { gap: 16px; }
    .countdown-number { font-size: 36px; }
    .section { padding: 36px 0; }
    .container { padding: 0 14px; }
}