/* ========================================
   ALICIA XV - MOBILE FIRST
   Estilo Vintage Mágico - Tema Azul
   ======================================== */

/* ===== VARIABLES ===== */
:root {
    --parchment: #e8f4f8;
    --parchment-light: #f0f8ff;
    --cream: #f5fafd;
    --gold: #5b9bd5;
    --gold-light: #7eb8e8;
    --gold-dark: #2e75b6;
    --burgundy: #1e4a6d;
    --burgundy-light: #2d6a9f;
    --sepia: #3a5a7c;
    --ink: #0a1929;
    --navy: #1a3a5c;
    --forest: #2d5a27;
    --queen-red: #a41920;
    --alice-blue: #4a90a4;
    
    --font-title: 'Cinzel Decorative', serif;
    --font-script: 'Great Vibes', cursive;
    --font-body: 'Cormorant Garamond', serif;
    --font-accent: 'Playfair Display', serif;
    
    --radius-sm: 8px;
    --radius-md: 15px;
    --radius-lg: 25px;
    --radius-full: 50px;
    
    --shadow: 0 4px 20px rgba(30, 74, 109, 0.15);
    --shadow-lg: 0 10px 40px rgba(30, 74, 109, 0.2);
    --shadow-gold: 0 4px 25px rgba(91, 155, 213, 0.35);
}

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

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

body {
    font-family: var(--font-body);
    background: var(--ink);
    color: var(--sepia);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== BOTÓN DE SONIDO ===== */
.sound-btn {
    position: fixed;
    bottom: 15px;
    right: 15px;
    z-index: 1000;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    background: rgba(26, 20, 16, 0.95);
    color: var(--gold);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-gold);
}

.sound-btn:active {
    transform: scale(0.95);
}

.sound-icon {
    width: 22px;
    height: 22px;
}

.sound-icon.hidden { display: none; }

