/* ==========================================================================
   Invitación Digital Premium - Rapunzel Theme (Kimberly Zoe Rojas)
   Estilos CSS Modernos y Responsivos (Mobile-First)
   ========================================================================== */

/* 1. VARIABLES DEL SISTEMA DE DISEÑO */
:root {
    /* Paleta Rapunzel */
    --color-bg: #140727;          /* Púrpura noche profundo */
    --color-bg-dark: #0a0316;     /* Negro púrpura */
    --color-royal: #3b0764;       /* Morado real */
    --color-lavender: #e9d5ff;    /* Lavanda claro */
    --color-lavender-dark: #c084fc; /* Lavanda medio */
    --color-gold-light: #fff59d;  /* Amarillo sol/oro claro */
    --color-gold: #f59e0b;        /* Oro vibrante */
    --color-gold-dark: #d97706;   /* Oro profundo */
    --color-white: #ffffff;
    
    /* Fuentes */
    --font-title: 'Cinzel', serif;
    --font-cursive: 'Pinyon Script', cursive;
    --font-body: 'Lora', serif;
    --font-alt: 'Montserrat', sans-serif;
    
    /* Sombras y Efectos */
    --shadow-gold: 0 0 15px rgba(245, 158, 11, 0.4);
    --shadow-gold-heavy: 0 0 25px rgba(245, 158, 11, 0.7);
    --shadow-purple: 0 10px 30px rgba(10, 3, 22, 0.7);
    --glass-bg: rgba(26, 12, 47, 0.7);
    --glass-border: 1px solid rgba(233, 213, 255, 0.15);
    --gold-border: 1px solid rgba(245, 158, 11, 0.4);
    
    /* Transiciones */
    --transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* 2. REINICIO DE ESTILOS Y CONFIGURACIÓN BÁSICA */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--color-bg);
    color: var(--color-lavender);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 24px;
    position: relative;
}

/* 3. LINTERNAS FLOTANTES (EFECTO MÁGICO) */
#lanterns-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.lantern {
    position: absolute;
    width: 14px;
    height: 20px;
    background: radial-gradient(circle at center, var(--color-gold-light) 0%, var(--color-gold) 60%, var(--color-gold-dark) 100%);
    border-radius: 3px 3px 1px 1px;
    box-shadow: var(--shadow-gold), 0 0 25px rgba(245, 158, 11, 0.3);
    bottom: -30px;
    opacity: 0;
    animation: floatUp 15s linear infinite;
    will-change: transform, opacity;
}

.lantern::after {
    content: '';
    position: absolute;
    bottom: 1px;
    left: 20%;
    width: 60%;
    height: 3px;
    background: rgba(239, 68, 68, 0.8);
    filter: blur(0.5px);
}

@keyframes floatUp {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg) scale(0.6);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(-110vh) translateX(var(--drift, 50px)) rotate(var(--rotation, 20deg)) scale(1.1);
        opacity: 0;
    }
}

/* 4. SECCIÓN HERO (ml1.jpeg) */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image: url('images/ml1.jpeg');
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, 
        rgba(10, 3, 22, 0.4) 0%, 
        rgba(20, 7, 39, 0.75) 50%, 
        var(--color-bg) 100%
    );
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    width: 90%;
    max-width: 600px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Sol de Rapunzel SVG */
.sun-logo-container {
    margin-bottom: 25px;
    filter: drop-shadow(0 0 10px rgba(254, 240, 138, 0.6));
    animation: pulseSun 4s ease-in-out infinite;
}

.rapunzel-sun {
    width: 90px;
    height: 90px;
}

@keyframes pulseSun {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 10px rgba(254, 240, 138, 0.5)); }
    50% { transform: scale(1.05); filter: drop-shadow(0 0 20px rgba(245, 158, 11, 0.8)); }
}

.subtitle-sweet {
    font-family: var(--font-title);
    font-size: 1.2rem;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--color-gold);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 10px;
}

.main-title {
    font-family: var(--font-cursive);
    font-size: 3.5rem;
    font-weight: normal;
    color: var(--color-gold-light);
    text-shadow: 0 0 15px rgba(254, 240, 138, 0.4), 0 4px 8px rgba(0, 0, 0, 0.6);
    line-height: 1.1;
    margin-bottom: 20px;
}

