/* ========================== */
/* Configuración Base */
/* ========================== */

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(135deg, #0a1f15 0%, #1a3d2e 30%, #0f2419 70%, #1a3d2e 100%);
    color: #d4af37;
    overflow-x: hidden;
    overflow-y: hidden;
    line-height: 1.6;
    position: relative;
}

/* ========================== */
/* Loading Screen */
/* ========================== */

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a3d2e, #0f2419);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 1;
    transition: opacity 0.5s ease;
}

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

.loading-heart {
    margin-bottom: 2rem;
    animation: pulse 2s infinite;
}

.loading-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    color: #d4af37;
    opacity: 0.8;
    animation: fadeInOut 2s infinite;
}

/* ========================== */
/* Contenedor Principal */
/* ========================== */

.main-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

/* ========================== */
/* Secciones */
/* ========================== */

.section {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateY(50px) scale(0.95);
    background: linear-gradient(135deg, #0a1f15 0%, #1a3d2e 30%, #0f2419 70%, #1a3d2e 100%);
    will-change: transform, opacity;
}

.section.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.section-content {
    text-align: center;
    max-width: 900px;
    padding: 2rem;
    animation: slideUp 0.8s ease-out 0.2s both;
    width: 100%;
}

/* ========================== */
/* Títulos de Sección */
/* ========================== */

.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 600;
    color: #d4af37;
    margin-bottom: 3rem;
    position: relative;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
    letter-spacing: 1px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
    animation: shimmer 3s ease-in-out infinite;
}

.title-decoration {
    color: #ffffff;
    opacity: 0.7;
    margin: 0 1rem;
    animation: heartPulse 2s infinite;
}

/* ========================== */
/* Sección Hero */
/* ========================== */

.hero-section {
    background: linear-gradient(135deg, #0a1f15 0%, #1a3d2e 20%, #0f2419 50%, #1a3d2e 80%, #0a1f15 100%);
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(212, 175, 55, 0.08) 0%, transparent 50%);
    animation: backgroundFloat 20s ease-in-out infinite;
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.floating-heart {
    position: absolute;
    color: rgba(212, 175, 55, 0.2);
    font-size: 1.5rem;
    animation: floatHeart 8s linear infinite;
}

.floating-heart::before {
    content: '♥';
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.initials-container {
    position: relative;
    margin-bottom: 2rem;
    display: inline-block;
}

.initials {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(4rem, 10vw, 6.5rem);
    font-weight: 700;
    color: #d4af37;
    text-shadow: 4px 4px 12px rgba(0, 0, 0, 0.6);
    position: relative;
    z-index: 2;
    letter-spacing: 0.2rem;
}

.initials-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 180px;
    height: 180px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: rotate 30s linear infinite;
}

.initials-ring::before,
.initials-ring::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: #d4af37;
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.8);
}

.initials-ring::before {
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
}

.initials-ring::after {
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
}

.names {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(3rem, 8vw, 4.5rem);
    font-weight: 400;
    color: #d4af37;
    margin: 2rem 0;
    text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.name-animation {
    animation: nameGlow 4s ease-in-out infinite alternate;
}

.name-animation:nth-child(3) {
    animation-delay: 2s;
}

.ampersand {
    font-style: italic;
    color: #ffffff;
    font-size: clamp(2.5rem, 6vw, 3.8rem);
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.5);
    animation: ampersandFloat 3s ease-in-out infinite;
}

.romantic-quote {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1rem, 3vw, 1.3rem);
    color: #ffffff;
    font-style: italic;
    margin: 3rem 0;
    opacity: 0.9;
    line-height: 1.8;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.quote-line {
    animation: fadeInUp 1s ease-out both;
    margin: 0.5rem 0;
}

.quote-line:nth-child(1) { animation-delay: 1s; }
.quote-line:nth-child(2) { animation-delay: 1.3s; }
.quote-line:nth-child(3) { animation-delay: 1.6s; }

