/* Variables de Colores de la Paleta */
:root {
    --color-primary: #8B7FA8;
    --color-secondary: #A294BB;
    --color-accent: #455A64;
    --color-light: #9FA8B9;
    --color-dark: #594F6C;
    --color-green: #2F4538;
    --color-slate: #78909C;
    --color-white: #FFFFFF;
    --color-cream: #F5F5F0;

    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    width: 100%;
}

body {
    font-family: var(--font-body);
    color: var(--color-dark);
    background-color: var(--color-cream);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    width: 100%;
    position: relative;
}

/* Prevenir scroll horizontal en secciones específicas */
section:not(.galeria) {
    max-width: 100vw;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Hero Section */
.hero {
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('fotos/WhatsApp Image 2025-07-06 at 21.31.40 (2).jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    text-align: center;
    color: var(--color-white);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease-out;
    width: 100%;
    max-width: 90%;
    padding: 0 20px;
    box-sizing: border-box;
}

.names {
    font-family: 'Playfair Display', var(--font-heading);
    font-size: 8rem;
    font-weight: 400;
    margin-bottom: 1rem;
    letter-spacing: 12px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
    text-transform: capitalize;
}

.subtitle {
    font-size: 1.8rem;
    font-weight: 300;
    letter-spacing: 8px;
    margin-bottom: 2rem;
    text-transform: uppercase;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.date {
    margin: 2rem 0;
    position: relative;
}

.date::before,
.date::after {
    content: '❧';
    position: absolute;
    font-size: 1.5rem;
    color: var(--color-white);
    opacity: 0.7;
}

.date::before {
    left: -2.5rem;
}

.date::after {
    right: -2.5rem;
}

@media (max-width: 768px) {
    .date::before,
    .date::after {
        display: none;
    }
}

.day {
    font-family: 'Playfair Display', var(--font-heading);
    font-size: 1.8rem;
    font-weight: 400;
    letter-spacing: 2px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Countdown */
.countdown {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin: 3rem 0;
}

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

.countdown-value {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 600;
    line-height: 1;
}

.countdown-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 0.5rem;
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    color: var(--color-white);
    text-decoration: none;
    animation: bounce 2s infinite;
}

/* Navigation */
.navbar {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    z-index: 1000;
    padding: 1rem 0;
    width: 100%;
}

.navbar ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 3rem;
}

.navbar a {
    text-decoration: none;
    color: var(--color-dark);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.navbar a:hover {
    color: var(--color-primary);
}

/* Section Title */
.section-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    text-align: center;
    margin-bottom: 4rem;
    color: var(--color-dark);
    font-weight: 400;
}

/* Historia Section */
.historia {
    padding: 6rem 0;
    background-color: var(--color-white);
    width: 100%;
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
}

.timeline-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }
.timeline-item:nth-child(4) { animation-delay: 0.4s; }

.timeline-icon {
    font-size: 2.5rem;
    min-width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border-radius: 50%;
}

.timeline-content {
    flex: 1;
    padding: 1rem 0;
}

.timeline-content h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--color-dark);
}

.timeline-date {
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.timeline-content p {
    line-height: 1.8;
    color: var(--color-slate);
    font-size: 1rem;
}

.timeline-short {
    margin-bottom: 1rem;
}

.timeline-full {
    overflow: hidden;
    transition: all 0.4s ease-in-out;
    margin-bottom: 1rem;
}

.timeline-full.expanded {
    display: block !important;
}

.timeline-full p {
    margin-bottom: 1rem;
}

.timeline-full p:last-child {
    margin-bottom: 0;
}

.btn-read-more {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.6rem 1.5rem;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: var(--color-white);
    border: none;
    border-radius: 20px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(139, 127, 168, 0.2);
}

.btn-read-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 127, 168, 0.4);
}

.btn-read-more:active {
    transform: translateY(0);
}

/* Evento Section */
.evento {
    padding: 6rem 0;
    background-color: var(--color-cream);
    width: 100%;
}

.event-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.event-card {
    background: var(--color-white);
    padding: 3rem 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.event-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.event-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.event-card h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--color-dark);
}