.tagline-magic {
    font-family: var(--font-body);
    font-style: italic;
    font-size: 1.05rem;
    color: var(--color-lavender);
    opacity: 0.9;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    margin-top: 10px;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--color-gold);
    opacity: 0.8;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: var(--font-alt);
    animation: bounceIndicator 2s infinite;
}

.scroll-indicator span {
    margin-bottom: 8px;
}

@keyframes bounceIndicator {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-8px); }
    60% { transform: translateY(-4px); }
}

/* 5. SECCIÓN CUENTA REGRESIVA */
.countdown-section {
    background-color: var(--color-bg);
    text-align: center;
}

.section-title {
    font-family: var(--font-title);
    font-size: 1.8rem;
    color: var(--color-gold);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 15px;
    text-align: center;
}

.date-highlight {
    font-family: var(--font-alt);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 3px;
    color: var(--color-lavender-dark);
    text-transform: uppercase;
    margin-bottom: 40px;
}

.countdown-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    max-width: 500px;
    margin: 0 auto;
}

.time-block {
    background: var(--glass-bg);
    border: var(--glass-border);
    box-shadow: var(--shadow-purple);
    border-radius: 12px;
    padding: 15px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.time-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    background: radial-gradient(circle at center top, rgba(254, 240, 138, 0.05) 0%, transparent 70%);
}

.time-number {
    font-family: var(--font-alt);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--color-gold-light);
    text-shadow: var(--shadow-gold);
}

.time-label {
    font-family: var(--font-alt);
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--color-lavender);
    margin-top: 5px;
    letter-spacing: 1px;
    opacity: 0.8;
}

/* 6. SECCIÓN PADRES Y PADRINOS */
.family-section {
    background-color: var(--color-bg-dark);
    position: relative;
}

.gold-border-box {
    border: 1px solid transparent;
    background: linear-gradient(var(--color-bg-dark), var(--color-bg-dark)) padding-box,
                linear-gradient(135deg, var(--color-gold) 0%, rgba(245,158,11,0.1) 50%, var(--color-gold-dark) 100%) border-box;
    border-width: 1.5px;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow-purple);
}

.family-title {
    font-family: var(--font-title);
    font-size: 1.3rem;
    color: var(--color-gold-light);
    letter-spacing: 2px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.family-names {
    margin-bottom: 30px;
}

.parent-role {
    font-family: var(--font-alt);
    font-size: 0.75rem;
    color: var(--color-lavender-dark);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 5px;
}

.parent-name {
    font-family: var(--font-body);
    font-size: 1.35rem;
    font-style: italic;
    color: var(--color-white);
}

.family-divider {
    color: var(--color-gold);
    font-size: 1.2rem;
    margin: 10px 0 35px 0;
    opacity: 0.7;
    filter: drop-shadow(var(--shadow-gold));
}

/* 7. DETALLES DEL EVENTO (PARALLAX + GLASS CARDS) */
.details-parallax-container {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 0;
}

.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%; /* Taller que el contenedor para simular el scroll */
    background-image: url('images/ml2.jpeg');
    background-size: cover;
    background-position: center;
    z-index: 1;
    will-change: transform;
}

.parallax-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, 
        var(--color-bg) 0%, 
        rgba(10, 3, 22, 0.75) 40%, 
        rgba(10, 3, 22, 0.75) 60%, 
        var(--color-bg) 100%
    );
    z-index: 2;
}

.relative-z {
    position: relative;
    z-index: 3;
    width: 100%;
}

.text-gold {
    color: var(--color-gold-light) !important;
    text-shadow: 0 0 10px rgba(245, 158, 11, 0.5), 0 4px 8px rgba(0,0,0,0.5);
}

.cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 40px;
}

.glass-card {
    background: var(--glass-bg);
    border: var(--glass-border);
    box-shadow: var(--shadow-purple);
    border-radius: 20px;
    padding: 40px 24px;
    text-align: center;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.glass-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(254,240,138,0.05) 0%, transparent 60%);
    pointer-events: none;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(245, 158, 11, 0.4);
}

.card-icon {
    font-size: 2.2rem;
    color: var(--color-gold);
    margin-bottom: 20px;
    filter: drop-shadow(var(--shadow-gold));
}

.glass-card h3 {
    font-family: var(--font-title);
    font-size: 1.35rem;
    color: var(--color-white);
    letter-spacing: 1px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.glass-card .time {
    font-family: var(--font-alt);
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-gold-light);
    margin-bottom: 15px;
}

