.envelope-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    overflow: hidden;
    cursor: pointer;
}

.envelope-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    overflow: hidden;
}

.fondo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
.envelope-image {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.sobre-img {
    width: 320px;
    max-width: 90vw;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
    margin-bottom: 18px;
}
.envelope-message {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    padding: 25px 35px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    text-align: center;
    font-family: 'Playfair Display', serif;
    color: #C4622D;
    z-index: 10;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(196, 98, 45, 0.3);
}

.envelope-message h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #C4622D;
}

.envelope-message p {
    font-size: 1.1rem;
    font-weight: 400;
    color: #A0522D;
    margin: 0;
}
@media (max-width: 600px) {
    .envelope-message {
        font-size: 1.1rem;
        padding: 14px 20px;
        bottom: 20px;
    }
    
    .fondo-img {
        object-fit: contain;
        object-position: center;
        width: 100%;
        height: 100%;
    }
    
    .envelope-bg {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}
/* INVITACIÓN DE BODA ELEGANTE - MIRIAN & KOKY */
/* ========================================== */

/* Reset y configuración base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #C4622D;
    --primary-dark: #A0522D;
    --primary-light: #E8915B;
    --gold: #E8915B;
    --cream: #E6D7C3;
    --dark-cream: #D4B896;
    --white: #E6D7C3;
    --dark: #2C2C2C;
    --gray: #666666;
    --light-gray: #999999;
    --shadow: rgba(196, 98, 45, 0.3);
    --shadow-dark: rgba(0, 0, 0, 0.2);
    --bg-primary: #E6D7C3;
    --bg-secondary: #E6CDB7;
    --accent-green: #2F4F4F;
    --accent-rose: #C4622D;
    --beige-light: #E6CDB7;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--primary-color);
    overflow-x: hidden;
    scroll-behavior: smooth;
    background: var(--bg-primary);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    background: #E6D7C3;
}

/* Partículas de corazones */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.particle {
    position: absolute;
    color: rgba(196, 98, 45, 0.25); /* Más visible: era 0.15, ahora 0.25 */
    font-size: 18px; /* Más grande: era 16px, ahora 18px */
    animation: float-up linear infinite;
    pointer-events: none;
}

@keyframes float-up {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    15% { /* Aparece más gradualmente */
        opacity: 0.8; /* Más opaco: era 0.6, ahora 0.8 */
    }
    85% { /* Desaparece más gradualmente */
        opacity: 0.8;
    }
    100% {
        transform: translateY(-150px) rotate(180deg); /* Menos rotación: era 360deg, ahora 180deg */
        opacity: 0;
    }
}

/* Contenedor principal más angosto */
.main-container {
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    background: #E6D7C3;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    color: #2F4F4F;
}

/* INVITACIÓN PRINCIPAL ELEGANTE */
.invitation-container {
    max-width: 100%;
    margin: 0 auto;
    background: #E6D7C3;
    min-height: 100vh;
    position: relative;
}

/* HEADER PRINCIPAL ELEGANTE FIXDATE STYLE */
.main-header {
    position: relative;
    height: 100vh;
    background-image: url('modelo-invitacion-fondo-moderno-marron-beige-floral-flor_181182-46996.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-blend-mode: overlay;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--primary-color);
    overflow: hidden;
}

/* Control de música */
.music-control {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.music-control button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #C4622D, #D77840);
    color: white;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(196, 98, 45, 0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.music-control button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(196, 98, 45, 0.4);
}

.music-control button.paused {
    background: linear-gradient(135deg, #666, #888);
}

/* Elementos flotantes del header */
.header-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.floating-element {
    position: absolute;
    color: rgba(196, 98, 45, 0.1);
    animation: float 20s ease-in-out infinite;
}

.floating-element.el-1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.floating-element.el-2 {
    top: 20%;
    right: 15%;
    animation-delay: 5s;
}

.floating-element.el-3 {
    bottom: 30%;
    left: 5%;
    animation-delay: 10s;
}

.floating-element.el-4 {
    bottom: 20%;
    right: 10%;
    animation-delay: 15s;
}

.floating-element.el-5 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 7s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.1;
    }
    25% {
        transform: translateY(-20px) rotate(5deg);
        opacity: 0.2;
    }
    50% {
        transform: translateY(-10px) rotate(-3deg);
        opacity: 0.15;
    }
    75% {
        transform: translateY(-30px) rotate(8deg);
        opacity: 0.25;
    }
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.05);
    z-index: 2;
}

.header-content {
    position: relative;
    z-index: 3;
    padding: 40px 20px;
}

@keyframes frameFloat {
    0%, 100% {
        transform: translateY(0px) scale(1);
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    }
    50% {
        transform: translateY(-10px) scale(1.02);
        box-shadow: 0 35px 60px rgba(0, 0, 0, 0.4);
    }
}

.simple-date {
    margin-bottom: 40px;
    display: inline-block;
}

.simple-date .date-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--primary-color);
    letter-spacing: 2px;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Iniciales y corazón principal */
