/* ========================================
   Variables CSS
   ======================================== */
:root {
    /* Colores principales */
    --ivory: #ebe8e0;
    --cream: #e8e4da;
    --sage: #7a8270;
    --sage-dark: #3a4534;
    --sage-light: #a8b09d;
    --gold: #e6a623;
    --gold-soft: #ddb968;
    --terracotta: #996b4f;
    --olive: #7a8270;
    --carbon: #292929;
    --countdown: #7a8270;
    
    /* Sistema de colores */
    --background: #ebe8e0;
    --foreground: #3a4534;
    --card: #e8e4da;
    --primary: #3a4534;
    --secondary: #a8b09d;
    --accent: #7a8270;
    --muted: #c9ccc3;
    --border: #b8bdb0;
    
    /* Tipografía */
    --font-display: "Cormorant Garamond", serif;
    --font-script: "Great Vibes", cursive;
    --font-body: "Lora", serif;
    
    /* Espaciado */
    --radius: 0.5rem;
    
    /* Sombras */
    --shadow-soft: 0 2px 15px -3px rgba(58, 69, 52, 0.08), 
                   0 4px 6px -2px rgba(58, 69, 52, 0.04);
    --shadow-elegant: 0 10px 40px -10px rgba(58, 69, 52, 0.15), 
                      0 4px 15px -3px rgba(58, 69, 52, 0.08);
    --shadow-lifted: 0 20px 50px -15px rgba(58, 69, 52, 0.2), 
                     0 8px 20px -5px rgba(58, 69, 52, 0.1);
    
    /* Transiciones */
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ========================================
   Reset y Base
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    
    /* Textura de papel */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
    background-blend-mode: overlay;
    background-size: 200px;
}

/* Fuentes */
.font-display {
    font-family: var(--font-display);
}

.font-script {
    font-family: var(--font-script);
}

.font-body {
    font-family: var(--font-body);
}

/* Utilidades */
.hidden {
    display: none !important;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-padding {
    padding: 3rem 0;
}

@media (min-width: 768px) {
    .section-padding {
        padding: 5rem 0;
    }
}

/* ========================================
   Video de Introducción
   ======================================== */
.intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: #ebe8e0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.intro-overlay.fade-out {
    opacity: 0;
    visibility: hidden;
}

.intro-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.clickeable-video {
    cursor: pointer;
}

/* Pantalla de carga */
.loading-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--ivory);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loading-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.loading-title {
    font-size: 3rem;
    color: var(--sage-dark);
    margin-bottom: 1.5rem;
    font-weight: 400;
    opacity: 0;
    animation: fadeInScale 1.5s ease-out forwards;
}

@media (min-width: 768px) {
    .loading-title {
        font-size: 4.5rem;
    }
}

.loading-spinner-container {
    position: relative;
    width: 60px;
    height: 60px;
    margin-bottom: 2rem;
}

.spinner-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(122, 130, 112, 0.1);
    border-top: 1px solid var(--sage-dark);
    border-radius: 50%;
    animation: spin 2s linear infinite;
}

.spinner-ring:nth-child(2) {
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    border: 1px solid rgba(122, 130, 112, 0.1);
    border-bottom: 1px solid var(--gold-soft);
    animation: spin 3s linear reverse infinite;
}

.loading-text {
    font-size: 0.875rem;
    color: var(--sage);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    font-family: var(--font-body);
    animation: pulseText 2s ease-in-out infinite;
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulseText {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}





/* ========================================
   Control de Música
   ======================================== */
.music-toggle {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: rgba(58, 69, 52, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-elegant);
    backdrop-filter: blur(4px);
    z-index: 1000;
    transition: var(--transition-smooth);
}

.music-toggle:hover {
    background: var(--sage-dark);
    transform: scale(1.1);
    box-shadow: var(--shadow-lifted);
}

.music-icon {
    width: 28px;
    height: 28px;
}

/* ========================================
   Hero Section
   ======================================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--ivory);
    z-index: 100; /* Asegura estar por encima de las hojas */
}

.hero-video-container {
    position: absolute;
    inset: 0;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 0 1.5rem;
    max-width: 64rem;
    margin: 0 auto;
}

/* Pretitle - "Nos casamos" */
.hero-pretitle {
    font-size: 0.75rem;
    letter-spacing: 0.5em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .hero-pretitle {
        font-size: 0.875rem;
    }
}

/* Title - Nombres */
.hero-title {
    margin-bottom: 1rem;
}