.glass-card .time i {
    margin-right: 6px;
}

.glass-card .place-name {
    font-family: var(--font-title);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-lavender);
}

.glass-card .address {
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.5;
    opacity: 0.85;
    margin-bottom: 30px;
}

/* 8. BOTONES ELEGANTES */
.btn-gold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-dark) 100%);
    border: none;
    border-radius: 30px;
    color: var(--color-bg-dark);
    font-family: var(--font-alt);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    padding: 12px 28px;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
    transition: var(--transition);
    cursor: pointer;
}

.btn-gold i {
    margin-right: 8px;
    font-size: 0.95rem;
}

.btn-gold:hover {
    box-shadow: var(--shadow-gold-heavy);
    transform: translateY(-2px) scale(1.03);
    background: linear-gradient(135deg, var(--color-gold-light) 0%, var(--color-gold) 100%);
}

/* 9. SECCIÓN REGALOS */
.gifts-section {
    background-color: var(--color-bg);
    text-align: center;
}

.gift-box {
    background: var(--glass-bg);
    border: var(--glass-border);
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: var(--shadow-purple);
}

.gift-icon-container {
    font-size: 2.5rem;
    color: var(--color-gold);
    margin-bottom: 15px;
    filter: drop-shadow(var(--shadow-gold));
}

.gift-title {
    font-family: var(--font-title);
    font-size: 1.4rem;
    color: var(--color-white);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.gift-subtitle {
    font-family: var(--font-cursive);
    font-size: 2.2rem;
    color: var(--color-gold-light);
    margin-bottom: 20px;
}

.gift-text {
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.7;
    opacity: 0.9;
    max-width: 500px;
    margin: 0 auto;
}

/* 10. SECCIÓN RSVP / FORMULARIO */
.rsvp-section {
    background-color: var(--color-bg-dark);
}

.rsvp-tagline {
    font-family: var(--font-body);
    font-size: 0.95rem;
    text-align: center;
    opacity: 0.85;
    margin-bottom: 35px;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}

.form-card {
    max-width: 500px;
    margin: 0 auto;
    border-color: rgba(245,158,11,0.2);
}

.form-card:hover {
    border-color: rgba(245,158,11,0.3);
    transform: none; /* No flotar para formularios */
}

.form-group {
    margin-bottom: 25px;
    text-align: left;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-family: var(--font-alt);
    font-size: 0.75rem;
    color: var(--color-gold-light);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input[type="text"],
.form-group textarea,
.form-group select {
    width: 100%;
    background-color: rgba(14, 5, 27, 0.8);
    border: 1px solid rgba(233, 213, 255, 0.25);
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--color-white);
    font-family: var(--font-alt);
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition);
}

.form-group input[type="text"]::placeholder,
.form-group textarea::placeholder {
    color: rgba(233, 213, 255, 0.4);
}

.form-group input[type="text"]:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--color-gold);
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.2);
}

/* Custom select dropdown styling */
.select-wrapper {
    position: relative;
    width: 100%;
}

.select-wrapper select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    padding-right: 40px;
}

.select-wrapper::after {
    content: '\f107'; /* fontawesome chevron-down */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-gold);
    pointer-events: none;
    font-size: 1rem;
}

/* Validaciones */
.error-msg {
    font-family: var(--font-alt);
    font-size: 0.7rem;
    color: #ef4444;
    margin-top: 6px;
    display: none;
}

.form-group.invalid input {
    border-color: #ef4444;
}

.form-group.invalid .error-msg {
    display: block;
}

.btn-whatsapp {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border: none;
    border-radius: 30px;
    color: var(--color-white);
    font-family: var(--font-alt);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 14px 28px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.25);
    transition: var(--transition);
    cursor: pointer;
    margin-top: 10px;
}

.btn-whatsapp i {
    margin-right: 10px;
    font-size: 1.15rem;
}

