:root {
    --bg: #0b1220;
    --card: rgba(255, 255, 255, 0.06);
    --text: rgba(255, 255, 255, 0.92);
    --muted: rgba(255, 255, 255, 0.70);
    --line: rgba(255, 255, 255, 0.12);
    --accent: rgba(120, 180, 255, 0.95);
    --accent2: rgba(255, 210, 120, 0.95);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    background:
        radial-gradient(1200px 800px at 20% 0%, rgba(120, 180, 255, 0.2), transparent 60%),
        radial-gradient(1000px 600px at 80% 10%, rgba(255, 210, 120, 0.14), transparent 55%),
        var(--bg);
    color: var(--text);
}

.container {
    width: min(980px, calc(100% - 32px));
    margin: 0 auto;
}

/* =========================
   HERO TOP CENTRADO Y COMPACTO
========================= */

.hero-top {
    padding: 12px 0 14px;
    border-bottom: 1px solid var(--line);
    text-align: center;
}

.hero-top .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.hero-top .kicker {
    margin: 0;
    font-size: 0.85rem;
    opacity: 0.8;
}

.hero-top h1 {
    margin: 2px 0;
}

.hero-top .sub {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.75;
}

.hero-top .kicker,
.hero-top h1,
.hero-top .sub {
    text-align: center;
}

.chips, .hero-cta{
    display: flex;
    flex-wrap: wrap;
    gap: 20px 10px;
    margin-top: 5px;
    justify-content: center;
}

.chip {
    border: 1px solid var(--line);
    padding: 6px 18px;
    border-radius: 999px;
    color: var(--muted);
    font-size: 14px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.chip:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 204, 0, 0.4);
}

/* =========================
   HERO ÉPICO
========================= */

.hero {
    position: relative;
    padding: 0 0 20px;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('../img/novios.jpg');
    background-size: cover;
    background-position: center;
    filter: blur(20px) brightness(0.4);
    transform: scale(1.1);
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255, 0, 0, 0.25), transparent 70%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 980px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(38px, 6vw, 64px);
    margin-bottom: 10px;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.hero-title span {
    color: #ffcc00;
}

.hero-img {
    width: 100%;
    max-width: 520px;
    border-radius: 20px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.7);
    margin-bottom: 10px;
}

.hero-text p {
    font-size: 1.15rem;
    line-height: 1.6;
    margin-bottom: 18px;
}

.event-info {
    margin: 30px 0;
    font-size: 1.1rem;
}

/* =========================
   BOTONES
========================= */

.btn-primary,
.btn-secondary,
.btn {
    display: inline-block;
    padding: 12px 20px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.btn-primary {
    background: #ffcc00;
    color: #000;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 204, 0, 0.4);
}

.btn-secondary {
    border: 2px solid #fff;
    color: #fff;
}

.btn-secondary:hover {
    background: #fff;
    color: #000;
}

.btn {
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: linear-gradient(135deg, rgba(120, 180, 255, 0.35), rgba(255, 210, 120, 0.22));
    color: var(--text);
}

/* =========================
   CONTENIDO GENERAL
========================= */

main {
    padding: 0;
}

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
    margin: 24px 0;
    backdrop-filter: blur(10px);
}

h2 {
    margin: 0 0 10px;
}

h3 {
    margin: 20px 0 8px;
}

.muted {
    color: var(--muted);
}

label {
    display: block;
    font-size: 14px;
    color: var(--muted);
    margin: 12px 0;
}

input,
select,
textarea {
    width: 100%;
    margin-top: 6px;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.18);
    color: var(--text);
}

textarea {
    resize: vertical;
}

.grid2,
.grid3 {
    display: grid;
    gap: 12px;
}

.grid2 {
    grid-template-columns: 1fr;
}

.grid3 {
    grid-template-columns: 1fr;
}