.hero-name {
    display: block;
    font-size: 3rem;
    line-height: 1.1;
    color: white;
    filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.3));
}

@media (min-width: 768px) {
    .hero-name {
        font-size: 5rem;
    }
}

@media (min-width: 1024px) {
    .hero-name {
        font-size: 6rem;
    }
}

.hero-ampersand {
    display: block;
    font-size: 1.5rem;
    font-weight: 300;
    font-style: italic;
    color: var(--gold);
    margin: 0.5rem 0;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.2));
}

@media (min-width: 768px) {
    .hero-ampersand {
        font-size: 1.875rem;
        margin: 1rem 0;
    }
}

@media (min-width: 1024px) {
    .hero-ampersand {
        font-size: 2.25rem;
    }
}

/* Hero Divider */
.hero-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 1.5rem 0;
}

@media (min-width: 768px) {
    .hero-divider {
        margin: 2rem 0;
    }
}

.divider-line {
    height: 1px;
    width: 3rem;
    background: rgba(255, 255, 255, 0.5);
}

@media (min-width: 768px) {
    .divider-line {
        width: 5rem;
    }
}

.divider-icon {
    font-size: 1.125rem;
    color: var(--gold);
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.2));
}

/* Hero Verse */
.hero-verse {
    max-width: 400px;
    margin: 0 auto 2rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
}

.hero-verse-ref {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

@media (min-width: 768px) {
    .hero-verse {
        font-size: 1.1rem;
        max-width: 500px;
    }
}

/* Hero Date */
.hero-date {
    font-size: 1rem;
    letter-spacing: 0.1em;
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.2));
}

@media (min-width: 768px) {
    .hero-date {
        font-size: 1.125rem;
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
    color: white;
    cursor: pointer;
    background: none;
    border: none;
    transition: color 0.3s ease;
}

.scroll-indicator:hover {
    color: rgba(255, 255, 255, 0.8);
}

.scroll-text {
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

.scroll-arrow {
    width: 1.25rem;
    height: 1.25rem;
    animation: bounceArrow 2s ease-in-out infinite;
}

@keyframes bounceArrow {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(0.3rem);
    }
}

/* ========================================
   Photo Carousel Section
   ======================================== */
.carousel-section {
    background-color: var(--ivory);
    overflow: hidden;
}

.carousel-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1rem;
}

.carousel-wrapper {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 1.5rem;
    padding-bottom: 2rem;
    -webkit-overflow-scrolling: touch;
}

.carousel-wrapper::-webkit-scrollbar {
    display: none;
}

.carousel-slide {
    flex: 0 0 auto;
    scroll-snap-align: center;
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    height: 400px; /* Reducido un poco para que quepan mejor las horizontales en móvil */
    box-shadow: var(--shadow-elegant);
    border: 6px solid white; 
    background: white;
}

@media (min-width: 768px) {
    .carousel-slide {
        height: 550px;
        border-width: 8px;
    }
}

.carousel-image {
    width: auto;
    height: 100%;
    max-width: none; /* Quitamos el max-width para que las horizontales puedan expandirse */
    object-fit: contain; 
    transition: transform 0.8s ease;
}

.carousel-slide:hover .carousel-image {
    transform: scale(1.05);
}

.carousel-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--sage-light);
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.carousel-dot.active {
    background: var(--sage-dark);
    transform: scale(1.2);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    color: var(--sage-dark);
    border: none;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    opacity: 0;
}

.carousel-container:hover .carousel-btn {
    opacity: 1;
}

.carousel-btn:hover {
    background: white;
    color: var(--sage);
}

.carousel-btn.prev { left: -1rem; }
.carousel-btn.next { right: -1rem; }

@media (max-width: 768px) {
    .carousel-btn { display: none; } /* En móvil se usa el dedo */
}

/* ========================================
   Countdown Section
   ======================================== */
.countdown-section {
    background-color: var(--ivory);
    position: relative;
    overflow: hidden;
}

.countdown-container {
    max-width: 64rem;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.countdown-circle-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 767px) {
.countdown-circle-wrapper {
        max-width: 320px;
    }
}

.countdown-svg-frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.countdown-svg-frame svg {
    width: 110%;
    height: 110%;
}

