/* ==========================================================
   EL RETO DEL GOLF
   COMING SOON
   Version 0.5
   ========================================================== */

:root {
    --bg: #f8f6f2;
    --white: #ffffff;
    --navy: #0e2338;
    --gold: #b79552;
    --text: #50555a;

    --font-title: "Cormorant Garamond", Georgia, serif;
    --font-text: "Inter", Arial, sans-serif;

    --max-width: 1240px;
}

/* ==========================================================
   RESET
   ========================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--navy);
    font-family: var(--font-text);
    -webkit-font-smoothing: antialiased;
}

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

/* ==========================================================
   HERO
   ========================================================== */

.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;

    min-height: auto;

    display: flex;
    align-items: flex-start;

    padding:
        24px
        clamp(25px, 5vw, 70px)
        58px;

    background:
        linear-gradient(
            90deg,
            #f8f6f2 0%,
            #f8f6f2 42%,
            #eef0eb 68%,
            #dfe5dc 100%
        );
}

/*
   Integra visualmente la portada en el Hero.
   La misma imagen se usa como fondo ampliado,
   desenfocado y desvanecido hacia la izquierda.
*/
.hero::before {
    content: "";

    position: absolute;
    z-index: -2;

    top: -15%;
    right: -8%;

    width: 62%;
    height: 130%;

    background:
        url("../images/cover.png")
        center center / cover
        no-repeat;

    filter: blur(34px) saturate(0.85);
    transform: scale(1.12);

    opacity: 0.23;

    -webkit-mask-image:
        linear-gradient(
            to right,
            transparent 0%,
            rgba(0, 0, 0, 0.25) 18%,
            #000 52%
        );

    mask-image:
        linear-gradient(
            to right,
            transparent 0%,
            rgba(0, 0, 0, 0.25) 18%,
            #000 52%
        );
}

/*
   Capa clara para conservar máxima legibilidad
   en la zona del texto.
*/
.hero::after {
    content: "";

    position: absolute;
    z-index: -1;

    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(248, 246, 242, 0.98) 0%,
            rgba(248, 246, 242, 0.96) 36%,
            rgba(248, 246, 242, 0.68) 57%,
            rgba(248, 246, 242, 0.12) 100%
        );

    pointer-events: none;
}

.hero-container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;

    display: grid;

    grid-template-columns:
        minmax(0, 0.94fr)
        minmax(360px, 1.06fr);

    align-items: start;

    gap: clamp(40px, 5vw, 78px);
}

/* HERO - KICKER */

.hero-kicker {
    display: flex;
    align-items: center;
    width: 100%;
    margin: 0 0 24px 0;

    font-family: var(--font-text);
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    white-space: nowrap;
}

.hero-kicker::after {
    content: "";
    display: block;
    flex: 1 1 auto;
    min-width: 40px;
    height: 1px;
    margin-left: 18px;
    background: var(--gold);
    opacity: 0.6;
}

/* HERO - TEXTO */

.hero-text {
    max-width: 700px;
}

.hero-text h1 {
    margin: 0;

    font-family: var(--font-title);

    font-size:
        clamp(72px, 7.4vw, 116px);

    font-weight: 600;
    line-height: 0.88;
    letter-spacing: -0.045em;

    color: var(--navy);
}

.hero-text h2 {
    max-width: 600px;

    margin:
        28px
        0
        0;

    font-family: var(--font-title);

    font-size:
        clamp(34px, 3.3vw, 49px);

    font-weight: 400;
    line-height: 1.04;

    color: var(--gold);
}

.hero-idea {
    margin:
        42px
        0
        0;

    font-family: var(--font-title);

    font-size:
        clamp(29px, 2.5vw, 39px);

    font-weight: 600;

    color: var(--navy);
}

.hero-description {
    max-width: 570px;

    margin:
        18px
        0
        0;

    font-size: 17px;
    line-height: 1.75;

    color: var(--text);
}

