/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Cormorant Garamond', serif;
    min-height: 100vh;
    background: linear-gradient(135deg, #d8c0f0 0%, #e8d5f8 40%, #cdb5e8 70%, #baa2d8 100%);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 0;
}

/* ===== Tarjeta principal ===== */
.card {
    width: 100%;
    max-width: 800px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(212, 175, 55, 0.5),
        0 0 0 5px rgba(212, 175, 55, 0.12),
        0 0 0 6px rgba(212, 175, 55, 0.4),
        0 30px 80px rgba(100, 50, 160, 0.35),
        0 8px 24px rgba(80, 40, 130, 0.2);
    margin: 0;
    opacity: 0;
    transform: translateY(140px) scale(0.96);
    transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1),
                opacity 0.9s ease;
}

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

/* ===== Hero / Portada ===== */
.hero {
    width: 100%;
    height: 100vh;
    min-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
    background: #a98ecc;
}

/* Imagen de fondo con parallax */
.hero-bg {
    position: absolute;
    inset: -15%;
    background: url('../img/Gemini_Generated_Image_a9s44ea9s44ea9s4.png') center center / cover no-repeat;
    filter: blur(2px) brightness(0.88) saturate(1.2);
    transform: scale(1.15);
    will-change: transform;
    z-index: 0;
}

/* Capa de color lila semitransparente encima de la imagen */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg,
        rgba(160, 110, 210, 0.30) 0%,
        rgba(130,  90, 190, 0.35) 50%,
        rgba(110,  70, 170, 0.30) 100%);
    z-index: 1;
    pointer-events: none;
}

/* Brillo de seda encima de todo */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 35% 25%, rgba(255,255,255,0.22) 0%, transparent 55%),
        radial-gradient(ellipse at 68% 75%, rgba(200,160,240,0.18) 0%, transparent 50%);
    pointer-events: none;
    z-index: 2;
}

/* Marco central */
.hero-frame {
    position: relative;
    z-index: 3;
    border: 2px solid rgba(212, 175, 55, 0.85);
    box-shadow:
        0 0 0 8px rgba(212, 175, 55, 0.12),
        inset 0 0 60px rgba(0, 0, 0, 0.06);
    padding: 36px 44px 32px;
    max-width: 340px;
    width: 100%;
    text-align: center;
    background: linear-gradient(170deg, rgba(200,176,232,0.3) 0%, rgba(160,128,200,0.38) 100%);
    backdrop-filter: blur(2px);
}

/* Esquinas decorativas del marco */
.hero-frame::before,
.hero-frame::after {
    content: '';
    position: absolute;
    width: 44px;
    height: 44px;
    border-color: #c9a227;
    border-style: solid;
    opacity: 0.75;
}
.hero-frame::before { top: 12px;    left: 12px;  border-width: 2px 0 0 2px; }
.hero-frame::after  { bottom: 12px; right: 12px; border-width: 0 2px 2px 0; }

/* Corona */
.hero-crown {
    font-size: 5.5rem;
    line-height: 1;
    margin-bottom: 22px;
    filter: drop-shadow(0 4px 14px rgba(0,0,0,0.4)) drop-shadow(0 0 24px rgba(220,180,80,0.5));
    animation: float 3s ease-in-out infinite;
}

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

/* Nombre */
.hero-name {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    font-size: 3rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #ffffff;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(60,20,100,0.6), 0 0 30px rgba(255,255,255,0.15);
    margin-bottom: 16px;
}

/* Subtítulo cursivo */
.hero-sub {
    font-family: 'Great Vibes', cursive;
    font-size: 3rem;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(60,20,100,0.6), 0 0 24px rgba(255,255,255,0.2);
}

/* ===== Scroll reveal ===== */
.reveal {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.75s ease, transform 0.75s ease;
}
.reveal.from-left  { transform: translateX(-40px); }
.reveal.from-right { transform: translateX( 40px); }
.reveal.visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* ===== Página de invitación ===== */
.page {
    position: relative;
    background: linear-gradient(170deg, #fdf8ff 0%, #f7eeff 50%, #f2e6fb 100%);
    width: 100%;
    padding: 44px 40px 40px;
    text-align: center;
    border-top: 1px solid rgba(212, 175, 55, 0.3);
}

.page::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 10%, rgba(255,255,255,0.6) 0%, transparent 60%);
    pointer-events: none;
}