.heart-container {
    margin: 4rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Corazón CSS Corregido */
.heart-improved {
    width: 50px;
    height: 45px;
    position: relative;
    animation: heartbeat 2s ease-in-out infinite;
}

.heart-improved::before,
.heart-improved::after {
    content: '';
    width: 26px;
    height: 40px;
    position: absolute;
    background: linear-gradient(135deg, #d4af37, #f4d464);
    border-radius: 26px 26px 0 0;
    transform: rotate(-45deg);
    transform-origin: 0 100%;
    top: 0;
    left: 25px;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

.heart-improved::after {
    left: 0;
    transform: rotate(45deg);
    transform-origin: 100% 100%;
}

.heart-improved.small {
    width: 30px;
    height: 27px;
}

.heart-improved.small::before,
.heart-improved.small::after {
    width: 16px;
    height: 24px;
    left: 15px;
    border-radius: 16px 16px 0 0;
}

.heart-improved.small::after {
    left: 0;
}

.heart-improved.medium {
    width: 40px;
    height: 36px;
    margin: 0 1rem;
}

.heart-improved.medium::before,
.heart-improved.medium::after {
    width: 21px;
    height: 32px;
    left: 20px;
    border-radius: 21px 21px 0 0;
}

.heart-improved.medium::after {
    left: 0;
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    animation: bounce 2s infinite;
}

.scroll-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
    font-weight: 300;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border-right: 2px solid rgba(255, 255, 255, 0.7);
    border-bottom: 2px solid rgba(255, 255, 255, 0.7);
    transform: rotate(45deg);
    margin: 0 auto;
}

/* ========================== */
/* Sección Fecha */
/* ========================== */

.date-container {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.date-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 25px;
    padding: 3rem 2.5rem;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    max-width: 400px;
}

.date-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(255, 255, 255, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.date-card:hover::before {
    opacity: 1;
}

.date-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(212, 175, 55, 0.2);
}

.date-header {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    font-style: italic;
}

.date-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
}

.date-day {
    font-family: 'Cormorant Garamond', serif;
    font-size: 4rem;
    font-weight: 700;
    color: #d4af37;
    line-height: 1;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.date-month {
    font-size: 1.4rem;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0.5rem 0;
    font-weight: 500;
}

.date-year {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
}

.date-divider {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
    margin: 1.5rem auto;
}

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

.time-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: #d4af37;
    line-height: 1;
}

.time-label {
    font-size: 1rem;
    color: #ffffff;
    margin-top: 0.5rem;
    opacity: 0.8;
}

/* ========================== */
/* Cuenta Regresiva */
/* ========================== */

.countdown-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 2rem;
    margin: 3rem auto;
    max-width: 700px;
}

.countdown-item {
    text-align: center;
    transition: transform 0.3s ease;
}

.countdown-item:hover {
    transform: scale(1.05);
}

.countdown-circle {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.countdown-svg {
    transform: rotate(-90deg);
}

.countdown-track {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 4;
}

.countdown-progress {
    fill: none;
    stroke: #d4af37;
    stroke-width: 4;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s ease;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.5));
}

.countdown-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.countdown-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #d4af37;
    line-height: 1;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

.countdown-label {
    font-size: 0.8rem;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
    margin-top: 0.2rem;
}

.countdown-message {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    color: #ffffff;
    margin-top: 2rem;
    font-style: italic;
    opacity: 0.9;
}

/* ========================== */
/* Ubicación */
/* ========================== */

.location-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 25px;
    padding: 3rem;
    margin: 2rem auto;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.location-card:hover {
    transform: translateY(-5px);
}

.location-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    filter: grayscale(0.3) brightness(1.2);
}

.venue-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.2rem;
    font-weight: 600;
    color: #d4af37;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3);
}

