:root {
    --bg: #f4efe6;
    --paper: #fffdf8;
    --ink: #17202a;
    --muted: #72716d;
    --line: #ded8ce;
    --accent: #20354a;
    --accent-hover: #14283a;
    --soft: #ebe5da;
    --success: #32654a;
    --danger: #9d4545;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

a {
    color: inherit;
}

.site-header {
    max-width: 1180px;
    margin: 0 auto;
    padding: 30px 28px;
}

.brand {
    display: inline-block;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -.5px;
    text-decoration: none;
}

.brand-dot {
    color: var(--accent);
}

.hero {
    max-width: 980px;
    margin: 65px auto 90px;
    padding: 0 28px;
    text-align: center;
}

.eyebrow {
    margin-bottom: 20px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 820px;
    margin: 0 auto;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(48px, 8vw, 92px);
    font-weight: 400;
    line-height: .98;
    letter-spacing: -4px;
}

.hero-text {
    max-width: 620px;
    margin: 30px auto 0;
    color: var(--muted);
    font-size: 19px;
    line-height: 1.7;
}

.primary-button {
    display: inline-block;
    margin-top: 35px;
    padding: 16px 25px;
    border: 0;
    border-radius: 100px;
    background: var(--accent);
    color: #fff;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease;
}

.primary-button:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.trust {
    margin-top: 18px;
    color: var(--muted);
    font-size: 13px;
}

.how {
    max-width: 1000px;
    margin: 0 auto 110px;
    padding: 0 28px;
}

.how-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.how-item {
    min-height: 190px;
    padding: 28px 25px;
    border-right: 1px solid var(--line);
}

.how-item:last-child {
    border-right: 0;
}

.step {
    display: block;
    margin-bottom: 38px;
    color: var(--muted);
    font-size: 12px;
}

.how-item strong {
    display: block;
    margin-bottom: 8px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 23px;
    font-weight: 400;
}

.how-item p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.form-section {
    padding: 100px 28px;
    background: var(--paper);
}

.form-wrap {
    max-width: 680px;
    margin: 0 auto;
}

.form-heading {
    margin-bottom: 45px;
    text-align: center;
}

.form-heading h2 {
    margin: 0 0 15px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(38px, 6vw, 58px);
    font-weight: 400;
    letter-spacing: -2px;
}

.form-heading p {
    margin: 0;
    color: var(--muted);
}

.field {
    margin-bottom: 28px;
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

label {
    display: block;
    margin-bottom: 9px;
    font-size: 14px;
    font-weight: 700;
}

.optional {
    color: var(--muted);
    font-weight: 400;
}

input,
textarea {
    width: 100%;
    padding: 15px 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    outline: none;
    background: #fff;
    color: var(--ink);
    font: inherit;
    transition: border-color .2s ease, box-shadow .2s ease;
}

textarea {
    min-height: 190px;
    resize: vertical;
    line-height: 1.6;
}

input:focus,
textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(32, 53, 74, .08);
}

.counter {
    margin-top: 6px;
    color: var(--muted);
    font-size: 12px;
    text-align: right;
}

.submit-button {
    width: 100%;
    margin-top: 8px;
    padding: 17px 22px;
    border: 0;
    border-radius: 100px;
    background: var(--accent);
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.submit-button:hover {
    background: var(--accent-hover);
}

.errors {
    margin-bottom: 30px;
    padding: 18px 20px;
    border: 1px solid #e0bcbc;
    border-radius: 8px;
    background: #fff5f3;
    color: var(--danger);
}

.errors ul {
    margin-bottom: 0;
}

.privacy-note {
    max-width: 520px;
    margin: 22px auto 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
    text-align: center;
}

.site-footer {
    padding: 45px 28px;
    color: var(--muted);
    font-size: 12px;
    text-align: center;
}

@media (max-width: 760px) {
    .site-header {
        padding: 22px 20px;
    }

    .hero {
        margin: 45px auto 70px;
        padding: 0 20px;
    }

    .hero h1 {
        font-size: 54px;
        letter-spacing: -2.5px;
    }

    .hero-text {
        font-size: 17px;
    }

    .how {
        padding: 0 20px;
        margin-bottom: 70px;
    }

    .how-grid {
        grid-template-columns: 1fr 1fr;
    }

    .how-item:nth-child(2) {
        border-right: 0;
    }

    .how-item:nth-child(-n+2) {
        border-bottom: 1px solid var(--line);
    }

    .form-section {
        padding: 70px 20px;
    }

    .field-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 46px;
    }

    .how-grid {
        grid-template-columns: 1fr;
    }

    .how-item {
        min-height: auto;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .how-item:last-child {
        border-bottom: 0;
    }

    .step {
        margin-bottom: 20px;
    }
}

/* =========================================================
   PÁGINAS DE MENSAJE
   ========================================================= */

.message-page {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 45px 20px 80px;
}

.message-card {
    width: 100%;
    max-width: 720px;
    text-align: center;
}

.state-icon {
    width: 76px;
    height: 76px;
    margin: 0 auto 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--paper);
    font-size: 30px;
}

.message-card h1 {
    margin: 0 auto 20px;
    max-width: 650px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(42px, 7vw, 70px);
    font-weight: 400;
    line-height: 1.02;
    letter-spacing: -3px;
}

.lead {
    max-width: 570px;
    margin: 0 auto;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.7;
}

.opening-panel {
    max-width: 540px;
    margin: 38px auto 0;
    padding: 25px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.small-label {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.opening-date {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 23px;
}

.share-box {
    max-width: 600px;
    margin: 35px auto 0;
}

.share-link {
    display: flex;
    gap: 8px;
}

.share-link input {
    min-width: 0;
    flex: 1;
}

.small-button {
    padding: 0 20px;
    border: 0;
    border-radius: 8px;
    background: var(--accent);
    color: white;
    font-weight: 700;
    cursor: pointer;
}

.copy-message {
    height: 20px;
    margin-top: 8px;
    color: var(--success);
    font-size: 13px;
}

.action-stack {
    max-width: 600px;
    margin: 10px auto 0;
}

.action-button {
    display: block;
    width: 100%;
    margin-top: 10px;
    padding: 16px 22px;
    border: 0;
    border-radius: 100px;
    background: var(--accent);
    color: #fff;
    font: inherit;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.action-button:hover {
    background: var(--accent-hover);
}

.text-link {
    display: inline-block;
    margin-top: 25px;
    color: var(--muted);
    font-size: 14px;
}

.info-note {
    max-width: 530px;
    margin: 35px auto 0;
    padding-top: 25px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}


/* CUENTA ATRÁS */

.countdown-label {
    margin-top: 45px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.countdown {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    max-width: 600px;
    margin: 18px auto 0;
}

.time-box {
    padding: 22px 10px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.time-number {
    display: block;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(30px, 6vw, 48px);
    line-height: 1;
}

.time-label {
    display: block;
    margin-top: 10px;
    color: var(--muted);
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
}


/* MENSAJE ABIERTO */

.reveal-box {
    max-width: 650px;
    margin: 38px auto 0;
    padding: 35px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--paper);
    text-align: left;
}

.reveal-message {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 21px;
    line-height: 1.8;
    white-space: pre-wrap;
}

.hidden {
    display: none;
}

.fade-in {
    animation: revealMessage .7s ease forwards;
}

@keyframes revealMessage {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 600px) {
    .message-card h1 {
        font-size: 45px;
        letter-spacing: -2px;
    }

    .share-link {
        flex-direction: column;
    }

    .small-button {
        padding: 14px;
    }

    .countdown {
        gap: 5px;
    }

    .time-box {
        padding: 18px 4px;
    }

    .reveal-box {
        padding: 25px 20px;
    }
}
/* =========================================================
   PÁGINAS LEGALES
   ========================================================= */

.legal-page {
    padding: 65px 28px 100px;
}

.legal-content {
    max-width: 760px;
    margin: 0 auto;
}

.legal-content h1 {
    margin: 0 0 25px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(45px, 7vw, 70px);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -3px;
}

.legal-intro {
    margin-bottom: 55px;
    color: var(--muted);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 21px;
    line-height: 1.7;
}

.legal-content h2 {
    margin: 50px 0 15px;
    padding-top: 25px;
    border-top: 1px solid var(--line);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 25px;
    font-weight: 400;
}

.legal-content p,
.legal-content li {
    color: #454a4e;
    font-size: 15px;
    line-height: 1.8;
}

.legal-content ul {
    padding-left: 22px;
}

.legal-content li {
    margin-bottom: 10px;
}

.legal-update {
    margin-top: 60px;
    padding-top: 25px;
    border-top: 1px solid var(--line);
    color: var(--muted) !important;
    font-size: 12px !important;
}

.site-footer a {
    color: inherit;
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--ink);
}

.footer-separator {
    margin: 0 8px;
}

@media (max-width: 600px) {

    .legal-page {
        padding: 45px 20px 70px;
    }

    .legal-content h1 {
        font-size: 45px;
        letter-spacing: -2px;
    }

    .legal-intro {
        font-size: 18px;
    }

    .site-footer {
        line-height: 2;
    }
}