.countdown-circle {
    position: relative;
    width: 75%;
    height: 75%;
    background: white;
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.countdown-circle-inner {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.countdown-circle-title {
    font-size: 2.5rem;
    color: #bfa16d; /* Un tono dorado/beige similar a la imagen */
    font-weight: 300;
}

@media (max-width: 767px) {
    .countdown-circle-title {
        font-size: 1.8rem;
        margin-bottom: -0.5rem;
    }
}

.countdown-circle-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 280px;
}

.countdown-col {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.countdown-circle-num {
    font-size: 2rem;
    color: #666;
    font-weight: 600;
}

.countdown-circle-num.animate {
    animation: numberSwap 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes numberSwap {
    0% {
        transform: translateY(10px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.countdown-circle-lab {
    font-size: 0.9rem;
    color: #bfa16d;
    font-weight: 400;
}

@media (max-width: 767px) {
    .countdown-circle-num {
        font-size: 1.4rem;
    }
    .countdown-circle-lab {
        font-size: 0.75rem;
    }
}

.countdown-divider-line {
    width: 1px;
    height: 40px;
    background: #ddd;
}

.countdown-heart {
    color: #7a8270; /* Color sage para el corazón */
    margin-top: 0.5rem;
    animation: heartBeat 1.5s ease-in-out infinite;
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    14% { transform: scale(1.3); }
    28% { transform: scale(1); }
    42% { transform: scale(1.3); }
    70% { transform: scale(1); }
}

@media (max-width: 767px) {
    .countdown-heart svg {
        width: 24px;
        height: 24px;
    }
}

/* ========================================
   Cards
   ======================================== */
.card-elegant {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border: 1.5px solid rgba(184, 189, 176, 0.25);
    border-radius: calc(var(--radius) + 4px);
    padding: 2.5rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    transition: var(--transition-smooth);
}

.card-elegant:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

@media (min-width: 768px) {
    .card-elegant {
        padding: 3.5rem;
    }
}

.card-title {
    font-size: 1.5rem;
    color: var(--sage-dark);
    margin-bottom: 1rem;
    font-weight: 600;
}

/* ========================================
   Section Titles (General)
   ======================================== */
.section-title {
    font-size: 2.5rem;
    text-align: center;
    color: var(--sage-dark);
    margin-bottom: 3rem;
    font-weight: 400;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 3.5rem;
    }
}

.section-subtitle {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
    color: var(--sage);
    font-size: 1.125rem;
}

#invitation-title {
    font-size: 1.25rem;
    color: var(--sage);
    font-family: var(--font-body);
    margin-top: -0.5rem;
    margin-bottom: 1rem;
    font-style: italic;
    opacity: 0.9;
    font-weight: 400;
    text-align: center;
    display: block;
}

.deadline-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1.5rem;
    background: linear-gradient(135deg, rgba(168, 176, 157, 0.08) 0%, rgba(168, 176, 157, 0.15) 100%);
    border: 1.5px solid rgba(168, 176, 157, 0.25);
    border-radius: 2rem;
    font-size: 0.8rem;
    color: var(--sage-dark);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 0;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    text-align: center;
}

.deadline-badge::before {
    content: '📅';
    font-size: 1rem;
}

/* ========================================
   Location Section
   ======================================== */
.location-section {
    background-color: hsl(var(--ivory));
}

.location-container {
    max-width: 64rem;
    margin: 0 auto;
}

/* Header */
.location-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-subtitle-location {
    color: rgba(58, 69, 52, 0.7);
    letter-spacing: 0.05em;
}

/* Card */
.location-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(122, 130, 112, 0.3);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    text-align: center;
}

@media (min-width: 768px) {
    .location-card {
        padding: 3rem;
    }
}

/* Icon */
.location-icon-wrapper {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: rgba(122, 130, 112, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.location-icon {
    width: 1.75rem;
    height: 1.75rem;
    color: var(--sage-dark);
}

/* Title */
.location-card-title {
    font-size: 1.5rem;
    color: var(--sage-dark);
    margin-bottom: 1rem;
}

/* Info */
.location-info {
    margin-bottom: 1.5rem;
}

.location-name-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.location-name {
    font-size: 1.25rem;
    color: var(--sage-dark);
}

.location-time-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    color: rgba(58, 69, 52, 0.7);
}

.time-icon {
    width: 1rem;
    height: 1rem;
}

/* Image */
.location-image-wrapper {
    margin-bottom: 1.5rem;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(122, 130, 112, 0.3);
    position: relative;
}

.location-image-wrapper:hover .location-image {
    transform: scale(1.05);
}

.location-image {
    width: 100%;
    height: 16rem;
    object-fit: cover;
    transition: transform 0.7s ease;
}

@media (min-width: 768px) {
    .location-image {
        height: 20rem;
    }
}

.location-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(58, 69, 52, 0.4), transparent);
    pointer-events: none;
}

/* Map */
.location-map-wrapper {
    margin-bottom: 1.5rem;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(122, 130, 112, 0.3);
}

.location-map {
    width: 100%;
    height: 200px;
    border: 0;
    filter: sepia(0.15);
    transition: filter 0.5s ease;
}

.location-map:hover {
    filter: sepia(0);
}

/* Buttons */
.location-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    justify-content: center;
}