.event-time {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.event-location {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.event-address {
    color: var(--color-slate);
    margin-bottom: 1.5rem;
}

.btn-map {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: var(--color-white);
    text-decoration: none;
    border-radius: 25px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-map:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(139, 127, 168, 0.4);
}

/* Map Container */
.map-container {
    margin: 4rem auto;
    max-width: 900px;
    text-align: center;
}

.map-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--color-dark);
}

.map-venue-name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 2rem;
}

.map-wrapper {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    margin-bottom: 2rem;
    background: var(--color-white);
}

.map-wrapper iframe {
    display: block;
    width: 100%;
}

.map-address {
    font-size: 1rem;
    color: var(--color-slate);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.btn-map-main {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: var(--color-white);
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(139, 127, 168, 0.3);
}

.btn-map-main:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(139, 127, 168, 0.5);
}

/* Dress Code */
.dress-code {
    text-align: center;
    padding: 3rem;
    background: var(--color-white);
    border-radius: 15px;
    max-width: 600px;
    margin: 0 auto;
}

.dress-code h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--color-dark);
}

.dress-code > p:first-of-type {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--color-primary);
    margin-bottom: 2rem;
}

.color-palette {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
}

.color-item {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.dress-note {
    font-size: 0.9rem;
    color: var(--color-slate);
    font-style: italic;
}

/* Galería Section */
.galeria {
    padding: 6rem 0;
    background-color: var(--color-white);
    position: relative;
    width: 100%;
    max-width: 100vw;
}

.gallery-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    max-width: 600px;
    width: calc(100% - 4rem);
    margin: 0 auto;
    padding: 2rem;
    box-sizing: border-box;
}

.gallery-item {
    position: sticky;
    top: 100px;
    width: 100%;
    max-width: min(500px, 90vw);
    background: var(--color-white);
    padding: 20px 20px 60px 20px;
    border-radius: 3px;
    cursor: pointer;
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.1),
        0 10px 20px rgba(0, 0, 0, 0.15),
        inset 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(80px) scale(0.9);
    margin-left: auto;
    margin-right: auto;
    isolation: isolate;
}

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

.gallery-item:nth-child(6n+1).visible {
    transform: translateY(0) scale(1) rotate(-3deg);
}

.gallery-item:nth-child(6n+2).visible {
    transform: translateY(0) scale(1) rotate(2deg);
}

.gallery-item:nth-child(6n+3).visible {
    transform: translateY(0) scale(1) rotate(-1deg);
}

.gallery-item:nth-child(6n+4).visible {
    transform: translateY(0) scale(1) rotate(3deg);
}

.gallery-item:nth-child(6n+5).visible {
    transform: translateY(0) scale(1) rotate(-2deg);
}

.gallery-item:nth-child(6n).visible {
    transform: translateY(0) scale(1) rotate(1deg);
}

/* Z-index creciente para efecto de apilado correcto (fotos nuevas encima) */
.gallery-item:nth-child(1) { z-index: 1; }
.gallery-item:nth-child(2) { z-index: 2; }
.gallery-item:nth-child(3) { z-index: 3; }
.gallery-item:nth-child(4) { z-index: 4; }
.gallery-item:nth-child(5) { z-index: 5; }
.gallery-item:nth-child(6) { z-index: 6; }
.gallery-item:nth-child(7) { z-index: 7; }
.gallery-item:nth-child(8) { z-index: 8; }
.gallery-item:nth-child(9) { z-index: 9; }
.gallery-item:nth-child(10) { z-index: 10; }
.gallery-item:nth-child(11) { z-index: 11; }
.gallery-item:nth-child(12) { z-index: 12; }
.gallery-item:nth-child(13) { z-index: 13; }
.gallery-item:nth-child(14) { z-index: 14; }
.gallery-item:nth-child(15) { z-index: 15; }
.gallery-item:nth-child(16) { z-index: 16; }
.gallery-item:nth-child(17) { z-index: 17; }
.gallery-item:nth-child(18) { z-index: 18; }
.gallery-item:nth-child(19) { z-index: 19; }
.gallery-item:nth-child(20) { z-index: 20; }
.gallery-item:nth-child(21) { z-index: 21; }
.gallery-item:nth-child(22) { z-index: 22; }
.gallery-item:nth-child(23) { z-index: 23; }