.venue-description {
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.venue-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.detail-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

.detail-icon {
    font-size: 1.2rem;
    filter: grayscale(0.2);
}

/* ========================== */
/* Galería de Fotos */
/* ========================== */

.photos-carousel {
    margin: 2rem 0;
}

.carousel-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto 2rem;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.carousel-slides {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slide {
    min-width: 100%;
    position: relative;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 2rem 2rem 1.5rem;
    color: #ffffff;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    font-style: italic;
    text-align: center;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 10;
}

.carousel-btn:hover {
    background: rgba(212, 175, 55, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

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

.dot-photo {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot-photo.active {
    background: #d4af37;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.dot-photo:hover {
    background: rgba(212, 175, 55, 0.6);
}

/* ========================== */
/* Código de Vestimenta - SIMPLIFICADO */
/* ========================== */

.dress-section .section-content {
    max-width: 700px;
}

.dress-guidelines {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.guideline-card {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.guideline-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.guideline-card:hover::before {
    opacity: 1;
}

.guideline-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.15);
    border-color: rgba(212, 175, 55, 0.3);
}

.guideline-icon {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
    filter: grayscale(0.3) brightness(1.1);
}

.guideline-content h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    color: #d4af37;
    margin-bottom: 0.6rem;
    font-weight: 600;
}

.guideline-content p {
    color: #ffffff;
    opacity: 0.9;
    font-size: 1rem;
    line-height: 1.4;
    margin-bottom: 0.6rem;
}

.guideline-note {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
}

.color-restriction-card {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    max-width: 500px;
    margin: 0 auto;
}

.restriction-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.restriction-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    color: #d4af37;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.restriction-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.4;
}

.restricted-colors {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.2rem;
    margin-top: 1.5rem;
}

.color-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    transition: transform 0.3s ease;
}

.color-item:hover {
    transform: scale(1.05);
}

.color-swatch {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.color-swatch::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 48px;
    height: 2.5px;
    background: #ff4444;
    box-shadow: 0 0 8px rgba(255, 68, 68, 0.6);
    border-radius: 2px;
}

.color-swatch.black { background-color: #000000; }
.color-swatch.red { background-color: #DC143C; }
.color-swatch.white { 
    background-color: #FFFFFF; 
    border-color: rgba(212, 175, 55, 0.4);
}
.color-swatch.blue { background-color: #0066CC; }
.color-swatch.green { background-color: #228B22; }

.color-item span {
    font-size: 0.8rem;
    color: #ffffff;
    opacity: 0.9;
    text-align: center;
    font-weight: 500;
    max-width: 60px;
    line-height: 1.2;
}

/* ========================== */
/* Formulario RSVP */
/* ========================== */

.rsvp-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 25px;
    padding: 3rem 2.5rem;
    margin: 2rem auto;
    max-width: 600px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

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

.rsvp-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    animation: float 3s ease-in-out infinite;
}

.rsvp-description {
    font-size: 1.2rem;
    color: #ffffff;
    opacity: 0.9;
    line-height: 1.6;
    max-width: 400px;
    margin: 0 auto;
}

.rsvp-form {
    text-align: left;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

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

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1rem;
    color: #d4af37;
    margin-bottom: 0.8rem;
    font-weight: 500;
}

.label-icon {
    font-size: 1.2rem;
    filter: grayscale(0.2);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 1.2rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-size: 1rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.attendance-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.radio-option:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(212, 175, 55, 0.3);
}

.radio-option input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    position: relative;
    transition: all 0.3s ease;
}

.radio-option input[type="radio"]:checked + .radio-custom {
    border-color: #d4af37;
    background: #d4af37;
}

.radio-option input[type="radio"]:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: #0f2419;
    border-radius: 50%;
}

.radio-text {
    color: #ffffff;
    font-size: 1rem;
}

/* ========================== */
/* Sección Regalos */
/* ========================== */

.gift-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 25px;
    padding: 3rem;
    margin: 2rem auto;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.gift-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(212, 175, 55, 0.05), transparent);
    animation: shimmerMove 4s ease-in-out infinite;
}

.gift-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    animation: bounce 2s infinite;
}

.gift-content h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    color: #d4af37;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.gift-description {
    font-size: 1.1rem;
    color: #ffffff;
    opacity: 0.9;
    line-height: 1.7;
    margin-bottom: 2rem;
}