@media (min-width: 640px) {
    .location-buttons {
        flex-direction: row;
    }
}

.location-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    height: 2.25rem;
    padding: 0 0.75rem;
    border: 1px solid rgba(58, 69, 52, 0.4);
    color: var(--sage-dark);
    background: hsl(var(--background));
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-family: var(--font-body);
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
    white-space: nowrap;
}

.location-btn:hover {
    background: var(--sage-dark);
    color: white;
    border-color: var(--sage-dark);
}

.icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* ========================================
   Botones
   ======================================== */
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 1.5px solid rgba(58, 69, 52, 0.4);
    color: var(--sage-dark);
    background: transparent;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-family: var(--font-display);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
    text-align: center;
}

.btn-outline:hover {
    background: var(--sage-dark);
    color: white;
    border-color: var(--sage-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-elegant);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, var(--sage-dark) 0%, var(--sage) 100%);
    color: white;
    border: none;
    padding: 1.1rem 2.5rem;
    border-radius: var(--radius);
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
    width: 100%;
    box-shadow: 0 4px 15px rgba(122, 130, 112, 0.25);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(122, 130, 112, 0.35);
}

.btn-primary:active {
    transform: translateY(-1px);
    box-shadow: 0 2px 10px rgba(122, 130, 112, 0.25);
}

.btn-icon {
    width: 20px;
    height: 20px;
}

/* ========================================
   Dress Code Section
   ======================================== */
.dresscode-section {
    background-color: var(--ivory);
    text-align: center;
}

.dresscode-container {
    max-width: 40rem;
    margin: 0 auto;
}

.dresscode-subtitle {
    font-size: 1.25rem;
    color: var(--sage);
    margin-bottom: 2.5rem;
    font-style: italic;
}

.dresscode-type {
    font-family: var(--font-display);
    font-size: 1.75rem;
    color: var(--sage-dark);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.no-colors-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--sage-dark);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
    display: inline-block;
    border-bottom: 1.5px solid var(--sage-dark);
    padding-bottom: 0.5rem;
}

.swatches-grid {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 1rem;
}

.swatch-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.swatch-circle {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 50%;
    border: 1px solid rgba(122, 130, 112, 0.4);
    box-shadow: var(--shadow-soft);
}

.swatch-circle.white {
    background-color: #ffffff;
}

.swatch-circle.black {
    background-color: #000000;
}

.swatch-label {
    font-family: var(--font-display);
    font-size: 0.875rem;
    color: var(--sage-dark);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* ========================================
   Program Section (Timeline Horizontal/Vertical)
   ======================================== */
.program-section {
    background-color: hsl(var(--ivory));
}

@media (min-width: 768px) {
    .program-section {
        /* Se usa section-padding */
    }
}

.program-container {
    max-width: 80rem;
    margin: 0 auto;
}

/* Header */
.program-header {
    text-align: center;
    margin-bottom: 4rem;
}

/* Desktop Timeline (Horizontal) - Hidden on mobile */
.program-desktop {
    display: none;
    position: relative;
}

@media (min-width: 768px) {
    .program-desktop {
        display: block;
    }
}

/* Horizontal Line */
.program-line-horizontal {
    position: absolute;
    top: 4rem;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(122, 130, 112, 0.3);
}

/* Events Grid (Desktop) */
.program-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem 0.5rem;
}

@media (min-width: 1024px) {
    .program-grid {
        grid-template-columns: repeat(8, 1fr);
    }
}

.program-event {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: var(--transition-smooth);
}

.program-event:hover .program-icon-wrapper {
    border-color: var(--sage-dark);
    transform: scale(1.1);
}

.program-event:hover .program-time {
    background: var(--sage);
}

/* Time Badge */
.program-time {
    background: var(--sage-dark);
    color: rgb(241, 235, 223);
    padding: 0.4rem 0.8rem;
    border-radius: 9999px;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 1rem;
    transition: background-color 0.3s ease;
}

