/* ===== FUENTE SCRIPT ===== */
@font-face {
    font-family: 'Eternal Blossom';
    src: url('fonts/eternalblossomalt.woff2') format('woff2'),
         url('fonts/eternalblossomalt.woff') format('woff');
    font-weight: normal; font-style: normal; font-display: swap;
}

/* ===== VARIABLES BABY SPRINKLE ===== */
:root {
    --butter:    #FFF3C2;
    --peach:     #FFD699;
    --blush:     #F99999;
    --cream:     #F0E0D9;
    --olive:     #a4b085;
    
    /* Textos en tonos terracota/rosa quemado cálido para no usar negro/azul */
    --text-main: #b86b6b; 
    --text-soft: #d08f8f;
    --bg-light:  #fcfbfa; /* Un crema súper suave de lino */
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ===== BODY ===== */
body {
    font-family: 'Cormorant Garamond', serif;
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

body::before {
    content: "";
    position: fixed; inset: 0; z-index: 0;
    background-image: url('assets/bgrosa.webp'); /* Un fondo de rayas o lino súper sutil */
    background-size: cover; background-position: center;
    opacity: 0.25; pointer-events: none;
}

/* ===== DECORACIONES ===== */
.deco {
    position: fixed;
    pointer-events: none;
    z-index: 1;
}

.deco-flor-top {
    right: -2vw; top: -2vh;
    width: clamp(150px, 25vw, 350px);
    opacity: 0.95;
    animation: drift 10s ease-in-out infinite;
}
.deco-mono-left {
    left: -3vw; top: 12vh;
    width: clamp(80px, 15vw, 200px);
    opacity: 0.85;
    animation: drift 12s ease-in-out infinite 1s;
}
.deco-limon-scallop {
    right: -5vw; bottom: 15vh;
    width: clamp(100px, 18vw, 220px);
    opacity: 0.85;
    animation: drift 11s ease-in-out infinite 2s;
}
.deco-spritz-pink {
    left: 2vw; bottom: 5vh;
    width: clamp(60px, 15vw, 140px);
    opacity: 0.90;
    animation: drift 14s ease-in-out infinite;
    transform-origin: bottom;
}
.deco-flor-bottom {
    right: 15vw; top: 60vh;
    width: clamp(70px, 12vw, 120px);
    opacity: 0.88;
    animation: drift 13s ease-in-out infinite 0.5s;
}

@keyframes drift {
    0%, 100% { transform: translateY(0px); }
    50%      { transform: translateY(-7px); }
}
@keyframes starFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%      { transform: translateY(-8px) rotate(3deg); }
}

/* ===== CONTENEDOR ===== */
.container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    padding: 4rem 2rem 3rem;
    text-align: center;
}

/* ===== TEXTOS ===== */
.main-title,
.sub-title,
.script-heading {
    font-family: 'Eternal Blossom', cursive;
    font-weight: lighter;
    color: var(--blush);
}

.hero { margin-bottom: 2.8rem; }

.pre-title {
    font-family: 'Eternal Blossom', cursive;
    font-size: 3.5rem;
    margin-bottom: -0.5rem;
    color: var(--peach);
}

.main-title {
    font-size: 3.2rem;
    line-height: 1.0;
    white-space: nowrap;
    padding-bottom: 0.5rem;
    padding-top: 1rem;
    color: var(--text-main);
}

.sub-title {
    font-size: 2.2rem;
    line-height: 1.0;
    white-space: nowrap;
    color: var(--blush);
}

.theme-subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--olive);
    margin-top: 2rem;
}

/* ===== COUNTDOWN ===== */
.countdown-section { margin: 0 0 2.8rem; }

.countdown-label {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 4px;
    color: var(--text-soft);
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    font-family: 'Cormorant Garamond', sans-serif;
}

.countdown-container { display: flex; justify-content: center; }

.countdown-item {
    display: flex; flex-direction: column; align-items: center;
    min-width: 55px; position: relative;
    font-family: 'Eternal Blossom', cursive;
}

.countdown-item small{
    font-family: 'Cormorant Garamond', serif;
}

.countdown-item:not(:last-child)::after {
    content: ":";
    position: absolute; right: -4px; top: 0px;
    font-size: 1.5rem; color: var(--blush); opacity: 0.4;
    line-height: 1;
}

.countdown-item span {
    font-size: 1.8rem;
    line-height: 1;
    color: var(--text-main);
    font-weight: 400;
}

.countdown-item small {
    font-size: 0.55rem; font-weight: 600;
    letter-spacing: 1px; text-transform: uppercase;
    color: var(--text-soft); margin-top: 5px;
}

/* ===== INFO EVENTO ===== */
.event-info, .dress-code-section, .gifts-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    margin-bottom: 2.5rem;
}

.info-line {
    font-size: clamp(1.4rem, 4.5vw, 1.8rem);
    line-height: 1.4;
    font-family: 'Eternal Blossom', cursive;
    color: var(--text-main);
}

.dc {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.4rem;
}

.info-date { margin-bottom: 0.5rem; font-weight: 600;}
.info-time { font-size: clamp(1.3rem, 4vw, 1.6rem); margin-bottom: 1rem; opacity: 0.9;}
.info-place { line-height: 1.2; font-weight: 600;}