/* Esquinas decorativas */
.corner {
    position: absolute;
    width: 60px;
    height: 60px;
    border-color: #c9a227;
    border-style: solid;
    opacity: 0.55;
}
.corner-tl { top: 16px;    left: 16px;  border-width: 2px 0 0 2px; }
.corner-tr { top: 16px;    right: 16px; border-width: 2px 2px 0 0; }
.corner-bl { bottom: 16px; left: 16px;  border-width: 0 0 2px 2px; }
.corner-br { bottom: 16px; right: 16px; border-width: 0 2px 2px 0; }

/* Flores */
.flowers {
    letter-spacing: 10px;
    font-size: 1.3rem;
    color: #b08cc7;
    margin-bottom: 10px;
}
.top-flowers  { margin-bottom: 18px; }
.bottom-flowers { margin-top: 18px; }

/* Encabezado */
.header { margin-bottom: 20px; }

.pre-title {
    font-style: italic;
    font-weight: 300;
    font-size: 0.95rem;
    color: #8a6aaa;
    letter-spacing: 0.06em;
    line-height: 1.6;
}

/* Divisores */
.divider {
    color: #c9a227;
    font-size: 1rem;
    letter-spacing: 6px;
    margin: 18px 0;
    opacity: 0.8;
}

/* Nombre principal */
.main-name { margin: 10px 0 20px; }

.invitation-text {
    font-style: italic;
    font-size: 1.05rem;
    color: #7a5a9a;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
}

/* Papás */
.parents {
    margin: 10px 0 4px;
    text-align: center;
}

.parents-label {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: #9070b0;
    margin-bottom: 6px;
}

.parents-names {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 300;
    color: #6a4a8a;
    line-height: 1.7;
    letter-spacing: 0.04em;
}

/* Contador regresivo */
.countdown-wrapper {
    margin: 20px 0;
    padding: 20px 0 10px;
    text-align: center;
}

.date-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    border: 2px solid rgba(212, 175, 55, 0.8);
    background: linear-gradient(170deg, #fdf8ff, #f2eafa);
    padding: 14px 36px;
    margin: 0 auto 28px;
    max-width: 420px;
    position: relative;
}

.date-box::before,
.date-box::after {
    content: '';
    position: absolute;
    width: 20px; height: 20px;
    border-color: #c9a227;
    border-style: solid;
    opacity: 0.8;
}
.date-box::before { top: 6px;    left: 6px;  border-width: 2px 0 0 2px; }
.date-box::after  { bottom: 6px; right: 6px; border-width: 0 2px 2px 0; }

.date-month,
.date-year {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.05rem;
    letter-spacing: 0.22em;
    color: #6a4a8a;
    font-weight: 300;
}

.date-day {
    font-family: 'Cormorant Garamond', serif;
    font-size: 5.5rem;
    font-weight: 300;
    color: #6a4a8a;
    line-height: 1;
}

.countdown-timer {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 4px;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 64px;
}

.countdown-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 4.5rem;
    font-weight: 300;
    line-height: 1;
    background: linear-gradient(135deg, #c9a227 0%, #f0d060 45%, #d4af37 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.countdown-sep {
    font-family: 'Cormorant Garamond', serif;
    font-size: 4.3rem;
    color: #c9a227;
    line-height: 1;
    padding-top: 0;
    opacity: 0.85;
}

.countdown-label {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.6rem;
    letter-spacing: 0.16em;
    color: #9070b0;
    margin-top: 6px;
}

/* Vestimenta y obsequios */
.extras-wrapper {
    margin: 20px 0;
    padding: 20px 0 10px;
    text-align: center;
}