/* Icon Wrapper */
.program-icon-wrapper {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: white;
    border: 2px solid rgba(122, 130, 112, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sage-dark);
    margin-bottom: 1rem;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    z-index: 10;
    position: relative;
}

.program-icon {
    width: 1.25rem;
    height: 1.25rem;
}

/* Event Title & Description */
.program-event-title {
    font-size: 1rem;
    color: var(--sage-dark);
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

@media (min-width: 1024px) {
    .program-event-title {
        font-size: 1.125rem;
    }
}

.program-event-desc {
    font-size: 0.75rem;
    color: rgba(58, 69, 52, 0.5);
    line-height: 1.5;
    padding: 0 0.25rem;
}

/* Mobile Timeline (Vertical) - Hidden on desktop */
.program-mobile {
    display: block;
    position: relative;
}

@media (min-width: 768px) {
    .program-mobile {
        display: none;
    }
}

/* Vertical Line */
.program-line-vertical {
    position: absolute;
    left: 1.5rem;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(122, 130, 112, 0.3);
}

/* Events List (Mobile) */
.program-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.program-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding-left: 0.25rem;
}

/* Icon Wrapper Mobile */
.program-icon-wrapper-mobile {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: white;
    border: 2px solid rgba(122, 130, 112, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sage-dark);
    flex-shrink: 0;
    box-shadow: var(--shadow-soft);
    z-index: 10;
    position: relative;
}

/* Item Content */
.program-item-content {
    flex: 1;
    padding-top: 0.25rem;
}

.program-item-header {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    margin-bottom: 0.125rem;
}

.program-time-mobile {
    background: var(--sage-dark);
    color: rgb(241, 235, 223);
    padding: 0.2rem 0.6rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.program-item-title {
    font-size: 1.125rem;
    color: var(--sage-dark);
}

.program-item-desc {
    font-size: 0.875rem;
    color: rgba(58, 69, 52, 0.6);
}

/* ========================================
   FAQ Section
   ======================================== */
.faq-section {
    background: var(--background);
}

@media (min-width: 768px) {
    .faq-section {
        /* Se usa section-padding */
    }
}

.faq-container {
    max-width: 48rem;
    margin: 0 auto;
}

.faq-header {
    text-align: center;
    margin-bottom: 3rem;
}

.faq-icon {
    width: 2rem;
    height: 2rem;
    margin: 0 auto 1rem;
    color: var(--sage-dark);
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(122, 130, 112, 0.3);
    padding: 0 1.5rem;
    border-radius: var(--radius);
    transition: var(--transition-smooth);
}

.faq-item:hover {
    box-shadow: var(--shadow-soft);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1rem 0;
    font-family: var(--font-display);
    font-size: 1.125rem;
    color: var(--sage-dark);
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: var(--transition-smooth);
}

.faq-question:hover {
    color: var(--sage);
}

.faq-chevron {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    transition: transform 0.3s ease;
    margin-left: 1rem;
}

.faq-item.active .faq-chevron {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    color: var(--sage);
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding-bottom: 1rem;
}

/* ========================================
   RSVP Section
   ======================================== */
.rsvp-section {
    background: var(--background);
}

.rsvp-form {
    max-width: 650px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 2rem;
}

.form-label {
    display: block;
    margin-bottom: 0.75rem;
    color: var(--sage-dark);
    font-weight: 500;
    font-family: var(--font-display);
    font-size: 1.05rem;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 1.5px solid rgba(184, 189, 176, 0.3);
    border-radius: var(--radius);
    background: white;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--foreground);
    transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--sage);
    box-shadow: 0 0 0 4px rgba(122, 130, 112, 0.08);
    transform: translateY(-1px);
}

.form-textarea {
    resize: vertical;
    min-height: 110px;
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .checkbox-group {
        grid-template-columns: repeat(4, 1fr);
    }
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--sage);
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--sage-dark);
}

.rsvp-success {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--radius);
    box-shadow: var(--shadow-elegant);
}

/* Banner de modo edición */
.edit-mode-banner {
    margin-bottom: 2rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, rgba(168, 176, 157, 0.08) 0%, rgba(168, 176, 157, 0.12) 100%);
    border: 1.5px solid rgba(168, 176, 157, 0.25);
    border-radius: var(--radius);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.edit-mode-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--sage-light), var(--sage));
}

.edit-mode-banner p {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--sage-dark);
    line-height: 1.6;
    margin: 0;
}

/* Guests Container */
#guests-container {
    margin-bottom: 2.5rem;
}