.hero-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    margin-top: 36px;

    min-height: 58px;

    padding:
        0
        30px;

    background: var(--navy);

    border:
        1px
        solid
        var(--navy);

    color: var(--white);

    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.13em;

    text-decoration: none;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.hero-button:hover {
    background: var(--gold);
    border-color: var(--gold);
    transform: translateY(-2px);
}

/* HERO - PORTADA */

.hero-image {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.hero-image img {
    width: min(100%, 520px);
    height: auto;

    box-shadow:
        0 10px 24px rgba(14, 35, 56, 0.10),
        0 36px 80px rgba(14, 35, 56, 0.24);
}

/* ==========================================================
   CONTENEDOR ESTRECHO
   ========================================================== */

.content-narrow {
    width: min(
        calc(100% - 48px),
        900px
    );

    margin: 0 auto;
}

.content-narrow-text {
	font-size: 30px !important;
}

/* ==========================================================
   SECCIÓN 2
   LA PREGUNTA
   ========================================================== */

.question-section {
    padding:
        clamp(48px, 5vw, 72px)
        0;

    background: var(--white);
    text-align: center;
}

.question-section h2 {
    max-width: 900px;

    margin:
        0
        auto;

    font-family: var(--font-title);

    font-size:
        clamp(50px, 6vw, 80px);

    font-weight: 500;
    line-height: 1.02;
    letter-spacing: -0.025em;

    color: var(--navy);
}

.question-section p {
    max-width: 680px;

    margin:
        24px
        auto
        0;

    font-size: 18px;
    line-height: 1.8;

    color: var(--text);
}

.question-section p + p {
    margin-top: 16px;
}

/* ==========================================================
   SECCIÓN 3
   TENGO UNA OPCIÓN
   ========================================================== */

.idea-section {
    padding:
        clamp(52px, 5.5vw, 78px)
        0;

    background: var(--navy);
    text-align: center;
}

.idea-section h2 {
    margin: 0;

    font-family: var(--font-title);

    font-size:
        clamp(64px, 7vw, 100px);

    font-weight: 500;
    line-height: 1;

    color: var(--gold);
}

.idea-section p {
    max-width: 760px;

    margin:
        30px
        auto
        0;

    font-family: var(--font-title);

    font-size:
        clamp(28px, 3vw, 40px);

    line-height: 1.35;

    color:
        rgba(255, 255, 255, 0.9);
}

.idea-section .idea-final {
    margin-top: 30px;

    font-weight: 500;

    color: var(--white);
}

/* ==========================================================
   SECCIÓN 4
   CAPTACIÓN
   ========================================================== */

.signup-section {
    padding:
        clamp(52px, 5.5vw, 78px)
        24px;

    background: var(--bg);
    text-align: center;
}

.signup-container {
    width: 100%;
    max-width: 820px;

    margin: 0 auto;
}

.signup-section h2 {
    margin: 0;

    font-family: var(--font-title);

    font-size:
        clamp(50px, 5.3vw, 76px);

    font-weight: 500;
    line-height: 1.03;

    color: var(--navy);
}

.signup-section h2 span {
    display: block;

    color: var(--gold);
}

.signup-intro {
    max-width: 620px;

    margin:
        22px
        auto
        0;

    font-size: 17px;
    line-height: 1.7;

    color: var(--text);
}

/* ==========================================================
   FORMULARIO
   ========================================================== */

#signupForm {
    max-width: 760px;

    margin:
        32px
        auto
        0;
}

.form-row {
    display: grid;

    grid-template-columns:
        1fr
        auto;

    gap: 12px;
}

.form-row input[type="email"] {
    width: 100%;
    min-height: 60px;

    padding:
        0
        20px;

    border:
        1px
        solid
        rgba(14, 35, 56, 0.2);

    border-radius: 0;

    background: var(--white);

    color: var(--navy);

    font-family: var(--font-text);
    font-size: 15px;

    outline: none;
}