/* ========================== */
/* Sección Música */
/* ========================== */

.music-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 25px;
    padding: 3rem 2.5rem;
    margin: 2rem auto;
    max-width: 550px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.music-icon {
    font-size: 3.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
    animation: musicPulse 2s ease-in-out infinite;
}

.music-description {
    font-size: 1.2rem;
    color: #ffffff;
    opacity: 0.9;
    line-height: 1.7;
    margin-bottom: 2rem;
    text-align: center;
}

.music-form {
    text-align: left;
}

/* ========================== */
/* Sección Final */
/* ========================== */

.final-card {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 30px;
    padding: 4rem 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    max-width: 600px;
    margin: 0 auto;
}

.final-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    animation: shimmerMove 5s ease-in-out infinite;
}

.final-hearts {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.final-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 5vw, 2.8rem);
    color: #d4af37;
    margin-bottom: 2rem;
    line-height: 1.3;
    font-weight: 600;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.final-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2.5rem 0;
    gap: 1.5rem;
}

.decoration-line {
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
    animation: pulse 3s ease-in-out infinite;
}

.decoration-heart {
    font-size: 1.8rem;
    color: #d4af37;
    animation: heartPulse 2s ease-in-out infinite;
}

.with-love {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.final-names {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.name-fancy {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.2rem, 6vw, 3rem);
    color: #d4af37;
    font-weight: 600;
    text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.4);
    animation: nameGlow 4s ease-in-out infinite alternate;
}

.final-ampersand {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    color: #ffffff;
    font-style: italic;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4);
}

.final-date {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
}

/* ========================== */
/* Botones Elegantes */
/* ========================== */

.elegant-button {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1.2rem 2.5rem;
    background: linear-gradient(135deg, #d4af37 0%, #f4d464 50%, #d4af37 100%);
    color: #0f2419;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
    position: relative;
    overflow: hidden;
    font-family: 'Montserrat', sans-serif;
    border: 2px solid transparent;
}

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

.elegant-button:hover::before {
    left: 100%;
}

.elegant-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(212, 175, 55, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}

.elegant-button:active {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.4);
}

.pulse-button {
    animation: buttonPulse 2s infinite;
}

.button-icon {
    font-size: 1.2rem;
    filter: grayscale(1) brightness(0.8);
}

.submit-button {
    width: 100%;
    justify-content: center;
    margin-top: 1rem;
    padding: 1.5rem;
    font-size: 1.1rem;
}

/* ========================== */
/* Navegación */
/* ========================== */

.navigation-dots {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    border: 2px solid transparent;
}

.dot::before {
    content: attr(data-tooltip);
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(10px);
}

.dot:hover::before {
    opacity: 1;
}