.guest-item {
    padding: 1.5rem 1.75rem;
    background: white;
    border-radius: calc(var(--radius) + 2px);
    border: 1.5px solid rgba(122, 130, 112, 0.15);
    box-shadow: 0 3px 12px rgba(0,0,0,0.03);
    transition: var(--transition-smooth);
    margin-bottom: 1.5rem;
    position: relative;
}

.guest-item:last-child {
    margin-bottom: 0;
}

.guest-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--sage-light) 0%, var(--sage) 100%);
    border-radius: var(--radius) 0 0 var(--radius);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.guest-item:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    border-color: var(--sage-light);
    transform: translateY(-2px);
}

.guest-item:hover::before {
    opacity: 1;
}

.guest-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

@media (max-width: 520px) {
    .guest-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

.guest-header.has-plus-one {
    margin-bottom: 1.25rem;
}

.guest-name {
    font-family: var(--font-display);
    font-size: 1.35rem;
    color: var(--sage-dark);
    font-weight: 500;
    letter-spacing: 0.01em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.guest-name::before {
    content: '✦';
    font-size: 0.8em;
    color: var(--gold-soft);
    opacity: 0.7;
}

.guest-status-toggle {
    display: flex;
    background: rgba(122, 130, 112, 0.06);
    border-radius: 2rem;
    padding: 0.3rem;
    gap: 0.25rem;
    border: 1px solid rgba(122, 130, 112, 0.12);
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.03);
}

.status-btn {
    padding: 0.5rem 1.5rem;
    border-radius: 2rem;
    font-size: 0.85rem;
    font-family: var(--font-body);
    cursor: pointer;
    border: none;
    background: transparent;
    color: var(--sage);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    font-weight: 500;
    position: relative;
}

@media (max-width: 520px) {
    .guest-status-toggle {
        width: 100%;
    }
    
    .status-btn {
        flex: 1;
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
}

.status-btn:hover {
    color: var(--sage-dark);
}

.status-btn.active {
    background: white;
    color: var(--sage-dark);
    box-shadow: 0 2px 8px rgba(0,0,0,0.12), 0 1px 3px rgba(0,0,0,0.08);
    font-weight: 600;
}

.status-btn.active.confirmed {
    background: linear-gradient(135deg, var(--sage-dark) 0%, var(--sage) 100%);
    color: white;
}

.status-btn.declined.active {
    background: linear-gradient(135deg, #a67c52 0%, #8a6644 100%);
    color: white;
}

.plus-one-input-group {
    margin-top: 1.25rem;
    animation: fadeIn 0.4s ease-out;
    border-top: 1.5px dashed rgba(122, 130, 112, 0.2);
    padding-top: 1.25rem;
}

.plus-one-input-group.hidden {
    display: none;
}

/* Estados de RSVP: Loading, Error, Deadline */
#rsvp-loading {
    text-align: center;
    padding: 3rem 1.5rem;
}

#rsvp-loading p {
    font-size: 1.05rem;
    color: var(--sage);
    margin: 0;
}

#rsvp-not-found {
    text-align: center;
    padding: 3rem 2rem;
}

#rsvp-not-found h3 {
    font-weight: 500;
}

#rsvp-not-found p {
    font-size: 1.05rem;
    line-height: 1.7;
}

#rsvp-not-found div[style*="background: rgba(168"] {
    text-align: left;
}

#rsvp-not-found div[style*="background: rgba(168"] p {
    font-size: 0.95rem;
}

#rsvp-deadline-passed {
    text-align: center;
    padding: 3rem 2rem;
}

#rsvp-deadline-passed .mb-4 {
    margin-bottom: 1.5rem;
}

#rsvp-deadline-passed h3 {
    color: var(--sage-dark);
    margin-bottom: 1rem;
    font-family: var(--font-display);
}

#rsvp-deadline-passed p {
    color: var(--sage);
    line-height: 1.7;
    max-width: 500px;
    margin: 0 auto;
}

.success-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--sage-dark) 0%, var(--sage) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    animation: scaleIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 8px 25px rgba(122, 130, 112, 0.25);
    position: relative;
}

.success-icon::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(122, 130, 112, 0.15) 0%, transparent 70%);
    z-index: -1;
}

.success-icon svg {
    width: 45px;
    height: 45px;
    stroke: white;
    stroke-width: 2.5;
}