.dress-script {
    font-family: 'Great Vibes', cursive;
    font-size: 2.4rem;
    background: linear-gradient(135deg, #c9a227 0%, #f0d060 45%, #d4af37 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    margin-bottom: 2px;
}

.dress-formal {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.4rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    color: #6a4a8a;
    margin-bottom: 8px;
}

.dress-note {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1rem;
    color: #7a5a9a;
    letter-spacing: 0.05em;
    margin-bottom: 24px;
}

.gift-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.gift-message {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.05rem;
    color: #7a5a9a;
    line-height: 1.85;
    max-width: 340px;
    margin: 0 auto 14px;
}

.gift-options {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.05rem;
    color: #6a4a8a;
    line-height: 2;
    font-weight: 400;
    letter-spacing: 0.04em;
}

/* Confirmar asistencia */
.confirm-section {
    margin: 20px 0;
    padding: 20px 0 10px;
    text-align: center;
}

.confirm-title {
    font-family: 'Great Vibes', cursive;
    font-size: 2.6rem;
    background: linear-gradient(135deg, #c9a227 0%, #f0d060 45%, #d4af37 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

.ticket-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.confirm-text {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.1rem;
    color: #7a5a9a;
    line-height: 1.85;
    letter-spacing: 0.04em;
    margin-bottom: 28px;
}

.confirm-btn {
    display: inline-block;
    padding: 14px 52px;
    border: 2px solid rgba(212, 175, 55, 0.85);
    border-radius: 50px;
    background: transparent;
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.28em;
    color: #6a4a8a;
    text-decoration: none;
    transition: background 0.25s ease, box-shadow 0.25s ease;
}

.confirm-btn:hover {
    background: rgba(212, 175, 55, 0.08);
    box-shadow: 0 2px 12px rgba(212, 175, 55, 0.2);
}

/* Frase de papás */
.parents-quote {
    margin: 18px 0 8px;
    padding: 22px 28px;
    border: 1px solid rgba(212, 175, 55, 0.45);
    background: rgba(186, 150, 220, 0.06);
    position: relative;
}

.parents-quote::before,
.parents-quote::after {
    content: '';
    position: absolute;
    width: 28px;
    height: 28px;
    border-color: #c9a227;
    border-style: solid;
    opacity: 0.6;
}
.parents-quote::before { top: 8px;    left: 8px;  border-width: 1.5px 0 0 1.5px; }
.parents-quote::after  { bottom: 8px; right: 8px; border-width: 0 1.5px 1.5px 0; }

.parents-quote-text {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 300;
    font-size: 1.05rem;
    color: #7a5a9a;
    letter-spacing: 0.05em;
    line-height: 1.9;
    text-align: center;
}

/* Frase de apertura */
.opening-quote {
    margin-bottom: 8px;
    padding: 0 8px;
}

.opening-phrase {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 300;
    font-size: 1.15rem;
    color: #7a5a9a;
    letter-spacing: 0.07em;
    line-height: 2;
    text-align: center;
}

.invitation-text-long {
    font-style: italic;
    font-size: 1.05rem;
    color: #7a5a9a;
    letter-spacing: 0.06em;
    line-height: 1.9;
    margin-bottom: 12px;
}

.number {
    font-family: 'Great Vibes', cursive;
    font-size: 7rem;
    line-height: 1.3;
    background: linear-gradient(135deg, #c9a227 0%, #f0d060 40%, #d4af37 70%, #a07820 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 6px rgba(180,140,20,0.3));
    margin: 6px 0;
    padding: 0 10px;
}

.name {
    font-family: 'Great Vibes', cursive;
    font-size: 3.8rem;
    line-height: 1.15;
    background: linear-gradient(135deg, #b8921e 0%, #e8c850 45%, #c9a227 80%, #9a7010 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 1px 4px rgba(160,120,10,0.3));
    margin: 8px 0 4px;
}

/* Detalles */
.details {
    margin: 10px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.detail-block {
    padding: 14px 24px;
    background: rgba(186,150,220,0.08);
    border: 1px solid rgba(212,175,55,0.22);
    border-radius: 2px;
    width: 100%;
    max-width: 380px;
}

.detail-label {
    font-family: 'Great Vibes', cursive;
    font-size: 1.9rem;
    background: linear-gradient(135deg, #c9a227, #e8c850, #c9a227);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 6px;
}

.detail-value {
    font-size: 1.05rem;
    color: #6a4a8a;
    letter-spacing: 0.06em;
    line-height: 1.7;
}

.detail-sub {
    font-style: italic;
    font-size: 0.9rem;
    color: #9070b0;
    margin-top: 4px;
    line-height: 1.6;
}

.map-wrap {
    margin-top: 12px;
    border-radius: 3px;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.35);
}

.diamond {
    color: #c9a227;
    font-size: 0.8rem;
    opacity: 0.6;
}

/* Mensaje */
.message {
    margin: 10px auto;
    max-width: 440px;
}

.quote {
    font-style: italic;
    font-size: 1rem;
    color: #7a5a9a;
    line-height: 1.8;
    letter-spacing: 0.03em;
}

.signed {
    font-family: 'Great Vibes', cursive;
    font-size: 1.6rem;
    background: linear-gradient(135deg, #c9a227, #e8c850);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-top: 8px;
}

/* Footer */
.footer {
    margin-top: 16px;
    font-size: 0.88rem;
    color: #9070b0;
    letter-spacing: 0.04em;
    line-height: 1.7;
}

.footer strong {
    color: #7a5a9a;
    font-weight: 600;
}

/* ===== Envelope / Sobre sellado ===== */
.env-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: linear-gradient(135deg, #d8c0f0 0%, #e8d5f8 40%, #cdb5e8 70%, #baa2d8 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    transition: background 0.7s ease, opacity 0.7s ease;
}

.env-overlay.fall-down {
    background: transparent;
    pointer-events: none;
}

.env.falling {
    transform: translateY(115vh);
    transition: transform 1.1s cubic-bezier(0.55, 0, 1, 0.45);
}

.env {
    width: min(800px, 94vw);
    height: min(500px, 59vw);
    position: relative;
    filter:
        drop-shadow(0 24px 60px rgba(80, 40, 130, 0.45))
        drop-shadow(0 6px 20px rgba(60, 20, 100, 0.3));
}

.env-back {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, #ede0f8 0%, #d8c4ee 100%);
    border: 2px solid rgba(212, 175, 55, 0.8);
    border-radius: 3px;
}

.env-side {
    position: absolute;
    top: 0;
    height: 100%;
    width: 50%;
    z-index: 1;
}

.env-left {
    left: 0;
    background: linear-gradient(160deg, #ddd0ee 0%, #c8b8e0 100%);
    clip-path: polygon(0 0, 0 100%, 100% 50%);
}

.env-right {
    right: 0;
    background: linear-gradient(160deg, #d8c8ea 0%, #c4b2dc 100%);
    clip-path: polygon(100% 0, 100% 100%, 0 50%);
}

.env-bottom-tri {
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 65%;
    background: linear-gradient(170deg, #e4d4f4 0%, #d0bcec 100%);
    clip-path: polygon(0 100%, 100% 100%, 50% 0);
    z-index: 2;
}

.env-glow {
    position: absolute;
    inset: 10% 6%;
    background: radial-gradient(ellipse, rgba(255, 220, 80, 0.95) 0%, rgba(212, 175, 55, 0.5) 40%, transparent 70%);
    opacity: 0;
    z-index: 3;
    border-radius: 40%;
    transition: opacity 0.5s ease 0.5s;
    pointer-events: none;
}

.env.open .env-glow {
    opacity: 1;
}

.env-flap {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 62%;
    background: linear-gradient(170deg, #e0cef5 0%, #ccb8e8 60%, #d8c4ee 100%);
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    transition: clip-path 0.85s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 4;
}

.env.open .env-flap {
    clip-path: polygon(0 0, 100% 0, 50% 0%);
}

.env-seal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: transform 0.25s ease, opacity 0.4s ease;
}

.env-seal:hover {
    transform: translate(-50%, -50%) scale(1.08);
}

.env.open .env-seal {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.3);
    pointer-events: none;
}

.seal-img {
    width: 150px;
    height: 150px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.7)) drop-shadow(0 4px 16px rgba(90, 10, 150, 0.5));
    animation: sealGlow 2.4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes sealGlow {
    0%, 100% {
        filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.6)) drop-shadow(0 4px 14px rgba(90, 10, 150, 0.45));
    }
    50% {
        filter: drop-shadow(0 0 22px rgba(255, 220, 80, 1)) drop-shadow(0 0 40px rgba(212, 175, 55, 0.7)) drop-shadow(0 4px 20px rgba(90, 10, 150, 0.6));
    }
}

/* Destellos dorados */
.sparkle {
    position: absolute;
    color: #f0d060;
    pointer-events: none;
    animation: sparkleAnim 2.2s ease-in-out infinite;
    text-shadow: 0 0 6px rgba(255, 220, 50, 0.9), 0 0 14px rgba(212, 175, 55, 0.7);
}

.sp1 { font-size: 1.1rem; top: -18px;  left: 50%;  transform: translateX(-50%);  animation-delay: 0s; }
.sp2 { font-size: 0.75rem; top: 4px;   right: -16px;                              animation-delay: 0.28s; }
.sp3 { font-size: 1rem;   top: -12px;  right: 8px;                                animation-delay: 0.55s; }
.sp4 { font-size: 0.75rem; bottom: 4px; right: -16px;                             animation-delay: 0.83s; }
.sp5 { font-size: 1.1rem; bottom: -18px; left: 50%; transform: translateX(-50%); animation-delay: 1.1s; }
.sp6 { font-size: 0.75rem; bottom: 4px; left: -16px;                              animation-delay: 1.38s; }
.sp7 { font-size: 1rem;   top: -12px;  left: 8px;                                 animation-delay: 1.65s; }
.sp8 { font-size: 0.75rem; top: 4px;   left: -16px;                               animation-delay: 1.93s; }

@keyframes sparkleAnim {
    0%   { opacity: 0;   transform: scale(0.4) rotate(0deg); }
    40%  { opacity: 1;   transform: scale(1.3) rotate(30deg); }
    70%  { opacity: 0.8; transform: scale(1)   rotate(45deg); }
    100% { opacity: 0;   transform: scale(0.4) rotate(60deg); }
}

.env-hint {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1rem;
    color: rgba(90, 50, 150, 0.85);
    letter-spacing: 0.14em;
    animation: hintFade 2.8s ease-in-out infinite;
}

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

/* ===== Botón música ===== */
.music-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 500;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(212, 175, 55, 0.8);
    background: rgba(130, 80, 200, 0.75);
    backdrop-filter: blur(8px);
    color: #f0d060;
    font-size: 1.3rem;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(80, 40, 130, 0.4);
    transition: transform 0.2s ease, background 0.2s ease;
    display: none;
}

.music-btn:hover {
    transform: scale(1.12);
    background: rgba(150, 100, 220, 0.9);
}

.music-btn.paused {
    opacity: 0.6;
}

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

/* Tablet */
@media (max-width: 768px) {
    .card         { border-radius: 2px; }
    .page         { padding: 40px 28px 36px; }
    .hero-frame   { max-width: 300px; padding: 30px 26px 26px; }
    .hero-name    { font-size: 2.6rem; }
    .hero-sub     { font-size: 2.6rem; }
    .number       { font-size: 6rem; }
    .name         { font-size: 3.3rem; }
    .detail-block { max-width: 100%; }
    .date-box     { max-width: 380px; }
    .countdown-num  { font-size: 3.8rem; }
    .countdown-sep  { font-size: 3.6rem; }
    .countdown-item { min-width: 56px; }
    .date-day       { font-size: 4.8rem; }
    .confirm-btn    { padding: 13px 44px; }
}

/* Móvil */
@media (max-width: 600px) {
    body          { padding: 0; }
    .card         { margin: 0; border-radius: 0; }
    .hero         { height: 100svh; min-height: 480px; }
    .hero-name    { font-size: 2rem; }
    .hero-sub     { font-size: 2.2rem; }
    .hero-frame   { padding: 22px 16px 20px; max-width: 260px; }
    .page         { padding: 36px 20px 32px; }

    .corner       { width: 40px; height: 40px; }

    .opening-phrase       { font-size: 1rem; line-height: 1.85; }
    .invitation-text-long { font-size: 0.95rem; }
    .number       { font-size: 5.2rem; }
    .name         { font-size: 2.8rem; }
    .invitation-text { font-size: 0.95rem; }

    .parents-names      { font-size: 1.25rem; }
    .parents-quote      { padding: 16px 16px; }
    .parents-quote-text { font-size: 0.95rem; }

    .date-box     { padding: 10px 16px; gap: 10px; max-width: 100%; }
    .date-day     { font-size: 3.8rem; }
    .date-month,
    .date-year    { font-size: 0.85rem; letter-spacing: 0.14em; }
    .countdown-timer  { gap: 2px; }
    .countdown-num    { font-size: 2.8rem; }
    .countdown-sep    { font-size: 2.6rem; }
    .countdown-item   { min-width: 46px; }
    .countdown-label  { font-size: 0.52rem; letter-spacing: 0.1em; }

    .detail-block { max-width: 100%; padding: 12px 14px; }
    .detail-label { font-size: 1.6rem; }
    .detail-value { font-size: 0.95rem; }
    .detail-sub   { font-size: 0.85rem; }

    .dress-script { font-size: 2rem; }
    .dress-formal { font-size: 2rem; letter-spacing: 0.14em; }
    .dress-note   { font-size: 0.9rem; }
    .gift-message { font-size: 0.95rem; }

    .confirm-title { font-size: 2.2rem; }
    .confirm-text  { font-size: 1rem; }
    .confirm-btn   { padding: 12px 32px; font-size: 0.82rem; letter-spacing: 0.2em; }

    .quote        { font-size: 0.92rem; }
    .signed       { font-size: 1.4rem; }
    .footer       { font-size: 0.82rem; }

    .music-btn    { width: 42px; height: 42px; font-size: 1.1rem; bottom: 16px; right: 16px; }

    .env-seal,
    .seal-img     { width: 120px; height: 120px; }
}

/* Móvil pequeño */
@media (max-width: 380px) {
    .page         { padding: 30px 16px 28px; }
    .hero-name    { font-size: 1.75rem; }
    .hero-sub     { font-size: 1.9rem; }
    .number       { font-size: 4.5rem; }
    .name         { font-size: 2.4rem; }
    .date-day     { font-size: 3.2rem; }
    .countdown-num    { font-size: 2.3rem; }
    .countdown-sep    { font-size: 2.1rem; }
    .countdown-item   { min-width: 38px; }
    .flowers      { font-size: 1rem; letter-spacing: 6px; }
    .opening-phrase   { font-size: 0.92rem; }
    .confirm-btn  { padding: 11px 26px; }
}