.couple-initials-main {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 40px 0;
    gap: 30px;
}

.main-initial-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-initial-container .initial {
    font-family: 'Great Vibes', cursive;
    font-size: 4rem;
    font-weight: 400;
    color: var(--primary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
}

.initial-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(196, 98, 45, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
    animation: glow 3s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.6;
    }
}

.heart-divider {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.elegant-heart-main {
    color: var(--primary-color);
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.1));
    animation: heartbeat 2s ease-in-out infinite;
}

.heart-rays {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(196, 98, 45, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: rays 4s linear infinite;
}

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

@keyframes rays {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
        opacity: 0.3;
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
        opacity: 0.3;
    }
}

/* Nombres principales */
.couple-names-main {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin: 40px 0;
    letter-spacing: 3px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    line-height: 1.2;
}

.couple-names-main .name-part {
    display: inline-block;
    animation: nameGlow 4s ease-in-out infinite;
}

.couple-names-main .name-part:first-child {
    animation-delay: 0s;
}

.couple-names-main .name-part:last-child {
    animation-delay: 2s;
}

.couple-names-main .ampersand {
    font-family: 'Great Vibes', cursive;
    font-size: 3rem;
    margin: 0 20px;
    color: var(--primary-light);
    animation: ampersandSpin 6s ease-in-out infinite;
}

@keyframes nameGlow {
    0%, 100% {
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
        transform: scale(1);
    }
    50% {
        text-shadow: 2px 2px 8px rgba(196, 98, 45, 0.3);
        transform: scale(1.05);
    }
}

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

/* Cita elegante */
.quote-container {
    position: relative;
    margin: 50px 0;
    padding: 30px 20px;
    text-align: center;
}

.quote-marks {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    color: var(--primary-light);
    opacity: 0.6;
    position: absolute;
    line-height: 1;
}

.quote-marks.left {
    top: 10px;
    left: 10px;
}

.quote-marks.right {
    bottom: 10px;
    right: 10px;
    transform: rotate(180deg);
}

.wedding-quote {
    font-family: 'Crimson Text', serif;
    font-size: 1.2rem;
    font-style: italic;
    color: var(--primary-color);
    line-height: 1.6;
    position: relative;
    z-index: 2;
    max-width: 400px;
    margin: 0 auto;
}

/* Indicador de scroll */
.scroll-indicator {
    margin-top: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--primary-color);
    opacity: 0.7;
    animation: bounce 2s ease-in-out infinite;
}

.scroll-indicator i {
    font-size: 1.5rem;
}

.scroll-indicator span {
    font-size: 0.9rem;
    letter-spacing: 1px;
}

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

/* CONTADOR REGRESIVO ELEGANTE */
.countdown-elegant {
    padding: 80px 20px;
    background: linear-gradient(135deg, #E6D7C3 0%, #E6CDB7 100%);
    position: relative;
}

.countdown-frame {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 50px 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(196, 98, 45, 0.2);
}

.section-ornament {
    margin-bottom: 30px;
    color: var(--primary-color);
}

.section-ornament i {
    font-size: 2.5rem;
    animation: rotate 10s linear infinite;
}

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

.countdown-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 40px;
    letter-spacing: 2px;
}

.countdown-display {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
    gap: 18px;
    max-width: 600px;
    margin: 0 auto;
}

.count-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.simple-count-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: 0 8px 25px rgba(196, 98, 45, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

.count-item label {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 8px 25px rgba(196, 98, 45, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 12px 35px rgba(196, 98, 45, 0.4);
    }
}

/* SECCIONES GENERALES */
.event-section, .party-section, .gifts-section {
    padding: 80px 20px;
    position: relative;
    background: linear-gradient(135deg, #E6D7C3 0%, #E6CDB7 100%);
}

.elegant-frame {
    position: relative;
    margin: 0 auto 40px auto;
    max-width: 700px;
    border: 2px solid rgba(196, 98, 45, 0.2);
    border-radius: 10px;
    box-sizing: border-box;
    min-height: 60px;
    background: transparent;
    pointer-events: none;
}

.frame-corner {
    position: absolute;
    width: 30px;
    height: 30px;
    border: 2px solid var(--primary-color);
}

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

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

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

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

/* CEREMONIA */
.event-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.event-header {
    margin-bottom: 60px;
}

.event-icon-container {
    position: relative;
    display: inline-block;
    margin-bottom: 30px;
}

.event-icon {
    font-size: 4rem;
    color: var(--primary-color);
    animation: iconFloat 4s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(5deg);
    }
}

.section-title {
    font-family: 'Great Vibes', cursive;
    font-size: 4rem;
    font-weight: 400;
    color: var(--primary-color);
    margin-bottom: 30px;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.event-details-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px; /* Aumentado de 30px a 50px para más espacio */
    margin-top: 50px;
}

.detail-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 40px 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(196, 98, 45, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-width: 340px;
    max-width: 600px;
}

.detail-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.card-content h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.detail-main {
    font-size: 1.1rem;
    color: var(--dark);
    font-weight: 600;
    margin-bottom: 10px;
}

.detail-sub {
    font-size: 1rem;
    color: var(--gray);
    margin-bottom: 25px;
}

.action-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 50px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    text-decoration: none;
    margin: 0 auto;
}