.gallery-item:hover {
    transform: rotate(0deg) scale(1.05) !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    z-index: 9999 !important;
}

.gallery-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
    border-radius: 2px;
}


/* Regalos Section */
.regalos {
    padding: 6rem 0;
    background-color: var(--color-cream);
    width: 100%;
}

.regalos-text {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
}

.regalos-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.regalo-card {
    background: var(--color-white);
    padding: 2.5rem 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.regalo-card h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--color-dark);
}

.regalo-number {
    color: var(--color-slate);
    margin-bottom: 1.5rem;
}

.regalo-text {
    color: var(--color-slate);
}

.regalo-bank {
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.regalo-name {
    color: var(--color-slate);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.regalo-clabe {
    font-family: 'Courier New', monospace;
    color: var(--color-dark);
    font-weight: 600;
    margin: 1rem 0 1.5rem;
    font-size: 1rem;
    letter-spacing: 0.5px;
    padding: 0.5rem;
    background-color: rgba(139, 127, 168, 0.1);
    border-radius: 5px;
}

.btn-regalo {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: var(--color-accent);
    color: var(--color-white);
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 1rem;
}

.btn-regalo:hover {
    background: var(--color-dark);
    transform: scale(1.05);
}

/* RSVP Section */
.rsvp {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    color: var(--color-white);
    width: 100%;
}

.rsvp .section-title {
    color: var(--color-white);
}

.rsvp-text {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.95);
    transition: background 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    background: var(--color-white);
}

.btn-submit {
    width: 100%;
    padding: 1rem 2rem;
    background: var(--color-white);
    color: var(--color-primary);
    border: none;
    border-radius: 25px;
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-submit:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

/* Footer */
.footer {
    padding: 3rem 0;
    background-color: var(--color-dark);
    color: var(--color-white);
    text-align: center;
    width: 100%;
    max-width: 100vw;
}

.footer-text {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.footer-names {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.footer-date {
    font-size: 1.2rem;
    letter-spacing: 3px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.95);
    animation: fadeIn 0.3s;
}

.modal-content {
    display: block;
    max-width: 90%;
    max-height: 90%;
    margin: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 10px;
}

.modal-close {
    position: absolute;
    top: 30px;
    right: 50px;
    color: var(--color-white);
    font-size: 50px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.3s;
}

.modal-close:hover {
    color: var(--color-primary);
}

.modal-nav button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    color: var(--color-white);
    border: none;
    font-size: 3rem;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: background 0.3s;
    border-radius: 5px;
}

.modal-nav button:hover {
    background: rgba(255,255,255,0.4);
}

.modal-prev {
    left: 30px;
}

.modal-next {
    right: 30px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Responsive */
@media (max-width: 768px) {
    .hero-content {
        max-width: 95%;
        padding: 0 10px;
    }

    .names {
        font-size: 3.5rem;
        letter-spacing: 3px;
    }

    .subtitle {
        font-size: 1.2rem;
        letter-spacing: 4px;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .countdown {
        gap: 1rem;
    }

    .countdown-value {
        font-size: 2rem;
    }

    .navbar ul {
        gap: 1.5rem;
        flex-wrap: wrap;
        padding: 0 1rem;
    }

    .navbar a {
        font-size: 0.8rem;
    }

    .timeline-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .gallery-grid {
        max-width: 90%;
        padding: 1rem;
    }

    .gallery-item {
        top: 80px;
        max-width: 100%;
        padding: 15px 15px 45px 15px;
    }

    .gallery-item img {
        aspect-ratio: 3/4;
    }

    .modal-nav button {
        font-size: 2rem;
        padding: 0.5rem 1rem;
    }

    .modal-prev {
        left: 10px;
    }

    .modal-next {
        right: 10px;
    }

    .modal-close {
        top: 20px;
        right: 20px;
        font-size: 35px;
    }

    .map-wrapper iframe {
        height: 350px;
    }

    .map-title {
        font-size: 1.5rem;
    }

    .map-venue-name {
        font-size: 1.2rem;
    }

    .btn-map-main {
        font-size: 1rem;
        padding: 0.9rem 2rem;
    }

    .codigo-input-container {
        padding: 1.5rem 1rem;
    }

    .codigo-input-wrapper {
        gap: 0.5rem;
        flex-wrap: wrap;
    }

    .codigo-field {
        max-width: none;
        flex: 1 1 auto;
        min-width: 0;
        padding: 0.85rem 1rem;
        font-size: 1rem;
    }

    .btn-validar {
        padding: 0.85rem 1.5rem;
        font-size: 0.95rem;
        flex-shrink: 0;
    }

    .codigo-instruction {
        font-size: 1rem;
    }

    .codigo-hint {
        font-size: 0.8rem;
    }

    .form-actions {
        flex-direction: column;
        gap: 1rem;
    }

    .btn-secondary,
    .btn-submit {
        width: 100%;
    }
}

/* Media query para pantallas muy pequeñas (móviles en vertical) */
@media (max-width: 480px) {
    .codigo-input-wrapper {
        flex-direction: column;
        gap: 0.75rem;
    }

    .codigo-field {
        width: 100%;
        text-align: center;
    }

    .btn-validar {
        width: 100%;
        padding: 1rem;
    }

    .codigo-input-container {
        padding: 1.5rem 0.75rem;
    }
}

/* ============================================
   ESTILOS PARA SISTEMA DE CÓDIGOS RSVP
   ============================================ */

/* Pasos del formulario */
.rsvp-step {
    animation: fadeIn 0.5s ease-out;
}

/* Contenedor de código */
.codigo-input-container {
    background: rgba(255, 255, 255, 0.95);
    padding: 3rem 2rem;
    border-radius: 15px;
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}

.codigo-instruction {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-dark);
}

.codigo-hint {
    font-size: 0.95rem;
    color: var(--color-slate);
    margin-bottom: 2rem;
}

.codigo-input-wrapper {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.codigo-field {
    flex: 1;
    max-width: 250px;
    padding: 1rem 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    border: 2px solid var(--color-light);
    border-radius: 10px;
    font-family: var(--font-body);
    transition: all 0.3s;
}

.codigo-field:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(139, 127, 168, 0.1);
}

.btn-validar {
    padding: 1rem 2rem;
    background: var(--color-white);
    color: var(--color-primary);
    border: 2px solid var(--color-white);
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-validar:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.05);
}

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

/* Información del invitado */
.invitado-info {
    margin-bottom: 2rem;
}

.info-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.info-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.invitado-nombre {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 1rem;
}

.invitado-detalle {
    font-size: 1.1rem;
    color: var(--color-slate);
    margin-bottom: 0.5rem;
}

.invitado-nombres {
    font-size: 0.95rem;
    color: var(--color-accent);
    font-style: italic;
}

/* Formulario RSVP mejorado */
.rsvp-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
}

.rsvp-form small {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-top: 2rem;
}

.btn-secondary {
    padding: 1rem 2rem;
    background: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-white);
    border-radius: 25px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: var(--color-white);
    color: var(--color-primary);
}