@keyframes scaleIn {
    0% {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }
    70% {
        transform: scale(1.1) rotate(10deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.success-title {
    font-size: 2.25rem;
    color: var(--sage-dark);
    margin-bottom: 1.25rem;
    font-weight: 400;
}

.success-message {
    font-size: 1.125rem;
    color: var(--sage);
    line-height: 1.7;
}

/* ========================================
   Gifts Section
   ======================================== */
.gifts-section {
    background: var(--background);
}

.gifts-card {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.gifts-message {
    font-size: 1.125rem;
    color: var(--sage);
    line-height: 1.8;
    margin-bottom: 3rem;
}

.gifts-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
    .gifts-options {
        grid-template-columns: 1fr 1fr;
    }
}

.gift-option-card {
    background: rgba(255, 255, 255, 0.6);
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid rgba(122, 130, 112, 0.2);
    transition: var(--transition-smooth);
}

.gift-option-card:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-5px);
    box-shadow: var(--shadow-soft);
}

.gift-icon {
    width: 2.5rem;
    height: 2.5rem;
    color: var(--sage-dark);
    margin-bottom: 1rem;
}

.gift-option-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--sage-dark);
    margin-bottom: 0.75rem;
}

.gift-option-text {
    font-size: 0.95rem;
    color: var(--sage);
    line-height: 1.6;
}

.bank-details-new {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--ivory);
    border-radius: calc(var(--radius) - 4px);
    display: inline-block;
}

.bank-info-new {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--sage-dark);
    letter-spacing: 0.05em;
}

.gifts-thanks {
    font-size: 1.25rem;
    color: var(--sage-dark);
    font-style: italic;
}

/* ========================================
   Dividers & Ornaments
   ======================================== */
.divider-ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem 0;
    color: var(--gold-soft);
}

.ornament-icon {
    width: 2rem;
    height: 2rem;
    opacity: 0.6;
}

.divider-ornament::before,
.divider-ornament::after {
    content: "";
    height: 1px;
    width: 3rem;
    background: linear-gradient(to var(--direction, right), transparent, rgba(122, 130, 112, 0.3));
}

.divider-ornament::before {
    --direction: left;
    margin-right: 1.5rem;
}

.divider-ornament::after {
    --direction: right;
    margin-left: 1.5rem;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--sage-dark);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer-names {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 400;
}