.action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(196, 98, 45, 0.4);
}

.action-btn.elegant-secondary {
    background: linear-gradient(135deg, var(--gray), var(--light-gray));
}

/* FIESTA */
.party-section {
    background: linear-gradient(135deg, #E6CDB7 0%, #D4B896 100%);
}

.section-header-elaborate {
    text-align: center;
    margin-bottom: 60px;
}

.party-icon-container {
    position: relative;
    display: inline-block;
    margin-bottom: 30px;
}

.party-icon {
    font-size: 4rem;
    color: var(--primary-color);
    animation: partyBounce 3s ease-in-out infinite;
}

@keyframes partyBounce {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    25% {
        transform: scale(1.1) rotate(5deg);
    }
    50% {
        transform: scale(1.05) rotate(-3deg);
    }
    75% {
        transform: scale(1.1) rotate(3deg);
    }
}

.section-title-fancy {
    font-family: 'Great Vibes', cursive;
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.section-subtitle {
    font-family: 'Crimson Text', serif;
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 40px;
    font-style: italic;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.party-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.party-card {
    background: rgba(255, 255, 255, 0.97);
    border-radius: 24px;
    padding: 48px 36px;
    box-shadow: 0 8px 32px rgba(196, 98, 45, 0.15);
    border: 2px solid var(--gold);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 340px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
}

.party-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.card-header {
    text-align: center;
    margin-bottom: 24px;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    letter-spacing: 1px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.card-icon-fancy {
    font-size: 3.2rem;
    color: var(--gold);
    margin-bottom: 10px;
    filter: drop-shadow(0 2px 6px rgba(196,98,45,0.15));
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2.1rem;
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 0;
    text-align: center;
}

.dress-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin: 32px 0 18px 0;
}

.dress-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--primary-color);
    font-weight: 600;
    vertical-align: middle;
    display: block;
    text-align: center;
}

.gentleman-icon, .lady-icon {
    font-size: 2.6rem;
    color: var(--gold);
    filter: drop-shadow(0 2px 6px rgba(196,98,45,0.10));
    vertical-align: middle;
    text-align: center;
}

/* REGALOS */
.gifts-section {
    background: linear-gradient(135deg, #D4B896 0%, #E6CDB7 100%);
    font-family: 'Open Sans', sans-serif;
    font-size: 1.1rem;
    color: var(--dark);
    margin-bottom: 0;
}

.gifts-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    font-family: 'Crimson Text', serif;
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.gifts-header {
    margin-bottom: 50px;
}

.gifts-title {
    font-family: 'Great Vibes', cursive;
    font-size: 4rem;
    font-weight: 400;
    color: var(--primary-color);
    margin-bottom: 30px;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.gift-content-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 50px 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(196, 98, 45, 0.2);
}

.gift-message {
    font-family: 'Crimson Text', serif;
    font-size: 1.2rem;
    color: var(--dark);
    line-height: 1.8;
    margin-bottom: 30px;
}

.highlight {
    color: var(--primary-color);
    font-weight: 600;
}

/* FOOTER */
.elegant-footer {
    background: linear-gradient(135deg, #E6D7C3 0%, #D4B896 100%);
    color: var(--primary-color);
    padding: 80px 20px 40px;
    text-align: center;
    position: relative;
}

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

.footer-initials-elaborate {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 18px;
}

.footer-initial-container {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: 'Great Vibes', cursive;
    font-size: 2rem;
    box-shadow: 0 10px 25px rgba(196, 98, 45, 0.3);
}

.footer-heart-elaborate {
    color: var(--primary-color);
    animation: heartbeat 2s ease-in-out infinite;
}

.footer-names {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    letter-spacing: 3px;
}

.footer-date {
    font-family: 'Crimson Text', serif;
    font-size: 1.3rem;
    color: var(--gray);
    margin-bottom: 40px;
    font-style: italic;
}

.footer-actions-elaborate {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    margin-bottom: 50px;
}

.footer-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.footer-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(196, 98, 45, 0.4);
}

.footer-btn.secondary-footer {
    background: linear-gradient(135deg, rgba(230, 215, 195, 0.2), rgba(230, 215, 195, 0.1));
    border: 2px solid rgba(230, 215, 195, 0.3);
}

/* RESPONSIVO */
@media (max-width: 768px) {
    .main-container {
        max-width: 100%;
    }
    
    .header-frame {
        padding: 40px 20px;
        margin: 0 10px;
    }
    
    .couple-names-main {
        font-size: 2rem;
    }
    
    .couple-initials-main {
        gap: 20px;
    }
    
    .main-initial-container .initial {
        font-size: 3rem;
    }
    
    .countdown-display {
        flex-direction: row; /* Mantener horizontal en tablets */
        align-items: center;
        gap: 15px;
        max-width: 100%;
        flex-wrap: wrap; /* Permitir que se envuelvan si es necesario */
        justify-content: center;
    }
    
    .simple-count-circle {
        width: 55px;
        height: 55px;
        font-size: 1.1rem;
    }
    
    .count-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        min-width: 55px;
    }
    
    .count-item label {
        font-size: 0.85rem;
        text-align: center;
    }
    
    .event-details-grid {
        grid-template-columns: 1fr;
        gap: 35px; /* Aumentado de 20px a 35px para más espacio en móvil */
    }
    
    .party-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .section-title {
        font-size: 3rem;
    }
    
    .section-title-fancy {
        font-size: 3rem;
    }
    
    .gifts-title {
        font-size: 3rem;
    }
    
    .footer-actions-elaborate {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .header-frame {
        padding: 30px 15px;
    }
    
    .couple-names-main {
        font-size: 1.8rem;
        letter-spacing: 2px;
    }
    
    .main-initial-container .initial {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .section-title-fancy {
        font-size: 2.5rem;
    }
    
    .gifts-title {
        font-size: 2.5rem;
    }
    
    .countdown-title {
        font-size: 1.8rem;
        margin-bottom: 25px;
    }
    
    .countdown-display {
        gap: 10px;
        padding: 0 10px;
    }
    
    .simple-count-circle {
        width: 45px;
        height: 45px;
        font-size: 0.9rem;
    }
    
    .count-item {
        min-width: 45px;
    }
    
    .count-item label {
        font-size: 0.75rem;
        line-height: 1.2;
    }
    
    .countdown-frame {
        padding: 30px 15px;
    }
}

/* Media query para móviles en orientación horizontal */
@media (max-width: 896px) and (max-height: 480px) and (orientation: landscape) {
    .countdown-elegant {
        padding: 40px 20px;
    }
    
    .countdown-frame {
        padding: 25px 20px;
        max-width: 90%;
    }
    
    .countdown-title {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
    
    .countdown-display {
        gap: 8px;
    }
    
    .simple-count-circle {
        width: 40px;
        height: 40px;
        font-size: 0.8rem;
    }
    
    .count-item {
        min-width: 40px;
    }
    
    .count-item label {
        font-size: 0.7rem;
    }
    
    .section-ornament {
        margin-bottom: 15px;
    }
    
    .section-ornament i {
        font-size: 1.8rem;
    }
}

/* Media query específico para la vista de carta en móviles */
@media (max-width: 480px) {
    .envelope-container {
        padding: 10px;
    }
    
    .fondo-img {
        object-fit: cover;
        object-position: right center; /* Muestra la parte derecha de la imagen */
        width: 100%;
        height: 100%;
        min-height: 100vh;
    }
    
    .envelope-bg {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        overflow: hidden;
    }
    
    .envelope-message {
        bottom: 30px;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        padding: 15px 20px;
        font-size: 0.9rem;
    }
    
    .envelope-message h2 {
        font-size: 1.4rem;
    }
}

/* Media query para móviles muy pequeños */
@media (max-width: 360px) {
    .fondo-img {
        object-position: 85% center; /* Aún más hacia la derecha en pantallas muy pequeñas */
    }
}

/* Media query para móviles muy pequeños */
@media (max-width: 360px) {
    .fondo-img {
        object-position: 85% center; /* Aún más hacia la derecha en pantallas muy pequeñas */
    }
    
    /* Partículas aún más sutiles en móviles pequeños */
    .particle {
        font-size: 14px; /* era 12px, ahora 14px */
        color: rgba(196, 98, 45, 0.15); /* era 0.08, ahora 0.15 */
    }
}

/* Partículas más sutiles en móviles */
@media (max-width: 768px) {
    .particle {
        font-size: 16px; /* era 14px, ahora 16px */
        color: rgba(196, 98, 45, 0.18); /* era 0.1, ahora 0.18 */
    }
    
    .particles-container {
        z-index: 0; /* Aún más atrás en móviles */
    }
}

/* Media query para tablets en portrait */
@media (max-width: 768px) and (min-width: 481px) {
    .fondo-img {
        object-position: 70% center; /* Posición intermedia para tablets */
    }
}
