/* ===== 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 ===== */
:root {
    --dark-blue: #21325E;
    --med-blue:  #3E497A;
    --yellow:    #F1D00A;
    --light-blue:#b8cfff;
    --bg-light:  #fdfcf7;
    --text-main: #21325E;
    --text-soft: #5a668c;

    /* Fuente del título "Gimme!" (lookalike Mamma Mia). Para cambiarla, solo edita esta línea */
    --font-gimme: 'Abril Fatface', 'Cormorant Garamond', serif;
}

/* ===== 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);
    background-color: var(--bg-light);
    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/BG_grecia.webp');
    background-size: cover; background-position: center;
    opacity: 0.15; pointer-events: none;
}

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

/* Limones: esquina inferior derecha, como en la inspo */
.deco-limones {
    right: -2vw; top: 4vh;
    width: clamp(80px, 11vw, 170px);
    opacity: 0.9;
    rotate: 8deg;
    animation: drift 11s ease-in-out infinite 2s;
}
/* Sello Greece: izquierda */
.deco-sello-izq {
    left: 18vw; top: -3vh;
    width: clamp(90px, 14vw, 200px);
    opacity: 0.85;
    animation: starFloat 9s ease-in-out infinite;
}
/* Sello Ellas: derecha arriba */
.deco-sello-der {
    right: 8vw; bottom: 30vh;
    width: clamp(130px, 10vw, 300px);
    opacity: 0.95;
    animation: drift 10s ease-in-out infinite;
}
/* Copa azul: izquierda abajo */
.deco-copa {
    left: 2vw; bottom: -2vh;
    width: clamp(250px, 25vw, 110px);
    opacity: 0.9;
    animation: drift 14s ease-in-out infinite;
    transform-origin: bottom;
}
/* Rama de olivo: arriba */
.deco-olivo {
    left: -2vw; top: 22vh;
    width: clamp(90px, 12vw, 190px);
    opacity: 0.9;
    rotate: -50deg;
    animation: drift 12s ease-in-out infinite 1s;
}
/* Ojo turco */
.deco-ojo {
    right: -3vw; bottom: -2vh;
    width: clamp(130px, 20vw, 300px);
    opacity: 0.95;
    animation: drift 10s ease-in-out infinite;
}

@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: 650px;
    margin: 0 auto;
    padding: 4rem 2rem 3rem;
    text-align: center;
}

/* ===== TIPOGRAFÍA SCRIPT ===== */
.script-heading {
    font-family: 'Eternal Blossom', cursive;
    font-weight: lighter;
    color: var(--dark-blue);
}

/* ===== HERO ===== */
.hero { margin-bottom: 2.8rem; }

.pre-title {
    font-family: 'Eternal Blossom', cursive;
    font-size: clamp(1.6rem, 6vw, 2rem);
    line-height: 1.1;
    color: var(--yellow);
    margin-bottom: 1rem;
}

/* "Gimme! Gimme! Gimme!" en 3 líneas */
.main-title {
    font-family: var(--font-gimme);
    font-weight: 400;
    font-size: clamp(3rem, 15vw, 4.4rem);
    line-height: 0.95;
    color: var(--dark-blue);
    margin-bottom: 1.2rem;
}
.main-title span { display: block; }
/* Un poco de ritmo: la línea del centro en azul medio */
.main-title span:nth-child(2) { color: var(--med-blue); }

.sub-title {
    font-family: 'Eternal Blossom', cursive;
    font-weight: lighter;
    font-size: clamp(1.5rem, 6vw, 1.9rem);
    line-height: 1.2;
    color: var(--med-blue);
    margin-bottom: 0.8rem;
}

.tagline {
    margin-top: 0.8rem;
    font-size: 1.3rem;
    font-style: italic;
    color: var(--text-soft);
}

/* ===== 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;
}

.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:not(:last-child)::after {
    content: ":";
    position: absolute; right: -4px; top: 0;
    font-size: 1.5rem; color: var(--dark-blue); opacity: 0.4;
    line-height: 1;
}

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

.countdown-item small {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.5rem; font-weight: 600;
    letter-spacing: 1px; text-transform: uppercase;
    color: var(--text-soft); margin-top: 5px;
}

/* ===== INFO EVENTO ===== */
.event-info, .dress-code-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;
}