.footer-date {
    font-size: 1.25rem;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.footer-location {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.footer .divider-ornament .ornament {
    color: rgba(255, 255, 255, 0.5);
}

.footer-tagline {
    font-size: 1rem;
    font-style: italic;
    opacity: 0.8;
}

/* ========================================
   Animaciones de Scroll (Mejoradas)
   ======================================== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

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

/* Staggered Reveal for children */
.reveal-stagger > * {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.visible .reveal-stagger > * {
    opacity: 1;
    transform: translateY(0);
}

/* Specific delays for staggered children */
.visible .reveal-stagger > *:nth-child(1) { transition-delay: 0.1s; }
.visible .reveal-stagger > *:nth-child(2) { transition-delay: 0.2s; }
.visible .reveal-stagger > *:nth-child(3) { transition-delay: 0.3s; }
.visible .reveal-stagger > *:nth-child(4) { transition-delay: 0.4s; }
.visible .reveal-stagger > *:nth-child(5) { transition-delay: 0.5s; }
.visible .reveal-stagger > *:nth-child(6) { transition-delay: 0.6s; }
.visible .reveal-stagger > *:nth-child(7) { transition-delay: 0.7s; }
.visible .reveal-stagger > *:nth-child(8) { transition-delay: 0.8s; }

/* Especial reveal para elementos individuales */
.reveal-item {
    opacity: 0;
    transform: translateY(20px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.visible .reveal-item {
    opacity: 1;
    transform: translateY(0);
}

/* Reveal scale effect */
.reveal-scale {
    opacity: 0;
    transform: scale(0.8) translateY(30px);
    transition: opacity 1.5s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.visible .reveal-scale {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* Fade In animation for dynamic elements */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   Section Divider
   ======================================== */
.leaves-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 90;
    overflow: hidden;
    opacity: 0;
    transition: opacity 1s ease;
}

.leaves-container.active {
    opacity: 1;
}

.leaf-item {
    position: absolute;
    top: -50px;
    pointer-events: none;
}

.leaf-item svg {
    fill: var(--sage-light);
    opacity: 0.4;
    filter: drop-shadow(0 2px 4px rgba(58, 69, 52, 0.1));
}

@keyframes fall-and-sway {
    0% {
        transform: translateY(-10vh) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    25% {
        transform: translateY(25vh) translateX(var(--sway-1, 50px)) rotate(90deg);
    }
    50% {
        transform: translateY(50vh) translateX(var(--sway-2, -50px)) rotate(180deg);
    }
    75% {
        transform: translateY(75vh) translateX(var(--sway-3, 50px)) rotate(270deg);
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(110vh) translateX(var(--sway-4, -20px)) rotate(360deg);
        opacity: 0;
    }
}

/* ========================================
   Section Divider
   ======================================== */
.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0;
    background-color: var(--ivory);
}

.divider-line-section {
    height: 1px;
    width: 4rem;
    background: rgba(58, 69, 52, 0.4);
}

@media (min-width: 768px) {
    .divider-line-section {
        width: 6rem;
    }
}

.divider-icon-section {
    margin: 0 1rem;
    color: rgba(58, 69, 52, 0.5);
    font-size: 0.875rem;
}

/* ========================================
   Animaciones adicionales
   ======================================== */
@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    50% { opacity: 0.5; }
}

/* ========================================
   Animaciones del Hero (Entrada)
   ======================================== */
.hero-animate {
    opacity: 0;
    animation: heroFadeUp 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes heroFadeUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; }
.delay-5 { animation-delay: 1s; }
.delay-6 { animation-delay: 1.2s; }

/* ========================================
   Back to Top Button
   ======================================== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 50px;
    height: 50px;
    background: var(--ivory);
    color: var(--sage-dark);
    border: 1px solid rgba(122, 130, 112, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-elegant);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--sage-dark);
    color: white;
    transform: scale(1.1);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
}

@media (max-width: 767px) {
    .back-to-top {
        bottom: 1.5rem;
        left: 1.5rem;
        width: 45px;
        height: 45px;
    }
}

/* ========================================
   Responsive Mobile
   ======================================== */
@media (max-width: 767px) {
    .music-toggle {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 50px;
        height: 50px;
    }
    
    .music-icon {
        width: 24px;
        height: 24px;
    }
}

/* ========================================
   Custom Modal Component
   ======================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(58, 69, 52, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay:not(.hidden) {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: var(--ivory);
    border-radius: calc(var(--radius) + 4px);
    box-shadow: 0 20px 60px rgba(58, 69, 52, 0.3), 
                0 0 0 1px rgba(122, 130, 112, 0.1);
    max-width: 480px;
    width: 100%;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

.modal-overlay:not(.hidden) .modal-container {
    transform: scale(1) translateY(0);
}

.modal-content {
    padding: 2.5rem 2rem;
    text-align: center;
}

.modal-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(168, 176, 157, 0.15) 0%, rgba(168, 176, 157, 0.25) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.modal-icon.warning {
    background: linear-gradient(135deg, rgba(230, 166, 35, 0.15) 0%, rgba(221, 185, 104, 0.25) 100%);
}

.modal-icon.warning::before {
    content: '⚠️';
}

.modal-icon.error {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.15) 0%, rgba(239, 68, 68, 0.25) 100%);
}

.modal-icon.error::before {
    content: '❌';
}

.modal-icon.info {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(96, 165, 250, 0.25) 100%);
}

.modal-icon.info::before {
    content: 'ℹ️';
}

.modal-title {
    font-size: 1.5rem;
    color: var(--sage-dark);
    margin-bottom: 1rem;
    font-weight: 500;
    line-height: 1.3;
}

.modal-message {
    font-size: 1rem;
    color: var(--sage);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.modal-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.modal-btn {
    flex: 1;
    min-width: 120px;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius);
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    position: relative;
    overflow: hidden;
}

.modal-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.modal-btn:active::before {
    width: 300px;
    height: 300px;
}

.modal-btn-primary {
    background: linear-gradient(135deg, var(--sage-dark) 0%, var(--sage) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(122, 130, 112, 0.25);
}

.modal-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(122, 130, 112, 0.35);
}

.modal-btn-primary:active {
    transform: translateY(0);
}

.modal-btn-secondary {
    background: white;
    color: var(--sage-dark);
    border: 1.5px solid rgba(122, 130, 112, 0.3);
}

.modal-btn-secondary:hover {
    background: var(--cream);
    border-color: var(--sage);
    transform: translateY(-2px);
}

.modal-btn-secondary:active {
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 480px) {
    .modal-content {
        padding: 2rem 1.5rem;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .modal-btn {
        width: 100%;
    }
}

/* Animación de entrada */
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}