.dot:hover {
    background: rgba(212, 175, 55, 0.6);
    transform: scale(1.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.dot.active {
    background: #d4af37;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
    border-color: rgba(255, 255, 255, 0.3);
}

/* ========================== */
/* Barra de Progreso */
/* ========================== */

.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1001;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #d4af37, #f4d464);
    width: 10%;
    transition: width 0.6s ease;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
}

/* ========================== */
/* Animaciones */
/* ========================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heartbeat {
    0%, 100% { 
        transform: scale(1); 
    }
    25% { 
        transform: scale(1.1); 
    }
    50% { 
        transform: scale(1.15); 
    }
    75% { 
        transform: scale(1.05); 
    }
}

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

@keyframes rotate {
    from { 
        transform: translate(-50%, -50%) rotate(0deg); 
    }
    to { 
        transform: translate(-50%, -50%) rotate(360deg); 
    }
}

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

@keyframes pulse {
    0%, 100% { 
        opacity: 1; 
        transform: scale(1);
    }
    50% { 
        opacity: 0.7; 
        transform: scale(1.05);
    }
}

@keyframes nameGlow {
    0%, 100% {
        text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.4);
    }
    50% {
        text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.4), 0 0 20px rgba(212, 175, 55, 0.5);
    }
}

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

@keyframes heartPulse {
    0%, 100% { 
        opacity: 1; 
        transform: scale(1);
    }
    50% { 
        opacity: 0.7; 
        transform: scale(1.2);
    }
}

@keyframes floatHeart {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

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

@keyframes sparkle {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    50% {
        transform: scale(1.1) rotate(180deg);
    }
}

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

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-2px);
    }
    75% {
        transform: translateX(2px);
    }
}

@keyframes musicPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

@keyframes shimmerMove {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) rotate(45deg);
    }
}

@keyframes buttonPulse {
    0%, 100% {
        box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
    }
    50% {
        box-shadow: 0 8px 25px rgba(212, 175, 55, 0.6);
    }
}

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

/* ========================== */
/* Responsive Design */
/* ========================== */

@media (max-width: 768px) {
    .section-content {
        padding: 1.5rem;
    }
    
    .navigation-dots {
        right: 1rem;
        gap: 1rem;
    }
    
    .dot {
        width: 12px;
        height: 12px;
    }
    
    .dot::before {
        display: none;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .date-card,
    .location-card,
    .rsvp-card,
    .gift-card,
    .music-card {
        padding: 2rem 1.5rem;
        margin: 1.5rem auto;
    }
    
    .carousel-container {
        max-width: 100%;
        margin: 0 0 1.5rem;
    }
    
    .slide img {
        height: 300px;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .prev-btn {
        left: 10px;
    }
    
    .next-btn {
        right: 10px;
    }
    
    .dress-guidelines {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 2rem;
    }
    
    .guideline-card {
        padding: 1.2rem;
    }
    
    .color-restriction-card {
        padding: 1.5rem 1rem;
    }
    
    .restricted-colors {
        gap: 1rem;
    }
    
    .color-swatch {
        width: 35px;
        height: 35px;
    }
    
    .color-swatch::after {
        width: 42px;
        height: 2px;
    }
    
    .countdown-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        max-width: 400px;
    }
}

@media (max-width: 480px) {
    .section-content {
        padding: 1rem;
    }
    
    .hero-content {
        padding: 1rem;
    }
    
    .romantic-quote {
        margin: 2rem 0;
        padding: 0 0.5rem;
    }
    
    .date-card,
    .location-card,
    .rsvp-card,
    .gift-card,
    .music-card,
    .final-card {
        padding: 1.5rem 1rem;
    }
    
    .slide img {
        height: 250px;
    }
    
    .countdown-container {
        grid-template-columns: 1fr;
        max-width: 200px;
    }
    
    .countdown-item {
        margin-bottom: 1rem;
    }
    
    .restricted-colors {
        gap: 0.8rem;
        justify-content: space-around;
    }
    
    .color-item {
        flex: 0 0 auto;
        min-width: 50px;
    }
    
    .color-swatch {
        width: 32px;
        height: 32px;
    }
    
    .color-swatch::after {
        width: 38px;
        height: 2px;
    }
    
    .color-item span {
        font-size: 0.75rem;
        max-width: 50px;
    }
    
    .elegant-button {
        padding: 1rem 2rem;
        font-size: 0.9rem;
    }
    
    .final-names {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .scroll-indicator {
        bottom: 2rem;
    }
}

/* ========================== */
/* Optimizaciones de Rendimiento */
/* ========================== */

.section,
.dot,
.elegant-button,
.carousel-btn {
    will-change: transform;
}

.heart-improved,
.countdown-progress,
.floating-heart {
    will-change: transform, opacity;
}

/* Reducir animaciones en dispositivos con menor rendimiento */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Hardware acceleration para animaciones críticas */
.section.active,
.heart-improved,
.countdown-progress,
.elegant-button:hover {
    transform: translateZ(0);
}

/* Mejoras para pantallas táctiles */
@media (hover: none) and (pointer: coarse) {
    .elegant-button:hover,
    .dot:hover,
    .carousel-btn:hover {
        transform: none;
    }
    
    .elegant-button:active {
        transform: scale(0.95);
    }
}