/* ===== ENTRADA ===== */
.entrance-section {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: #0a0806;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Video de fondo */
.entrance-bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Contenedor del sobre */
.envelope-container {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    
    /* Animación de entrada */
    animation: envelopeEnter 1.2s ease-out forwards;
}

/* Animación de entrada desde arriba con fade */
@keyframes envelopeEnter {
    0% {
        opacity: 0;
        transform: translateY(-80px);
    }
    60% {
        opacity: 1;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Después de la entrada, aplicar flotación */
.envelope-container.floating {
    animation: envelopeFloat 3s ease-in-out infinite;
}

@keyframes envelopeFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

/* Imagen del sobre */
.envelope-img {
    width: 100%;
    max-width: 90vw;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.4));
    /* SIN transición - cambio instantáneo */
}

/* En pantallas horizontales (landscape): ajustar al alto */
@media (orientation: landscape) {
    .envelope-img {
        width: auto;
        max-width: none;
        height: 90vh;
        max-height: 90vh;
    }
}

/* Hover effect - solo el shadow tiene transición */
.envelope-container:hover .envelope-img,
.envelope-container:active .envelope-img {
    filter: drop-shadow(0 15px 40px rgba(201, 162, 39, 0.5));
}

/* Mensaje debajo del sobre */
.envelope-message {
    margin-top: 25px;
    font-family: var(--font-script);
    font-size: 1.5rem;
    color: var(--gold);
    text-align: center;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    animation: messagePulse 2s ease-in-out infinite;
}

@keyframes messagePulse {
    0%, 100% {
        opacity: 0.7;
    }
    50% {
        opacity: 1;
    }
}

/* Estado cuando se abre */
.envelope-container.opening .envelope-message {
    opacity: 0;
    transition: opacity 0.2s ease;
}

/* Fade out de la sección completa */
.entrance-section.fade-out {
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

/* ===== INVITACIÓN CONTAINER ===== */
.invitation-container {
    position: relative;
    min-height: 100vh;
    background: 
        url('../assets/paper-texture.png') repeat,
        linear-gradient(180deg, var(--parchment) 0%, var(--cream) 50%, var(--parchment) 100%);
    padding: 60px 20px 40px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.invitation-container > section,
.invitation-container > header,
.invitation-container > footer {
    width: 100%;
    max-width: 550px;
}

.invitation-container > .card-border,
.invitation-container > .floating-decor {
    max-width: none;
    width: auto;
}

.has-entrance .invitation-container {
    opacity: 0;
    visibility: hidden;
}

.has-entrance .invitation-container.visible {
    opacity: 1;
    visibility: visible;
}

/* ===== PERSONAJES FLOTANTES DECORATIVOS ===== */
.floating-decor {
    position: absolute;
    pointer-events: none;
    opacity: 0.15;
    z-index: 0;
    max-width: 120px;
}

.floating-decor.cheshire {
    top: 5%;
    right: -20px;
    width: 100px;
    transform: rotate(10deg);
}

.floating-decor.rose1 {
    top: 18%;
    left: 5%;
    width: 50px;
}

.floating-decor.card1 {
    top: 30%;
    right: 8%;
    width: 40px;
    transform: rotate(-15deg);
}

.floating-decor.rose2 {
    top: 45%;
    left: -10px;
    width: 60px;
}

.floating-decor.teacup {
    top: 55%;
    right: 5%;
    width: 70px;
}

.floating-decor.card2 {
    top: 68%;
    left: 10%;
    width: 35px;
    transform: rotate(20deg);
}

.floating-decor.watch {
    top: 78%;
    right: -5px;
    width: 55px;
}

.floating-decor.mushroom {
    top: 88%;
    left: 5%;
    width: 65px;
}

/* ===== BORDE DECORATIVO ===== */
.card-border {
    position: absolute;
    top: 20px;
    left: 15px;
    right: 15px;
    bottom: 20px;
    border: 2px solid var(--gold);
    pointer-events: none;
    z-index: 1;
}

.corner-ornament {
    position: absolute;
    width: 25px;
    height: 25px;
    border: 2px solid var(--gold);
}

.corner-ornament.top-left {
    top: -2px;
    left: -2px;
    border-right: none;
    border-bottom: none;
}

.corner-ornament.top-right {
    top: -2px;
    right: -2px;
    border-left: none;
    border-bottom: none;
}

.corner-ornament.bottom-left {
    bottom: -2px;
    left: -2px;
    border-right: none;
    border-top: none;
}

.corner-ornament.bottom-right {
    bottom: -2px;
    right: -2px;
    border-left: none;
    border-top: none;
}

/* ===== ENCABEZADO ===== */
.invitation-header {
    text-align: center;
    padding-bottom: 30px;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.subtitle-pre {
    font-family: var(--font-body);
    font-size: 1rem;
    font-style: italic;
    color: var(--sepia);
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.title-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.title-card {
    font-size: 1.8rem;
    opacity: 0.5;
}

.title-card.left { color: var(--ink); }
.title-card.right { color: var(--queen-red); }

.main-title {
    font-family: var(--font-title);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--burgundy);
    text-shadow: 2px 2px 0 var(--gold);
    letter-spacing: 2px;
}

.title-flourish {
    width: 150px;
    height: 20px;
    margin: 10px auto;
    background: url('../assets/flourish.png') no-repeat center/contain;
    opacity: 0.6;
}

.quinceanera-name {
    font-family: var(--font-script);
    font-size: 2rem;
    color: var(--gold-dark);
}

/* Conejo debajo del título */
.header-character {
    margin: 20px 0;
}

.header-rabbit {
    width: 90px;
    height: auto;
    margin: 0 auto;
    filter: drop-shadow(0 3px 8px rgba(0,0,0,0.2));
    animation: rabbitBounce 2s ease-in-out infinite;
}

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

/* Countdown dinámico */
.countdown-container {
    margin-top: 25px;
    text-align: center;
}

.countdown-label {
    font-family: var(--font-script);
    font-size: 1.4rem;
    color: var(--gold-dark);
    margin-bottom: 10px;
}

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

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(250,246,233,0.9));
    border: 2px solid var(--gold);
    border-radius: var(--radius-md);
    padding: 12px 15px;
    min-width: 60px;
    box-shadow: var(--shadow);
}

.countdown-number {
    font-family: var(--font-title);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--burgundy);
    line-height: 1;
}

.countdown-unit {
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: var(--sepia);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

.countdown-separator {
    font-family: var(--font-title);
    font-size: 1.5rem;
    color: var(--gold);
    font-weight: bold;
    animation: blink 1s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.countdown-subtitle {
    font-family: var(--font-body);
    font-style: italic;
    font-size: 1rem;
    color: var(--sepia);
    margin-top: 12px;
}

/* ===== SECCIONES DE CITAS ===== */
.quote-section {
    padding: 30px 15px;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.quote-section.alt {
    flex-direction: row;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.quote-box {
    background: rgba(255, 255, 255, 0.85);
    padding: 20px 25px;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--gold);
    max-width: 400px;
    margin: 0 auto;
    box-shadow: var(--shadow);
}

.quote-box.large {
    text-align: center;
    border-left: none;
    border: 2px solid var(--gold);
}

.quote-mark {
    font-family: var(--font-script);
    font-size: 3rem;
    color: var(--gold);
    line-height: 0.5;
    opacity: 0.5;
}

.quote-text {
    font-family: var(--font-accent);
    font-size: 1.2rem;
    font-style: italic;
    color: var(--navy);
    margin: 10px 0;
}

.quote-author {
    font-family: var(--font-script);
    font-size: 1.2rem;
    color: var(--gold-dark);
}

.quote-character {
    width: 80px;
    height: auto;
    opacity: 0.8;
}

.quote-character.right { order: 1; }
.quote-character.left { order: -1; }

/* ===== FOTO PRINCIPAL ===== */
.main-photo-section {
    padding: 30px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.photo-frame {
    padding: 12px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    max-width: 320px;
}

.main-photo {
    width: 100%;
    min-height: 280px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.photo-caption {
    margin-top: 15px;
    padding: 8px 25px;
    background: var(--burgundy);
    color: var(--gold);
    font-family: var(--font-title);
    font-size: 0.85rem;
    letter-spacing: 1px;
    border-radius: var(--radius-full);
}

/* ===== CITA HERO (PERSONALIZADA) ===== */
.hero-quote {
    padding-top: 20px;
}

.hero-quote .quote-box.large {
    max-width: 450px;
    background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(250,246,233,0.95));
    border: 2px solid var(--gold);
    padding: 25px 20px;
}

.hero-quote .quote-text {
    font-size: 1.1rem;
    line-height: 1.7;
}

/* ===== SECCIÓN DE FAMILIA (PADRES/PADRINOS) ===== */
.family-section {
    padding: 40px 15px;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.family-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 400px;
    width: 100%;
}

.family-card {
    background: rgba(255, 255, 255, 0.9);
    padding: 25px 20px;
    border-radius: var(--radius-lg);
    border: 2px solid var(--gold);
    text-align: center;
    box-shadow: var(--shadow);
}

.family-label {
    display: block;
    font-family: var(--font-script);
    font-size: 1.4rem;
    color: var(--gold-dark);
    margin-bottom: 12px;
}

.family-name {
    font-family: var(--font-accent);
    font-size: 1.1rem;
    color: var(--burgundy);
    margin: 5px 0;
}

.family-ampersand {
    font-family: var(--font-script);
    font-size: 1.5rem;
    color: var(--gold);
    display: block;
    margin: 5px 0;
}

/* Personaje pequeño en citas */
.quote-character.small-char {
    width: 60px;
}

/* ===== CÓDIGO DE VESTIMENTA RESERVADO ===== */
.dress-reserved {
    background: rgba(74, 144, 164, 0.1);
    border: 2px dashed var(--alice-blue);
    border-radius: var(--radius-md);
    padding: 15px;
    margin: 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.reserved-icon {
    font-size: 1.5rem;
}

.reserved-text {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--sepia);
    margin: 0;
}

.reserved-text strong {
    color: var(--alice-blue);
    font-weight: 700;
}

.color-dot.reserved {
    position: relative;
}

.color-dot.reserved::before {
    content: '✕';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.2rem;
    color: white;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* ===== FOOTER NOMBRE ===== */
.footer-name {
    font-family: var(--font-script);
    font-size: 2rem;
    color: var(--gold-dark);
    margin-bottom: 5px;
}

/* ===== TÍTULO DE SECCIÓN ===== */
.section-title {
    font-family: var(--font-title);
    font-size: 1.4rem;
    color: var(--burgundy);
    text-align: center;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.section-title span {
    color: var(--gold);
}

/* ===== DETALLES DEL EVENTO ===== */
.event-details {
    padding: 40px 15px;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.details-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 400px;
    margin: 0 auto;
}

.detail-card {
    background: rgba(255, 255, 255, 0.9);
    padding: 25px 20px;
    border-radius: var(--radius-lg);
    border: 2px solid var(--gold);
    text-align: center;
    box-shadow: var(--shadow);
}

.detail-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 10px;
    object-fit: contain;
}

.detail-label {
    font-family: var(--font-script);
    font-size: 1.2rem;
    color: var(--gold-dark);
}

.detail-main {
    font-family: var(--font-title);
    font-size: 1.3rem;
    color: var(--burgundy);
    margin: 5px 0;
}

.detail-year, .detail-address {
    font-size: 0.95rem;
    color: var(--sepia);
}

.detail-time {
    font-family: var(--font-title);
    font-size: 1.8rem;
    color: var(--navy);
    margin-top: 8px;
}

.detail-time small {
    font-size: 1rem;
}

.map-btn {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 20px;
    background: var(--gold);
    color: var(--ink);
    text-decoration: none;
    font-family: var(--font-title);
    font-size: 0.85rem;
    border-radius: var(--radius-full);
    transition: all 0.3s ease;
}

.map-btn:active {
    transform: scale(0.97);
}

/* ===== GALERÍA ===== */
.gallery-section {
    padding: 40px 15px;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.gallery-item {
    background: white;
    padding: 8px 8px 30px 8px;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: transform 0.3s ease;
    position: relative;
}

.gallery-item::after {
    content: attr(data-caption);
    position: absolute;
    bottom: 8px;
    left: 8px;
    right: 8px;
    font-family: var(--font-script);
    font-size: 0.9rem;
    color: var(--sepia);
    text-align: center;
}

.gallery-item img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.gallery-item:active {
    transform: scale(0.98);
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-img {
    max-width: 95%;
    max-height: 80vh;
    border-radius: var(--radius-sm);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: var(--gold);
    border: none;
    color: var(--ink);
    font-size: 1.3rem;
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.lightbox-close { top: 15px; right: 15px; }
.lightbox-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 10px; top: 50%; transform: translateY(-50%); }

/* ===== CÓDIGO DE VESTIMENTA ===== */
.dress-code {
    padding: 40px 15px;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.dress-card {
    background: rgba(255, 255, 255, 0.9);
    padding: 25px 20px;
    border-radius: var(--radius-lg);
    border: 2px solid var(--gold);
    text-align: center;
    max-width: 400px;
    margin: 0 auto;
    box-shadow: var(--shadow);
}

.dress-type {
    font-family: var(--font-title);
    font-size: 1.5rem;
    color: var(--burgundy);
    margin-bottom: 10px;
}

.dress-hint {
    font-size: 0.95rem;
    color: var(--sepia);
    margin-bottom: 15px;
}

.colors {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.color-dot {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--color);
    border: 3px solid var(--gold);
    box-shadow: var(--shadow);
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.color-dot:active {
    transform: scale(1.15);
}

.color-dot::after {
    content: attr(data-name);
    position: absolute;
    bottom: -22px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    color: var(--sepia);
    white-space: nowrap;
}

.section-character {
    position: absolute;
    width: 70px;
    opacity: 0.2;
    z-index: 0;
}

.section-character.left {
    left: 5px;
    bottom: 10px;
}

/* ===== MESA DE REGALOS ===== */
.gift-section {
    padding: 40px 15px;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gift-intro {
    text-align: center;
    font-family: var(--font-body);
    font-style: italic;
    font-size: 1.1rem;
    color: var(--sepia);
    margin-bottom: 25px;
    max-width: 350px;
    margin-left: auto;
    margin-right: auto;
}

.gift-cards {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 350px;
    margin: 0 auto 25px;
}

.gift-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid var(--gold);
    border-radius: var(--radius-md);
    text-decoration: none;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.gift-card:active {
    transform: scale(0.98);
    box-shadow: var(--shadow-gold);
}

.gift-logo {
    height: 35px;
    width: auto;
    margin-bottom: 8px;
    object-fit: contain;
}

.gift-name {
    font-family: var(--font-title);
    font-size: 1.1rem;
    color: var(--burgundy);
}

.gift-code {
    font-size: 0.85rem;
    color: var(--sepia);
}

.envelope-box {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, rgba(201, 162, 39, 0.1), rgba(114, 47, 55, 0.1));
    border-radius: var(--radius-lg);
    max-width: 300px;
    margin: 0 auto;
}

.envelope-icon {
    width: 60px;
    margin: 0 auto 10px;
}

.envelope-box h3 {
    font-family: var(--font-title);
    font-size: 1.1rem;
    color: var(--burgundy);
}

.envelope-box p {
    font-size: 0.9rem;
    color: var(--sepia);
}

/* ===== FORMULARIO RSVP - MEJORADO ===== */
.rsvp-section {
    padding: 40px 15px;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.rsvp-deadline {
    text-align: center;
    font-size: 1rem;
    color: var(--sepia);
    margin-bottom: 25px;
}

.rsvp-deadline strong {
    color: var(--burgundy);
}

.rsvp-form {
    max-width: 450px;
    margin: 0 auto;
    background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(250,246,233,0.95));
    padding: 30px 20px;
    border-radius: var(--radius-lg);
    border: 3px solid var(--gold);
    box-shadow: var(--shadow-lg);
}

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

.form-label {
    display: block;
    font-family: var(--font-title);
    font-size: 1.1rem;
    color: var(--burgundy);
    text-align: center;
    margin-bottom: 15px;
}

/* Radio buttons mejorados */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-option {
    display: block;
    cursor: pointer;
}

.radio-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.radio-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 20px;
    background: var(--cream);
    border: 2px solid var(--gold);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.radio-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.radio-text {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--sepia);
}

.radio-option input:checked + .radio-btn.yes {
    background: linear-gradient(135deg, var(--forest), #3a7a34);
    border-color: var(--forest);
    box-shadow: var(--shadow-gold);
}

.radio-option input:checked + .radio-btn.yes .radio-text {
    color: white;
}

.radio-option input:checked + .radio-btn.no {
    background: linear-gradient(135deg, var(--burgundy), var(--burgundy-light));
    border-color: var(--burgundy);
    box-shadow: var(--shadow-gold);
}

.radio-option input:checked + .radio-btn.no .radio-text {
    color: white;
}

.radio-btn:active {
    transform: scale(0.98);
}

/* Number selector mejorado */
.number-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 10px;
}

.num-btn {
    width: 55px;
    height: 55px;
    border: 3px solid var(--gold);
    background: var(--cream);
    border-radius: 50%;
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--burgundy);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.num-btn:active:not(:disabled) {
    background: var(--gold);
    color: var(--ink);
    transform: scale(0.95);
}

.num-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.num-display {
    font-family: var(--font-title);
    font-size: 3rem;
    color: var(--burgundy);
    min-width: 60px;
    text-align: center;
    background: white;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    border: 2px solid var(--gold);
}

.form-hint {
    display: block;
    text-align: center;
    font-size: 0.85rem;
    color: var(--sepia);
    font-style: italic;
}

/* Contenedor de invitados */
.guests-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.guest-form {
    background: rgba(201, 162, 39, 0.08);
    padding: 20px 15px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(201, 162, 39, 0.3);
}

.guest-form h4 {
    font-family: var(--font-script);
    font-size: 1.4rem;
    color: var(--gold-dark);
    margin-bottom: 15px;
    text-align: center;
}

/* Inputs mejorados */
.input-group {
    margin-bottom: 12px;
}

.input-label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--sepia);
    margin-bottom: 6px;
    padding-left: 5px;
}

.text-input {
    width: 100%;
    padding: 16px 18px;
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--ink);
    background: white;
    border: 2px solid var(--gold);
    border-radius: var(--radius-md);
    outline: none;
    transition: all 0.3s ease;
    -webkit-appearance: none;
    appearance: none;
}

.text-input::placeholder {
    color: #aaa;
    font-style: italic;
}

.text-input:focus {
    border-color: var(--burgundy);
    box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.2);
}

/* Mensaje no asiste */
.not-attending {
    text-align: center;
    padding: 25px;
    background: rgba(114, 47, 55, 0.08);
    border-radius: var(--radius-md);
    border: 2px solid rgba(114, 47, 55, 0.2);
}

.not-attending > p {
    font-size: 1.2rem;
    color: var(--burgundy);
    margin-bottom: 10px;
}

.not-attending-sub {
    font-family: var(--font-body);
    font-style: italic;
    font-size: 1rem;
    color: var(--sepia);
    margin: 0;
}

/* Sección de playlist */
.playlist-section {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px dashed var(--gold);
}

/* Botón secundario (no asiste) */
.submit-btn.secondary {
    background: linear-gradient(135deg, var(--sepia), #5a4a3a);
    color: white;
    margin-top: 15px;
}

/* Mensaje de confirmación */
.confirmation-message {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(250,246,233,0.95));
    border: 2px solid var(--gold);
    border-radius: var(--radius-lg);
}

.confirmation-message .success-icon {
    font-size: 3.5rem;
    display: block;
    margin-bottom: 15px;
}

.confirmation-message h3 {
    font-family: var(--font-script);
    font-size: 2rem;
    color: var(--forest);
    margin: 0 0 10px 0;
}

.confirmation-message p {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--sepia);
    margin: 0;
}

/* Botón descargar/enviar mejorado */
.submit-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 30px;
    margin-top: 25px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border: none;
    border-radius: var(--radius-full);
    font-family: var(--font-title);
    font-size: 1.15rem;
    color: var(--ink);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: wait;
}

.submit-btn:not(:disabled):active {
    transform: scale(0.98);
    box-shadow: var(--shadow-gold);
}

.btn-arrow {
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

.submit-btn:not(:disabled):active .btn-arrow {
    transform: translateX(5px);
}

.hidden {
    display: none !important;
}

/* ===== FOOTER ===== */
.invitation-footer {
    text-align: center;
    padding: 30px 15px;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-scene {
    max-width: 280px;
    margin: 0 auto 20px;
    opacity: 0.7;
}

.footer-text {
    font-family: var(--font-script);
    font-size: 1.5rem;
    color: var(--gold-dark);
    margin-bottom: 15px;
}

.footer-quote {
    max-width: 300px;
    margin: 0 auto 20px;
    padding: 15px;
    border-top: 1px solid var(--gold);
    border-bottom: 1px solid var(--gold);
}

.footer-quote p {
    font-family: var(--font-accent);
    font-style: italic;
    font-size: 1rem;
    color: var(--navy);
}

.footer-quote span {
    font-family: var(--font-script);
    font-size: 1.1rem;
    color: var(--gold-dark);
}

.footer-cards {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.suit {
    font-size: 2rem;
    color: var(--ink);
    transition: transform 0.3s ease;
}

.suit.red {
    color: var(--queen-red);
}

.suit:active {
    transform: scale(1.3) rotate(15deg);
}

/* ===== OVERLAY ===== */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

.overlay-card {
    background: linear-gradient(180deg, var(--parchment), var(--cream));
    padding: 35px 25px;
    border-radius: var(--radius-lg);
    border: 4px solid var(--gold);
    max-width: 380px;
    width: 100%;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 60px rgba(201, 162, 39, 0.4);
    transform: scale(0.9);
    transition: transform 0.4s ease;
}

.overlay.active .overlay-card {
    transform: scale(1);
}

.overlay-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border: 2px solid var(--gold);
    background: transparent;
    border-radius: 50%;
    font-size: 1.5rem;
    color: var(--gold);
    cursor: pointer;
}

.overlay-close:active {
    background: var(--gold);
    color: var(--ink);
}

.overlay-icon {
    width: 80px;
    margin: 0 auto 15px;
}

.overlay-card h2 {
    font-family: var(--font-title);
    font-size: 1.3rem;
    color: var(--burgundy);
    margin-bottom: 10px;
}

.overlay-card > p {
    color: var(--sepia);
    margin-bottom: 20px;
}

.code-box {
    background: rgba(201, 162, 39, 0.15);
    padding: 15px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

.code-label {
    display: block;
    font-size: 0.9rem;
    color: var(--sepia);
    margin-bottom: 5px;
}

.code-value {
    font-family: var(--font-title);
    font-size: 1.6rem;
    color: var(--burgundy);
    letter-spacing: 3px;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 25px;
    background: linear-gradient(135deg, var(--burgundy), var(--burgundy-light));
    border: none;
    border-radius: var(--radius-full);
    font-family: var(--font-title);
    font-size: 1rem;
    color: white;
    cursor: pointer;
}

.download-btn svg {
    width: 20px;
    height: 20px;
}

.download-btn:active {
    transform: scale(0.97);
}

/* ========================================
   RESPONSIVE - TABLET Y DESKTOP
   ======================================== */

@media (min-width: 480px) {
    .swipe-text {
        font-size: 1.5rem;
    }
    
    .main-title {
        font-size: 3.5rem;
    }
    
    .quinceanera-name {
        font-size: 2.5rem;
    }
    
    .header-rabbit {
        width: 110px;
    }
    
    .countdown-item {
        padding: 15px 18px;
        min-width: 70px;
    }
    
    .countdown-number {
        font-size: 2.2rem;
    }
    
    .photo-frame {
        max-width: 380px;
    }
    
    .main-photo {
        min-height: 350px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .radio-group {
        flex-direction: row;
    }
    
    .radio-option {
        flex: 1;
    }
    
    .radio-btn {
        flex-direction: column;
        text-align: center;
        padding: 25px 15px;
    }
    
    .floating-decor {
        opacity: 0.12;
    }
    
    .floating-decor.cheshire {
        width: 140px;
        right: 0;
    }
}

@media (min-width: 768px) {
    .invitation-container {
        padding: 80px 40px 60px;
    }
    
    .card-border {
        top: 30px;
        left: 30px;
        right: 30px;
        bottom: 30px;
    }
    
    .corner-ornament {
        width: 40px;
        height: 40px;
    }
    
    .header-rabbit {
        width: 120px;
    }
    
    .countdown-item {
        padding: 18px 22px;
        min-width: 80px;
    }
    
    .countdown-number {
        font-size: 2.5rem;
    }
    
    .countdown-separator {
        font-size: 2rem;
    }
    
    .main-title {
        font-size: 4.5rem;
    }
    
    .quinceanera-name {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .details-grid {
        flex-direction: row;
        max-width: 700px;
    }
    
    .detail-card {
        flex: 1;
    }
    
    .quote-section.alt {
        gap: 30px;
    }
    
    .quote-character {
        width: 120px;
    }
    
    .quote-box {
        padding: 30px 35px;
    }
    
    .quote-text {
        font-size: 1.4rem;
    }
    
    .gift-cards {
        flex-direction: row;
        max-width: 600px;
    }
    
    .gift-card {
        flex: 1;
    }
    
    .rsvp-form {
        padding: 40px 35px;
    }
    
    .floating-decor {
        opacity: 0.1;
        max-width: 150px;
    }
    
    .floating-decor.cheshire {
        width: 180px;
        top: 8%;
        right: 3%;
    }
    
    .floating-decor.teacup {
        width: 100px;
    }
    
    .floating-decor.mushroom {
        width: 90px;
    }
    
    .section-character {
        width: 100px;
        opacity: 0.15;
    }
}

@media (min-width: 1024px) {
    .invitation-container {
        padding: 100px 60px 80px;
    }
    
    .main-title {
        font-size: 5.5rem;
    }
    
    .details-grid {
        max-width: 800px;
    }
    
    .gallery-grid {
        max-width: 700px;
    }
    
    .rsvp-form {
        max-width: 550px;
    }
    
    .floating-decor {
        opacity: 0.08;
        max-width: 200px;
    }
    
    .floating-decor.cheshire {
        width: 220px;
        right: 5%;
    }
}

/* ===== HOVER EFFECTS (solo desktop) ===== */
@media (hover: hover) {
    .sound-btn:hover {
        background: var(--gold);
        color: var(--ink);
        transform: scale(1.1);
    }
    
    .map-btn:hover {
        background: var(--gold-dark);
        transform: translateY(-2px);
    }
    
    .gallery-item:hover {
        transform: rotate(-2deg) scale(1.03);
    }
    
    .gallery-item:nth-child(even):hover {
        transform: rotate(2deg) scale(1.03);
    }
    
    .color-dot:hover {
        transform: scale(1.2);
    }
    
    .gift-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-gold);
    }
    
    .radio-btn:hover {
        border-color: var(--burgundy);
        box-shadow: var(--shadow);
    }
    
    .num-btn:hover:not(:disabled) {
        background: var(--gold);
        color: var(--ink);
    }
    
    .text-input:hover {
        border-color: var(--burgundy);
    }
    
    .submit-btn:hover:not(:disabled) {
        transform: translateY(-3px);
        box-shadow: var(--shadow-gold);
    }
    
    .submit-btn:hover:not(:disabled) .btn-arrow {
        transform: translateX(5px);
    }
    
    .suit:hover {
        transform: scale(1.3) rotate(15deg);
    }
}
