:root {
    --cream: #fbf5ec;
    --cream-2: #fffaf3;
    --gold: #c9a36a;
    --gold-dark: #a57d44;
    --brown: #4b3225;
    --text: #2f2f35;
    --muted: #72727d;
    --dark: #121821;
    --dark-2: #1d2633;
    --white: #ffffff;
    --shadow: 0 20px 60px rgba(0, 0, 0, .14);
    --radius: 24px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--cream);
    color: var(--text);
    line-height: 1.7;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1120px, 92%);
    margin: 0 auto;
}

.hero {
    min-height: 100vh;
    background: linear-gradient(rgba(0,0,0,.35), rgba(0,0,0,.45)), url('../img/hero-boda.png') center/cover no-repeat;
    color: var(--white);
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.nav {
    position: fixed;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: min(1060px, 92%);
    z-index: 20;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.6rem;
    padding: .9rem 1rem;
    border-radius: 999px;
    background: rgba(18, 24, 33, .52);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,.12);
    font-size: .9rem;
}

.nav a:hover,
.nav__admin {
    color: var(--gold);
}

.music-button {
    position: fixed;
    right: 24px;
    top: 24px;
    z-index: 30;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: var(--white);
    color: var(--brown);
    font-size: 1.4rem;
    cursor: pointer;
    box-shadow: var(--shadow);
}

.music-button.playing {
    background: var(--gold);
    color: var(--white);
}

.hero__content {
    width: min(760px, 92%);
    text-align: center;
    position: relative;
    z-index: 2;
    padding-top: 5rem;
}

.hero__tag,
.section__eyebrow {
    color: var(--gold);
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    font-size: .78rem;
}

.hero h1 {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(4rem, 12vw, 9rem);
    line-height: .86;
    font-weight: 400;
    margin: 1rem 0;
    text-shadow: 0 8px 25px rgba(0,0,0,.35);
}

.hero h1 span {
    display: block;
    font-size: .55em;
}

.hero__text {
    font-size: clamp(1rem, 2vw, 1.25rem);
    max-width: 580px;
    margin: 0 auto 2rem;
}

.countdown {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin: 2rem auto;
    max-width: 640px;
}

.countdown div {
    padding: 1rem;
    background: rgba(255,255,255,.13);
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 18px;
    backdrop-filter: blur(8px);
}

.countdown strong {
    display: block;
    font-size: clamp(1.6rem, 4vw, 2.8rem);
    line-height: 1;
}

.countdown span {
    text-transform: uppercase;
    font-size: .75rem;
    letter-spacing: .08em;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    padding: .95rem 1.45rem;
    border-radius: 999px;
    background: var(--brown);
    color: var(--white);
    font-weight: 700;
    box-shadow: 0 10px 25px rgba(0,0,0,.14);
}

.button--gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
}

.button--dark {
    background: var(--dark);
}

.section {
    padding: 5.5rem 0;
}

.section:nth-child(even) {
    background: var(--cream-2);
}

.center {
    text-align: center;
}

h2 {
    font-family: 'Great Vibes', cursive;
    color: var(--brown);
    font-size: clamp(3rem, 7vw, 5rem);
    font-weight: 400;
    line-height: 1;
    margin: .6rem 0 1.2rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.polaroid {
    background: var(--white);
    padding: 1rem 1rem 3rem;
    border-radius: 12px;
    transform: rotate(4deg);
    box-shadow: var(--shadow);
}

.polaroid img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 8px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
    margin-top: 2rem;
}

.card,
.confirm__box,
.admin-card,
.admin-stats article {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.6rem;
    box-shadow: 0 14px 35px rgba(0,0,0,.08);
    border: 1px solid rgba(201,163,106,.18);
}

.card {
    text-align: center;
}

.card span {
    font-size: 2rem;
}

.card h3 {
    color: var(--brown);
    margin: .5rem 0;
}