/* Mensajes */
.error-message {
    background: rgba(220, 53, 69, 0.9);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    animation: shake 0.5s;
}

.loading-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    color: var(--color-primary);
    margin-top: 1rem;
    font-weight: 600;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--color-light);
    border-radius: 50%;
    border-top-color: var(--color-primary);
    animation: spin 1s linear infinite;
}

/* Mensaje de éxito */
.success-message {
    background: rgba(255, 255, 255, 0.95);
    padding: 3rem 2rem;
    border-radius: 15px;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin: 0 auto 1.5rem;
    animation: scaleIn 0.5s ease-out;
}

.success-message h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--color-dark);
    margin-bottom: 1rem;
}

.success-message p {
    font-size: 1.1rem;
    color: var(--color-slate);
    margin-bottom: 1.5rem;
}

.success-details {
    background: var(--color-cream);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    text-align: left;
}

.success-details p {
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.success-details strong {
    color: var(--color-dark);
}

/* Botón dentro del mensaje de éxito */
.success-message .btn-secondary {
    background: var(--color-primary);
    color: var(--color-white);
    border: 2px solid var(--color-primary);
}

.success-message .btn-secondary:hover {
    background: var(--color-secondary);
    border-color: var(--color-secondary);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 127, 168, 0.4);
}

/* Animaciones adicionales */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

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

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* ========================================
   Reproductor de Música
   ======================================== */