.dc { font-family: 'Cormorant Garamond', serif; }

.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 { font-family: var(--font-gimme); line-height: 1.2; font-weight: 600; }
.info-sub {
    font-size: 0.8em;
    opacity: 0.8;
    font-family: 'Cormorant Garamond', serif;
}
.info-address {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    margin-top: 0.6rem;
    color: var(--text-soft);
}

/* ===== DRESS CODE ===== */
.section-title {
    font-size: 2.6rem;
    margin-bottom: 0.5rem;
}

.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(33, 50, 94, 0.15);
}

/* ===== BOTONES ===== */
.btn-ghost {
    display: inline-block;
    margin-top: 1rem;
    color: var(--dark-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: 1px solid rgba(33, 50, 94, 0.4);
    padding: 9px 20px;
    border-radius: 30px;
    transition: all 0.3s;
    font-family: 'Cormorant Garamond', serif;
}
.btn-ghost:hover { background: rgba(33, 50, 94, 0.05); }

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

.rsvp-box {
    padding: 2.5rem 2rem;
    width: 100%;
    max-width: 340px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.rsvp-box .script-heading {
    font-size: 3rem;
    line-height: 1;
    margin-bottom: 1rem;
}

.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(--yellow);
}

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

.input-group { position: relative; width: 100%; }

.form-input {
    width: 100%;
    padding: 8px 0;
    border: none;
    border-bottom: 1.5px solid rgba(62, 73, 122, 0.25);
    background: transparent;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    color: var(--dark-blue);
    outline: none;
    transition: border-color 0.3s;
    text-align: center;
}
.form-input::placeholder { color: rgba(62, 73, 122, 0.45); font-style: italic; }
.form-input:focus { border-bottom-color: var(--dark-blue); }

.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(--dark-blue);
    cursor: pointer;
    display: flex;
    align-items: center;
    position: relative;
    -webkit-user-select: none;
    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(--med-blue);
    border-radius: 50%;
    transition: all 0.25s ease;
}
.radio-label:hover input ~ .custom-radio { border-color: var(--yellow); }

.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(--yellow);
}
.radio-label input:checked ~ .custom-radio::after { display: block; }
.radio-label input:checked ~ .custom-radio { border-color: var(--dark-blue); }
.radio-label input:focus-visible ~ .custom-radio { outline: 2px solid var(--dark-blue); outline-offset: 3px; }

.btn-rsvp {
    display: inline-block;
    background: var(--dark-blue);
    color: #fff;
    border: none;
    padding: 14px 30px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.75rem;
    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(33, 50, 94, 0.15);
    font-family: 'Cormorant Garamond', serif;
    margin-top: 5px;
    width: 100%;
}
.btn-rsvp:hover {
    background: var(--yellow);
    color: var(--dark-blue);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(33, 50, 94, 0.25);
}

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

/* ===== 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); }
}

@media (prefers-reduced-motion: reduce) {
    .deco, .fade-in > * { animation: none; opacity: 1; }
}

/* ===== MÓVIL ===== */
@media (max-width: 600px) {
    .container { 
        max-width: 100%; 
        padding: 5rem 2.5rem 2.5rem; 
    }

    /* Arriba a la derecha */
    .deco-limones   { width: 32vw; right: -5vw; top: -1vh; bottom: auto; }
    
    /* Arriba a la izquierda */
    .deco-olivo     { width: 24vw; left: -5vw; top: 24vh; bottom: auto; }
    
    /* Costado izquierdo medio-alto */
    .deco-sello-izq { width: 22vw; left: -2vw; top: -1vh; bottom: auto; }
    
    /* Costado derecho medio-bajo */
    .deco-sello-der { width: 25vw; right: 0vw; top: 52vh; bottom: auto; }
    
    /* Costado derecho medio (Ojo griego) */
    .deco-ojo       { width: 50vw; right: -20vw; bottom: 0vh; top: auto; }
    
    /* Abajo a la izquierda */
    .deco-copa      { width: 50vw; left: -20vw; bottom: 0vh; top: auto; }
}