.form-row input[type="email"]:focus {
    border-color: var(--navy);
}

.form-row button {
    min-height: 60px;

    padding:
        0
        28px;

    border:
        1px
        solid
        var(--navy);

    background: var(--navy);

    color: var(--white);

    font-family: var(--font-text);

    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.12em;

    cursor: pointer;
}

.form-row button:hover {
    background: var(--gold);
    border-color: var(--gold);
}

/* PRIVACIDAD */

.privacy {
    display: flex;
    align-items: flex-start;

    gap: 12px;

    margin-top: 22px;

    text-align: left;

    color: #6d7073;

    font-size: 12px;
    line-height: 1.6;
}

.privacy input {
    flex: 0 0 auto;

    margin-top: 4px;

    accent-color: var(--navy);
}

.signup-note {
    margin:
        16px
        0
        0;

    color: #858585;

    font-size: 11px;
    line-height: 1.6;
}

.form-message {
    min-height: 24px;

    margin:
        16px
        0
        0;

    color: var(--navy);

    font-size: 13px;
}

/* ==========================================================
   FOOTER
   ========================================================== */

footer {
    display: flex;
    justify-content: space-between;

    width: 100%;

    padding:
        30px
        max(24px, calc((100% - 1240px) / 2));

    background: var(--navy);

    color:
        rgba(255, 255, 255, 0.55);

    font-size: 10px;
    letter-spacing: 0.1em;

    text-transform: uppercase;
}

/* ==========================================================
   TABLET
   ========================================================== */

@media (max-width: 900px) {

    .hero::before {
        width: 100%;
        right: -30%;
        opacity: 0.14;
    }

    .hero::after {
        background:
            linear-gradient(
                180deg,
                rgba(248, 246, 242, 0.97) 0%,
                rgba(248, 246, 242, 0.92) 45%,
                rgba(248, 246, 242, 0.55) 100%
            );
    }


    .hero {
        min-height: auto;

        padding:
            24px
            30px
            80px;
    }

    .hero-container {
        grid-template-columns: 1fr;

        gap: 60px;

        text-align: center;
    }

    .hero-text {
        max-width: 750px;

        margin: 0 auto;
    }

    .hero-text h2,
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-image {
        align-items: center;
    }

    .hero-image img {
        width:
            min(72vw, 420px);
    }

    .question-section {
        padding:
            60px
            0;
    }

    .idea-section {
        padding:
            64px
            0;
    }

    .signup-section {
        padding:
            64px
            24px;
    }
}

/* ==========================================================
   MÓVIL
   ========================================================== */

@media (max-width: 600px) {

    .hero {
        padding:
            24px
            22px
            70px;
    }

    .hero-container {
        gap: 52px;
    }

    .hero-text h1 {
        font-size:
            clamp(58px, 18vw, 76px);

        line-height: 0.9;
    }

    .hero-text h2 {
        margin-top: 24px;

        font-size: 32px;
    }

    .hero-idea {
        margin-top: 32px;
    }

    .hero-description {
        font-size: 15px;
        line-height: 1.7;
    }

    .hero-button {
        width: 100%;

        padding:
            0
            15px;

        font-size: 10px;
    }

    .hero-image img {
        width:
            min(86vw, 365px);
    }

    .question-section {
        padding:
            52px
            24px;
    }

    .question-section h2 {
        font-size: 46px;
    }

    .question-section p {
        font-size: 16px;
    }

    .idea-section {
        padding:
            56px
            24px;
    }

    .idea-section h2 {
        font-size: 62px;
    }

    .signup-section {
        padding:
            56px
            24px;
    }

    .signup-section h2 {
        font-size: 48px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-row button {
        width: 100%;
    }

    footer {
        flex-direction: column;

        align-items: center;

        gap: 10px;

        text-align: center;
    }
}