.btn-whatsapp:hover {
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
    transform: translateY(-2px);
    background: linear-gradient(135deg, #2fe675 0%, #15a191 100%);
}

/* 11. SECCIÓN MAPA */
.map-section {
    background-color: var(--color-bg);
}

.map-tagline {
    font-family: var(--font-alt);
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-align: center;
    color: var(--color-lavender-dark);
    margin-bottom: 30px;
}

.map-wrapper {
    width: 100%;
    border: var(--gold-border);
    border-radius: 20px;
    box-shadow: var(--shadow-purple);
    overflow: hidden;
    line-height: 0;
    filter: drop-shadow(0 4px 15px rgba(10,3,22,0.5));
}

.map-wrapper iframe {
    width: 100%;
    filter: grayscale(15%) contrast(105%) invert(5%) sepia(20%); /* Filtro suave para integrar el mapa al tono morado/dorado */
    transition: var(--transition);
}

.map-wrapper iframe:hover {
    filter: none;
}

/* 12. SECCIÓN FOOTER */
.main-footer {
    background-color: var(--color-bg-dark);
    text-align: center;
    border-top: 1px solid rgba(233, 213, 255, 0.05);
}

.main-footer .container {
    padding: 45px 24px;
}

.footer-quote {
    font-family: var(--font-body);
    font-style: italic;
    font-size: 1rem;
    color: var(--color-lavender-dark);
    margin-bottom: 10px;
}

.footer-quince {
    font-family: var(--font-title);
    font-size: 1.05rem;
    color: var(--color-gold);
    letter-spacing: 3px;
    text-transform: uppercase;
}

.footer-divider {
    width: 60px;
    height: 1.5px;
    background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
    margin: 20px auto;
}

.designer-sig {
    font-family: var(--font-alt);
    font-size: 0.65rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.5;
}

/* 13. ANIMACIONES DE ENTRADA (SCROLL REVEALS) */
.reveal {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), 
                transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Para navegadores con preferencia de movimiento reducido */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    .lantern {
        display: none !important;
    }
    .scroll-indicator, .sun-logo-container {
        animation: none !important;
    }
    .glass-card:hover, .btn-gold:hover, .btn-whatsapp:hover {
        transform: none !important;
    }
}

/* 14. DISEÑO ADAPTATIVO (MEDIA QUERIES) */

/* Dispositivos de tamaño mediano (Tablets, 600px+) */
@media screen and (min-width: 600px) {
    html {
        font-size: 17px;
    }
    
    .container {
        padding: 80px 30px;
    }
    
    .main-title {
        font-size: 4.5rem;
    }
    
    .countdown-container {
        gap: 20px;
    }
    
    .time-block {
        padding: 20px 15px;
    }
    
    .time-number {
        font-size: 2.2rem;
    }
    
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .glass-card {
        padding: 45px 30px;
    }
    
    .family-names {
        display: flex;
        justify-content: space-around;
        align-items: center;
    }
    
    .family-names > div {
        flex: 1;
    }
}

/* Dispositivos de tamaño grande (Laptops/Desktops, 992px+) */
@media screen and (min-width: 992px) {
    html {
        font-size: 18px;
    }
    
    .container {
        max-width: 960px;
        padding: 100px 40px;
    }
    
    .hero-content {
        max-width: 800px;
    }
    
    .main-title {
        font-size: 5.5rem;
    }
    
    .tagline-magic {
        font-size: 1.15rem;
    }
    
    .countdown-container {
        max-width: 600px;
    }
    
    .time-number {
        font-size: 2.5rem;
    }
    
    .gold-border-box {
        padding: 60px 50px;
    }
    
    .cards-grid {
        gap: 40px;
    }
}

/* Soporte Nativo para Scroll Parallax en navegadores que soportan Scroll-Driven Animations */
@supports ((animation-timeline: view()) and (animation-range: entry)) {
    .details-parallax-container {
        view-timeline: --parallax;
    }
    .parallax-bg {
        animation: parallax-scroll linear both;
        animation-timeline: --parallax;
        animation-range: entry 0% exit 100%;
        height: 140%; /* Un 40% más alto para dar un recorrido visible */
    }
    @keyframes parallax-scroll {
        from {
            transform: translateY(-20%);
        }
        to {
            transform: translateY(20%);
        }
    }
}

/* 15. BOTÓN FLOTANTE DE CONTROL DE MÚSICA */
.music-control-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: var(--glass-border);
    color: var(--color-gold-light);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    box-shadow: var(--shadow-purple), 0 0 10px rgba(245, 158, 11, 0.2);
    transition: var(--transition);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.music-control-btn:hover {
    border-color: var(--color-gold);
    box-shadow: var(--shadow-purple), var(--shadow-gold);
    color: var(--color-gold);
    transform: scale(1.1);
}