.gallery__grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr 1.1fr;
    gap: 1rem;
    margin-top: 2rem;
}

.gallery__grid img {
    width: 100%;
    height: 430px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.gallery__grid img:nth-child(2) {
    margin-top: 3rem;
}

.map-box iframe {
    width: 100%;
    height: 380px;
    border: 0;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.qr-box {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    display: grid;
    place-items: center;
    box-shadow: var(--shadow);
}

.qr-box img {
    width: 230px;
}

.confirm__box {
    max-width: 820px;
}

.form {
    display: grid;
    gap: 1rem;
    margin-top: 2rem;
}

input,
select,
textarea {
    width: 100%;
    padding: 1rem;
    border-radius: 16px;
    border: 1px solid rgba(75,50,37,.18);
    font-family: inherit;
    background: var(--white);
}

textarea {
    min-height: 120px;
    resize: vertical;
}

.footer {
    text-align: center;
    padding: 2rem;
    background: var(--brown);
    color: var(--white);
}

/* ADMIN */
.admin-body {
    background: #0f151d;
    color: var(--white);
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 100vh;
}

.sidebar {
    background: #0b1118;
    padding: 2rem 1.2rem;
    position: sticky;
    top: 0;
    height: 100vh;
}

.sidebar__brand {
    display: grid;
    gap: .3rem;
    text-align: center;
    margin-bottom: 2rem;
}

.sidebar__brand strong {
    font-family: 'Great Vibes', cursive;
    font-size: 3rem;
    color: var(--gold);
}

.sidebar a {
    display: block;
    padding: .9rem 1rem;
    border-radius: 14px;
    color: #d9e0ea;
    margin-bottom: .3rem;
}

.sidebar a:hover,
.sidebar a.active {
    background: var(--dark-2);
    color: var(--gold);
}

.admin-main {
    padding: 2rem;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.admin-header h1 {
    font-size: clamp(1.8rem, 4vw, 3rem);
}

.admin-header__actions {
    display: flex;
    gap: .8rem;
    flex-wrap: wrap;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.admin-stats article,
.admin-card {
    background: linear-gradient(145deg, #18212d, #111821);
    border: 1px solid rgba(255,255,255,.08);
    color: var(--white);
}

.admin-stats span,
.admin-card p,
.small {
    color: #aeb8c7;
}

.admin-stats strong {
    display: block;
    color: var(--gold);
    font-size: 2rem;
    margin: .35rem 0;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.admin-card h2 {
    font-family: 'Montserrat', sans-serif;
    color: var(--white);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.admin-form {
    display: grid;
    gap: .85rem;
}

.admin-form label {
    color: #dce4ef;
    font-weight: 600;
    font-size: .9rem;
}

.file-list {
    padding-left: 1.2rem;
    margin: 1rem 0;
    color: #dce4ef;
}

.admin-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .7rem;
}

.admin-gallery img,
.admin-qr img {
    border-radius: 14px;
    height: 120px;
    width: 100%;
    object-fit: cover;
}

.admin-qr img {
    width: 150px;
    height: 150px;
    background: var(--white);
    padding: .5rem;
    margin-top: 1rem;
}

@media (max-width: 900px) {
    .nav {
        overflow-x: auto;
        justify-content: flex-start;
        border-radius: 22px;
    }

    .grid-2,
    .admin-body,
    .admin-grid {
        grid-template-columns: 1fr;
    }

    .cards,
    .admin-stats {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .gallery__grid img,
    .polaroid img {
        height: 330px;
    }

    .gallery__grid img:nth-child(2) {
        margin-top: 0;
    }

    .sidebar {
        position: static;
        height: auto;
    }

    .admin-header {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 560px) {
    .hero__content {
        padding-top: 7rem;
    }

    .countdown,
    .cards,
    .admin-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .section {
        padding: 4rem 0;
    }

    .music-button {
        right: 16px;
        top: 86px;
    }
}