@media (min-width: 820px) {
    .grid2 {
        grid-template-columns: 1fr 1fr;
    }

    .grid3 {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

/* =========================
   REGALOS
========================= */

.gifts {
    display: grid;
    gap: 16px;
}

@media (min-width: 820px) {
    .gifts {
        grid-template-columns: 1fr 1fr;
    }
}

.gift {
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 16px;
    background: rgba(0, 0, 0, 0.12);
}

/* =========================
   SECCIONES CON ICONO
========================= */

.section-block {
    padding: 0;
}

.section-block:first-of-type {
    padding-top: 40px;
}

.section-block:last-of-type {
    padding-bottom: 10px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.icon-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(120, 180, 255, 0.6), rgba(255, 210, 120, 0.6));
    display: flex;
    align-items: center;
    justify-content: center;
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.footer {
    text-align: center;
    padding: 10px 0;
}
.dress-text {
    font-size: 1.05rem;
    line-height: 1.7;
}

.highlight {
    font-weight: 700;
    font-size: 1.1rem;
    margin-top: 20px;
}

.address {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.map-wrapper {
    border-radius: 18px;
    overflow: hidden;
    margin: 20px 0;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.map-cta {
    text-align: center;
    margin-top: 10px;
}

.countdown-wrapper {
    margin: 0 0 15px;
}

.countdown-label {
    font-size: 1.2rem;
    letter-spacing: 1px;
    margin-bottom: 12px;
    color: var(--muted);
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 0px 0;
    flex-wrap: wrap;
}

.countdown div {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 10px 10px;
    min-width: 70px;
}

.countdown span {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
}

.countdown small {
    font-size: 0.8rem;
    color: var(--muted);
}

.mission-complete {
    margin-top: 0px;
    margin-bottom: 0px;
    font-size: 1.6rem;
    font-weight: 700;
    color: #ffcc00;
    text-align: center;
    animation: fadeInMission 1.2s ease forwards;
}

@keyframes fadeInMission {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hidden {
    display: none !important;
}

.countdown span {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
    }

    100% {
        transform: scale(1);
    }
}

#confettiContainer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1000;
}

.confetti {
    position: absolute;
    width: 8px;
    height: 8px;
    background: gold;
    opacity: 0.9;
    animation: fall 3s linear forwards;
}

@keyframes fall {
    to {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* =========================
   COUNTDOWN SUPERIOR (vertical elegante)
========================= */

.countdown-compact {
    margin-top: 0px;
    text-align: center;
}

.countdown-compact .countdown-label {
    font-size: 1.2rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.7;
    margin-bottom: 0px;
}

.countdown-compact .countdown {
    display: flex;
    justify-content: center;
    gap: 0px;
    flex-wrap: nowrap;
    /* mantiene 1 línea */
}

.countdown-compact .countdown div {
    display: flex;
    flex-direction: column;
    /* 👈 número arriba, unidad abajo */
    align-items: center;
    padding: 6px 8px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(6px);
    min-width: 56px;
}

.countdown-compact .countdown span {
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1;
}

.countdown-compact .countdown small {
    font-size: 0.62rem;
    opacity: 0.6;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

/* Desktop un poco más grande */
@media (min-width: 900px) {
    .countdown-compact .countdown span {
        font-size: 1.3rem;
    }
}

/* =========================
   MÓVIL – MÁS APRETADO
========================= */

@media (max-width: 480px) {

    .countdown-compact .countdown {
        gap: 6px;
    }

    .countdown-compact .countdown div {
        padding: 4px 6px;
        min-width: 48px;
    }

    .countdown-compact .countdown span {
        font-size: 0.95rem;
    }

    .countdown-compact .countdown small {
        font-size: 0.55rem;
    }
}

.music-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: #000;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    z-index: 999;
}

/* Honeypot: oculto, pero presente en el DOM */
.hp-field {
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(1px, 1px, 1px, 1px) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    opacity: 0 !important;
    pointer-events: none !important;
}