/* ===================================
   VARIABLES DE COLOR Y CONFIGURACIÓN
   =================================== */
:root {
    /* Colores principales - Dorado/Beige */
    --color-primary: #c9a961;
    --color-primary-light: #d4b876;
    --color-primary-medium: #b89650;
    --color-primary-dark: #8b7239;
    
    /* Colores de fondo - Tonos Beige/Crema */
    --bg-gradient-1: linear-gradient(135deg, #e8dcc4 0%, #d4c5a0 50%, #c9a961 100%);
    --bg-gradient-2: linear-gradient(135deg, #c9a961 0%, #d4b876 100%);
    --bg-gradient-3: linear-gradient(135deg, #faf8f3 0%, #f5f0e8 100%);
    --bg-gradient-4: linear-gradient(135deg, #fffdf8 0%, #faf7f0 100%);
    
    /* Colores de texto */
    --text-primary: #333;
    --text-secondary: #555;
    --text-tertiary: #666;
    --text-light: #888;
    --text-lighter: #999;
    --text-white: white;
    
    /* Colores de énfasis */
    --color-purple-300: #e8dcc4;
    --color-heart: #d4b876;
    --color-bg-light: #faf8f3;
    
    /* Sombras - Ajustadas a tonos dorados */
    --shadow-light: 0 10px 30px rgba(201, 169, 97, 0.2);
    --shadow-medium: 0 10px 30px rgba(201, 169, 97, 0.3);
    --shadow-heavy: 0 15px 40px rgba(201, 169, 97, 0.4);
    --shadow-xl: 0 20px 40px rgba(201, 169, 97, 0.4);
    
    /* Fuente */
    --font-family: 'Georgia', serif;
}

/* ===================================
   RESET Y BASE
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background: var(--text-white);
    color: var(--text-primary);
    overflow-x: hidden;
}

/* ===================================
   ANIMACIONES
   =================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes heartBeat {
    0%, 100% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.1);
    }
    50% {
        transform: scale(1);
    }
    75% {
        transform: scale(1.05);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

@keyframes rotateCountdown {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(0.95);
    }
}

@keyframes slideInScale {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes heartPulse {
    0% {
        transform: translate(-50%, -50%) scale(0.95);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
    }
    100% {
        transform: translate(-50%, -50%) scale(0.95);
    }
}

/* ===================================
   SECCIONES BASE
   =================================== */
.section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    position: relative;
}

/* ===================================
   ELEMENTOS DECORATIVOS FLOTANTES
   =================================== */
.floating-hearts {
    position: fixed;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.heart {
    position: absolute;
    font-size: 20px;
    opacity: 0.3;
    animation: float 6s infinite ease-in-out;
}

.heart:nth-child(1) {
    left: 10%;
    top: 20%;
    animation-delay: 0s;
}

.heart:nth-child(2) {
    left: 85%;
    top: 30%;
    animation-delay: 2s;
}

.heart:nth-child(3) {
    left: 20%;
    top: 60%;
    animation-delay: 4s;
}

.heart:nth-child(4) {
    left: 80%;
    top: 70%;
    animation-delay: 1s;
}

.heart:nth-child(5) {
    left: 50%;
    top: 15%;
    animation-delay: 3s;
}

/* ===================================
   HERO SECTION
   =================================== */
.hero {
    background: var(--bg-gradient-1);
    color: var(--text-white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 3s infinite;
}

.hero-content {
    z-index: 2;
    position: relative;
    animation: fadeInUp 1s ease-out;
}

.hero h2 {
    font-size: 1.5em;
    font-weight: 300;
    letter-spacing: 4px;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease-out 0.3s backwards;
}

.hero h1 {
    font-size: 5em;
    margin: 20px 0;
    font-weight: 300;
    letter-spacing: 12px;
    animation: fadeInUp 1s ease-out 0.6s backwards;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero .heart-divider {
    font-size: 2em;
    margin: 20px 0;
    animation: heartBeat 2s infinite;
}

.hero p {
    font-size: 1.4em;
    margin: 30px 0;
    font-style: italic;
    animation: fadeInUp 1s ease-out 0.9s backwards;
}

.btn {
    background: var(--text-white);
    color: var(--color-primary);
    padding: 18px 60px;
    border: none;
    border-radius: 50px;
    font-size: 1.2em;
    cursor: pointer;
    transition: all 0.4s ease;
    text-decoration: none;
    display: inline-block;
    margin-top: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 1s ease-out 1.2s backwards;
    font-family: var(--font-family);
    font-weight: bold;
}

.btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

/* ===================================
   FOTO VERTICAL
   =================================== */
.photo-vertical {
    width: 280px;
    height: 380px;
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    color: var(--text-white);
    box-shadow: var(--shadow-heavy);
    transition: transform 0.5s ease;
    margin: 30px auto;
    position: relative;
    overflow: hidden;
}

.photo-vertical:hover {
    transform: scale(1.05) rotate(2deg);
}

/* ===================================
   VERSO BÍBLICO
   =================================== */
.verse-section {
    background: var(--text-white);
    text-align: center;
    padding: 80px 20px;
}

.verse-section h3 {
    color: var(--color-primary);
    font-size: 2em;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease-out;
}

.verse-section p {
    font-size: 1.4em;
    font-style: italic;
    max-width: 800px;
    line-height: 2;
    color: var(--text-secondary);
    margin: 0 auto 40px;
    animation: fadeInUp 1s ease-out 0.3s backwards;
}

/* ===================================
   PADRES
   =================================== */
.parents-section {
    background: var(--bg-gradient-3);
    text-align: center;
    padding: 80px 20px;
}

.parents-section h2 {
    font-size: 3em;
    color: var(--color-primary);
    margin-bottom: 60px;
    animation: fadeInDown 1s ease-out;
}

.parents-container {
    display: flex;
    justify-content: center;
    gap: 120px;
    margin: 60px 0;
    flex-wrap: wrap;
}

.parent-group {
    position: relative;
    padding: 30px;
    animation: fadeInLeft 1s ease-out;
}

.parent-group:last-child {
    animation: fadeInRight 1s ease-out;
}

.parent-group::before {
    content: '🌸';
    font-size: 2em;
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
}

.parent-group h4 {
    color: var(--color-primary);
    font-size: 1.5em;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.parent-group p {
    font-size: 1.2em;
    margin: 10px 0;
    color: var(--text-tertiary);
}

.parents-message {
    max-width: 700px;
    font-size: 1.3em;
    line-height: 2;
    margin: 50px auto 0;
    color: var(--text-secondary);
    animation: fadeInUp 1s ease-out 0.6s backwards;
}

/* ===================================
   NOMBRES CON FONDO
   =================================== */
.names-section {
    background: var(--bg-gradient-2);
    color: var(--text-white);
    text-align: center;
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
}

.names-section::before {
    content: '♥';
    position: absolute;
    font-size: 20em;
    opacity: 0.1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: heartBeat 3s infinite;
}

.names-section h1 {
    font-size: 4em;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
    animation: fadeInDown 1s ease-out;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
}

.names-section h2 {
    font-size: 2em;
    font-weight: 300;
    position: relative;
    z-index: 2;
    margin-bottom: 40px;
    animation: fadeInUp 1s ease-out 0.3s backwards;
}

/* ===================================
   INVITACIÓN
   =================================== */
.invitation-section {
    background: var(--text-white);
    text-align: center;
    padding: 80px 20px;
}

.invitation-section p {
    font-size: 1.6em;
    line-height: 2;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
    animation: fadeIn 1.5s ease-out;
}

/* ===================================
   FECHA Y CALENDARIO
   =================================== */
.date-section {
    background: var(--bg-gradient-4);
    text-align: center;
    padding: 80px 20px;
}

.date-section h3 {
    font-size: 2.5em;
    color: var(--color-primary);
    margin-bottom: 50px;
    animation: fadeInDown 1s ease-out;
}

/* Cuenta regresiva con corazones */
.countdown {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 500px;
    margin: 50px auto;
    padding: 0 20px;
}

.countdown-item {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.countdown-heart {
    width: 140px;
    height: 140px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.countdown-heart::before {
    content: '♥';
    position: absolute;
    font-size: 150px;
    color: var(--color-heart);
    opacity: 0.3;
    z-index: 1;
}

.countdown-heart.pulse::before {
    animation: heartBeat 0.6s ease-out;
}

.countdown-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.countdown-content span {
    display: block;
    font-size: 3em;
    font-weight: bold;
    color: var(--color-primary);
    line-height: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.countdown-content.pulse span {
    animation: slideInScale 0.5s ease-out;
}

.countdown-content p {
    font-size: 1em;
    margin-top: 8px;
    color: var(--text-light);
    font-weight: 500;
}

/* Calendario en forma de corazón */
.calendar {
    background: var(--text-white);
    padding: 40px;
    max-width: 450px;
    margin: 40px auto;
    box-shadow: var(--shadow-medium);
    animation: fadeInUp 1s ease-out 0.6s backwards;
    border-radius: 50% 50% 0 0;
    position: relative;
}

.calendar::before,
.calendar::after {
    content: '';
    position: absolute;
    top: 0;
    width: 50%;
    height: 80%;
    background: var(--text-white);
    border-radius: 50% 50% 0 0;
    box-shadow: 0 5px 20px rgba(201, 169, 97, 0.2);
}

.calendar::before {
    left: -25%;
}

.calendar::after {
    right: -25%;
}

.calendar-content {
    position: relative;
    z-index: 2;
}

.calendar-header {
    font-size: 1.8em;
    color: var(--color-primary);
    margin-bottom: 25px;
    font-weight: bold;
    animation: fadeInDown 1s ease-out 0.8s backwards;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    text-align: center;
}

.calendar-day {
    padding: 8px;
    font-size: 0.9em;
    color: var(--text-lighter);
    font-weight: bold;
    animation: fadeIn 1s ease-out 1s backwards;
}

.calendar-date {
    padding: 10px;
    border-radius: 50%;
    transition: all 0.3s;
    cursor: pointer;
    animation: fadeIn 1s ease-out 1.2s backwards;
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.calendar-date:hover {
    background: var(--color-bg-light);
    transform: scale(1.1);
}

.calendar-date.highlighted {
    background: none;
    box-shadow: none;
    color: var(--text-white);
    font-weight: bold;
    transform: scale(1.0);
    z-index: 2;
}

.calendar-date.highlighted::after {
    content: '';
    position: absolute;
    width: 45px;
    height: 45px;
    top: 70%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCI+PHBhdGggZmlsbD0icmVkIiBkPSJNMTIgMi4xNjNhNS40MzEgNS40MzEgMCAwIDAtNy43MSAwQzEuNDkgNS40MjkgMS42OSA5LjUzMiA2LjQgMTIuOTY0bDUuNiA1LjA2MyA1LjYtNS4wNjNjNC43MS0zLjQzMiA0LjkxLTYuNTM1IDEuMjktMTAuNzAxbC0uMDMtLjA0YTUuNDMxIDUuNDMxIDAgMCAwLTcuNzEtLjAxWiIvPjwvc3ZnPg==');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: drop-shadow(0 5px 15px rgba(201, 169, 97, 0.7)) hue-rotate(40deg) saturate(180%) brightness(1.2);
    animation: heartPulse 1.5s infinite;
    z-index: -1;
}

/* ===================================
   MAPA
   =================================== */
.map-section {
    background: var(--text-white);
    text-align: center;
    padding: 80px 20px;
}

.map-section h3 {
    font-size: 2.5em;
    color: var(--color-primary);
    margin-bottom: 30px;
    animation: fadeInDown 1s ease-out;
}

.location-details {
    font-size: 1.5em;
    margin: 30px 0;
    animation: fadeIn 1s ease-out 0.3s backwards;
}

.location-details p {
    margin: 15px 0;
}

.location-details strong {
    color: var(--color-primary);
    font-size: 1.2em;
}

.map-container {
    width: 100%;
    max-width: 800px;
    height: 400px;
    margin: 40px auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    animation: fadeInUp 1s ease-out 0.6s backwards;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ===================================
   VESTIMENTA
   =================================== */
.dress-code {
    background: var(--bg-gradient-3);
    padding: 80px 20px;
}

.dress-code h3 {
    font-size: 2.5em;
    color: var(--color-primary);
    margin-bottom: 60px;
    text-align: center;
    animation: fadeInDown 1s ease-out;
}

.dress-items {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin: 50px 0;
    flex-wrap: wrap;
}

.dress-item {
    background: var(--text-white);
    padding: 40px;
    border-radius: 20px;
    max-width: 280px;
    box-shadow: var(--shadow-light);
    transition: all 0.4s ease;
    animation: fadeInLeft 1s ease-out;
}

.dress-item:last-child {
    animation: fadeInRight 1s ease-out;
}

.dress-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.dress-item h4 {
    color: var(--color-primary);
    font-size: 1.8em;
    margin-bottom: 20px;
}

.dress-item p {
    font-size: 1.2em;
    line-height: 1.8;
    color: var(--text-tertiary);
}

/* ===================================
   REGALOS
   =================================== */
.gifts-section {
    background: var(--text-white);
    padding: 80px 20px;
    text-align: center;
}

.gifts-section h3 {
    font-size: 2.5em;
    color: var(--color-primary);
    margin-bottom: 50px;
    animation: fadeInDown 1s ease-out;
}

.gifts-list {
    font-size: 1.6em;
    line-height: 2.5;
    margin-bottom: 40px;
}

.gifts-list p {
    margin: 20px 0;
    transition: transform 0.3s ease;
    display: inline-block;
    animation: fadeInLeft 1s ease-out;
}

.gifts-list p:last-child {
    animation: fadeInRight 1s ease-out;
}

.gifts-list p:hover {
    transform: scale(1.1);
}

/* ===================================
   RSVP
   =================================== */
.rsvp-section {
    background: var(--bg-gradient-2);
    color: var(--text-white);
    text-align: center;
    padding: 100px 20px;
}

.rsvp-section h3 {
    font-size: 3em;
    margin-bottom: 40px;
    animation: fadeInDown 1s ease-out;
}

.rsvp-section .btn {
    background: var(--text-white);
    color: var(--color-primary);
    animation: fadeInUp 1s ease-out 0.3s backwards;
    font-size: 1.3em;
}

/* ===================================
   CIERRE
   =================================== */
.closing {
    background: var(--bg-gradient-4);
    text-align: center;
    padding: 80px 20px;
}

.closing h2 {
    font-size: 2.5em;
    color: var(--color-primary);
    margin-bottom: 30px;
    animation: fadeInDown 1s ease-out;
}

.closing h1 {
    font-size: 4em;
    letter-spacing: 30px;
    margin: 40px 0;
    color: var(--color-primary);
    animation: fadeInUp 1s ease-out 0.3s backwards;
}

.closing p {
    font-size: 2em;
    color: var(--text-light);
    margin-top: 30px;
    animation: fadeInUp 1s ease-out 0.9s backwards;
}

/* ===================================
   BOTÓN DE MÚSICA
   =================================== */
#music-toggle {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 50;
    padding: 1rem;
    background-color: var(--color-primary-dark);
    color: var(--text-white);
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

#music-toggle:hover {
    transform: scale(1.1);
}

#music-toggle:focus {
    outline: none;
    box-shadow: 0 0 0 4px var(--color-purple-300), 0 25px 50px -12px rgba(0, 0, 0, 0.4);
}

#music-icon {
    width: 1.5rem;
    height: 1.5rem;
}

/* ===================================
   MEDIA QUERIES
   =================================== */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 3em;
        letter-spacing: 8px;
    }

    .names-section h1 {
        font-size: 2.5em;
    }

    .countdown {
        gap: 25px;
        max-width: 350px;
    }

    .countdown-heart {
        width: 120px;
        height: 120px;
    }

    .countdown-heart::before {
        font-size: 130px;
    }

    .countdown-content span {
        font-size: 2.5em;
    }

    .countdown-content p {
        font-size: 0.9em;
    }

    .parents-container {
        gap: 50px;
    }

    .dress-items {
        gap: 30px;
    }

    .closing h1 {
        font-size: 2.5em;
        letter-spacing: 15px;
    }

    .calendar {
        padding: 30px 20px;
        max-width: 350px;
    }

    .calendar::before,
    .calendar::after {
        display: none;
    }

    .calendar {
        border-radius: 20px;
    }

    .map-container {
        height: 300px;
    }
}