.music-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border: none;
    box-shadow: 0 4px 15px rgba(139, 127, 168, 0.4);
    cursor: pointer;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    overflow: visible;
}

.music-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(139, 127, 168, 0.6);
}

.music-toggle:active {
    transform: scale(0.95);
}

/* Icono de música */
.music-icon {
    width: 28px;
    height: 28px;
    color: var(--color-white);
    transition: all 0.3s ease;
}

/* Título de la canción (tooltip) */
.music-title {
    position: absolute;
    right: 70px;
    background: rgba(47, 69, 56, 0.95);
    color: var(--color-white);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.music-toggle:hover .music-title {
    opacity: 1;
}

/* Animación de pulso cuando está reproduciendo */
.music-toggle.playing {
    animation: musicPulse 2s ease-in-out infinite;
}

@keyframes musicPulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(139, 127, 168, 0.4);
    }
    50% {
        box-shadow: 0 4px 25px rgba(139, 127, 168, 0.7), 0 0 0 10px rgba(139, 127, 168, 0.1);
    }
}

/* Animación de rotación para el ícono */
.music-toggle.playing .music-icon {
    animation: rotate 3s linear infinite;
}

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

/* Responsive */
@media (max-width: 768px) {
    .music-toggle {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }

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

    .music-title {
        display: none; /* Ocultar tooltip en móvil */
    }
}

/* Accesibilidad: Reducir animaciones si el usuario lo prefiere */
@media (prefers-reduced-motion: reduce) {
    .music-toggle.playing {
        animation: none;
    }

    .music-toggle.playing .music-icon {
        animation: none;
    }
}

/* ========================================
   Notificación de Música
   ======================================== */

.music-notification {
    position: fixed;
    bottom: 100px;
    right: 30px;
    z-index: 9998;
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.music-notification.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.music-notification-content {
    background: linear-gradient(135deg, #FFFFFF 0%, #F5F5F0 100%);
    border: 2px solid var(--color-primary);
    border-radius: 15px;
    padding: 15px 20px;
    box-shadow: 0 8px 25px rgba(139, 127, 168, 0.3);
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 320px;
    position: relative;
    animation: gentleBounce 2s ease-in-out infinite;
}

.music-notification-icon {
    font-size: 2rem;
    flex-shrink: 0;
    animation: musicNote 1.5s ease-in-out infinite;
}

.music-notification-text {
    flex: 1;
}

.music-notification-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-primary);
    margin: 0 0 4px 0;
    line-height: 1.2;
}

.music-notification-subtitle {
    font-size: 0.85rem;
    color: var(--color-accent);
    margin: 0;
    line-height: 1.2;
}

.music-notification-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    color: var(--color-accent);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    opacity: 0.6;
}

.music-notification-close:hover {
    background: rgba(139, 127, 168, 0.1);
    opacity: 1;
    transform: rotate(90deg);
}

/* Animación de rebote suave */
@keyframes gentleBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* Animación de nota musical */
@keyframes musicNote {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    25% {
        transform: scale(1.1) rotate(-5deg);
    }
    75% {
        transform: scale(1.1) rotate(5deg);
    }
}

/* Efecto de brillo en el botón de música al inicio */
.music-toggle.attention {
    animation: attentionPulse 2s ease-in-out infinite;
}

@keyframes attentionPulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(139, 127, 168, 0.4);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 4px 30px rgba(139, 127, 168, 0.8), 0 0 0 15px rgba(139, 127, 168, 0.1);
        transform: scale(1.05);
    }
}

/* Responsive para notificación */
@media (max-width: 768px) {
    .music-notification {
        bottom: 80px;
        right: 20px;
        left: 20px;
    }

    .music-notification-content {
        max-width: 100%;
        padding: 12px 15px;
    }

    .music-notification-icon {
        font-size: 1.5rem;
    }

    .music-notification-title {
        font-size: 0.9rem;
    }

    .music-notification-subtitle {
        font-size: 0.75rem;
    }
}

/* Reducir animaciones si el usuario lo prefiere */
@media (prefers-reduced-motion: reduce) {
    .music-notification-content {
        animation: none;
    }

    .music-notification-icon {
        animation: none;
    }

    .music-toggle.attention {
        animation: none;
    }
}