.music-control-btn.playing {
    color: var(--color-gold-light);
    border-color: var(--color-gold);
    box-shadow: var(--shadow-purple), var(--shadow-gold-heavy);
    animation: pulseMusicBtn 2s ease-in-out infinite;
}

@keyframes pulseMusicBtn {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 5px rgba(254, 240, 138, 0.4)); }
    50% { transform: scale(1.08); filter: drop-shadow(0 0 15px rgba(245, 158, 11, 0.8)); }
}

@media screen and (max-width: 600px) {
    .music-control-btn {
        bottom: 20px;
        right: 20px;
        width: 46px;
        height: 46px;
        font-size: 1.1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .music-control-btn.playing {
        animation: none;
        transform: none;
    }
}

/* 16. CARRUSEL 3D DE DEDICATORIAS */
.wishes-section {
    background-color: var(--color-bg);
    text-align: center;
    overflow: hidden;
}

.wishes-tagline {
    font-family: var(--font-body);
    font-size: 0.95rem;
    text-align: center;
    opacity: 0.85;
    margin-bottom: 25px;
}

.wishes-carousel-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    height: 310px;
    perspective: 1200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wishes-carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wish-card-3d {
    position: absolute;
    width: 80%;
    max-width: 440px;
    min-height: 200px;
    /* Fondo lila/morado semi-transparente elegante */
    background: rgba(88, 28, 135, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.3); /* borde dorado fino */
    border-radius: 20px;
    padding: 35px 25px;
    box-shadow: var(--shadow-purple), 0 0 15px rgba(107, 33, 168, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.7s cubic-bezier(0.25, 1, 0.5, 1),
                opacity 0.7s cubic-bezier(0.25, 1, 0.5, 1),
                filter 0.7s ease,
                visibility 0.7s;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    user-select: none;
    cursor: grab;
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

.wish-card-3d:active {
    cursor: grabbing;
}

.wish-text {
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-style: italic;
    color: var(--color-white);
    line-height: 1.6;
}

.wish-author {
    font-family: var(--font-cursive);
    font-size: 2rem;
    color: var(--color-gold-light);
    margin-top: 15px;
    filter: drop-shadow(0 0 5px rgba(254, 240, 138, 0.2));
}

/* Posicionamiento en 3D */
.wish-card-3d.active {
    transform: translateX(0) scale(1.05) translateZ(0) rotateY(0deg);
    opacity: 1;
    z-index: 10;
    visibility: visible;
    pointer-events: auto;
    filter: none;
}

.wish-card-3d.prev {
    transform: translateX(-45%) scale(0.9) translateZ(-150px) rotateY(20deg);
    opacity: 0.45;
    z-index: 5;
    visibility: visible;
    pointer-events: none;
    filter: blur(2.5px);
}

.wish-card-3d.next {
    transform: translateX(45%) scale(0.9) translateZ(-150px) rotateY(-20deg);
    opacity: 0.45;
    z-index: 5;
    visibility: visible;
    pointer-events: none;
    filter: blur(2.5px);
}

.wish-card-3d.hidden {
    transform: translateX(0) scale(0.75) translateZ(-300px);
    opacity: 0;
    z-index: 1;
    visibility: hidden;
    pointer-events: none;
}

/* Dots Navigation */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    width: 100%;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(233, 213, 255, 0.25);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--color-gold);
    box-shadow: var(--shadow-gold);
    transform: scale(1.3);
}

/* Responsivo */
@media screen and (max-width: 600px) {
    .wishes-carousel-container {
        height: 290px;
        perspective: 1000px;
    }

    .wish-card-3d {
        width: 80%;
        min-height: 200px;
        padding: 25px 20px;
    }

    .wish-card-3d.prev {
        transform: translateX(-40%) scale(0.85) translateZ(-120px) rotateY(15deg);
        opacity: 0.4;
    }

    .wish-card-3d.next {
        transform: translateX(40%) scale(0.85) translateZ(-120px) rotateY(-15deg);
        opacity: 0.4;
    }
    
    .wish-text {
        font-size: 0.95rem;
    }
    
    .wish-author {
        font-size: 1.6rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wish-card-3d {
        transition: none;
    }
}