/* ===== DRESS CODE PALETTE ===== */
.section-title {
    font-size: 2.6rem;
    margin-bottom: 0.5rem;
    color: var(--peach);
}

.color-palette {
    display: flex;
    gap: 12px;
    margin-top: 15px;
    justify-content: center;
}

.color-circle {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(184, 107, 107, 0.15);
    border: 1px solid rgba(255,255,255,0.5);
}

/* ===== BOTONES ===== */
.btn-ghost {
    display: inline-block;
    margin-top: 1rem;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.6rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: 1px solid rgba(184, 107, 107, 0.3);
    padding: 9px 20px;
    border-radius: 30px;
    transition: all 0.3s;
    font-family: 'Cormorant Garamond', sans-serif;
    background-color: rgba(255, 255, 255, 0.4);
}
.btn-ghost:hover { opacity: 1; background: var(--cream); border-color: var(--blush); }

/* ===== RSVP CONTENEDOR PREMIUM ===== */
.rsvp-simple {
    display: flex; 
    flex-direction: column;
    align-items: center; 
    width: 100%;
    padding: 1rem 0;
}

.rsvp-box .script-heading {
    font-size: 3rem;
    line-height: 1;
    margin-bottom: 0.5rem;
    color: var(--blush);
}

.instruction-text {
    font-size: 1.1rem;
    line-height: 1.5;
    color: var(--text-soft);
    margin: 0 auto 10px;
}

.success-text {
    padding-top: 1.2rem;
    color: var(--peach);
}

.custom-form {
    width: 100%;
    max-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
    margin-top: 1rem;
}

/* INPUT COMPLETO ESTILO LUXURY */
.input-group {
    position: relative;
    width: 100%;
}

.form-input {
    width: 100%;
    padding: 8px 0;
    border: none;
    border-bottom: 1.5px solid rgba(184, 107, 107, 0.25);
    background: transparent;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    color: var(--text-main);
    outline: none;
    transition: border-color 0.3s;
    text-align: center;
}

.form-input::placeholder {
    color: rgba(184, 107, 107, 0.45);
    font-style: italic;
}

.form-input:focus {
    border-bottom-color: var(--blush);
}

/* RADIO BUTTONS CUSTOMIZADOS */
.radio-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin: 0 auto;
    width: fit-content;
}

.radio-label {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    position: relative;
    user-select: none;
    padding-left: 30px; 
}

.radio-label input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.custom-radio {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 18px;
    width: 18px;
    background-color: transparent;
    border: 1.5px solid var(--text-soft);
    border-radius: 50%;
    transition: all 0.25s ease;
}

.radio-label:hover input ~ .custom-radio {
    border-color: var(--peach);
}

.custom-radio::after {
    content: "";
    position: absolute;
    display: none;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--blush); 
}

.radio-label input:checked ~ .custom-radio::after {
    display: block;
}

.radio-label input:checked ~ .custom-radio {
    border-color: var(--blush);
}

/* BOTÓN DE RSVP */
.btn-rsvp {
    display: inline-block;
    background: var(--blush);
    color: #fff;
    border: none;
    padding: 14px 30px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.65rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
    box-shadow: 0 4px 15px rgba(249, 153, 153, 0.25);
    font-family: 'Montserrat', sans-serif;
    margin-top: 5px;
    width: 100%;
}

.btn-rsvp:hover {
    background: var(--peach);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 214, 153, 0.4);
}

/* ===== FOOTER ===== */
footer { margin-top: 3rem; padding-bottom: 1rem; }
footer a {
    font-size: 0.55rem; letter-spacing: 3px;
    color: var(--text-soft); text-decoration: none;
    opacity: 0.6; transition: opacity 0.2s;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
}
footer a:hover { opacity: 1; color: var(--text-main); }

/* ===== ENTRADA ===== */
.fade-in > * {
    opacity: 0;
    animation: riseIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.fade-in > *:nth-child(1) { animation-delay: 0.08s; }
.fade-in > *:nth-child(2) { animation-delay: 0.20s; }
.fade-in > *:nth-child(3) { animation-delay: 0.32s; }
.fade-in > *:nth-child(4) { animation-delay: 0.44s; }
.fade-in > *:nth-child(5) { animation-delay: 0.56s; }
.fade-in > *:nth-child(6) { animation-delay: 0.68s; }

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

/* ===== MÓVIL ===== */
@media (max-width: 600px) {
    .container {
        max-width: 100%;
        padding: 3rem 2.5rem 2.5rem;
    }
    .pre-title { font-size: 3.2rem; }
    .main-title { font-size: 2.8rem; padding-top: 0.5rem;}
    .sub-title { font-size: 2rem;}

    .deco-flor-top       { width: 35vw; right: -5vw; }
    .deco-mono-left      { width: 20vw; left: -2vw; top: 15vh; }
    .deco-limon-scallop  { width: 28vw; right: -5vw; bottom: 10vh; }
    .deco-spritz-pink    { width: 22vw; left: -15vw; bottom: 0vh; rotate: 20deg; }
    .deco-flor-bottom    { width: 18vw; right: 5vw; top: 62vh; }    
}