@import url('https://fonts.googleapis.com/css2?family=Google+Sans:wght@400;500;600&family=Roboto:wght@400;500;700&display=swap');

:root {
    --blue: #1a73e8;
    --red: #ea4335;
    --yellow: #fbbc04;
    --green: #34a853;

    --blue-bg: #e8f0fe;
    --red-bg: #fce8e6;
    --yellow-bg: #fef7e0;
    --green-bg: #e6f4ea;

    --background: #f8fafd;
    --surface: #ffffff;

    --text: #202124;
    --muted: #5f6368;

    --border: #dadce0;

    --radius: 16px;
}


/* =========================================================
   BASE
========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    background: var(--background);
    color: var(--text);

    font-family: Roboto, Arial, sans-serif;

    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

button,
input,
textarea {
    font-family: inherit;
}


/* =========================================================
   PÁGINA
========================================================= */

.page {
    width: min(760px, calc(100% - 32px));

    margin: auto;

    padding-bottom: 60px;
}


/* =========================================================
   HEADER
========================================================= */

.header {
    position: relative;

    padding: 32px 0 30px;

    text-align: center;
}


/* Línea Google */

.header::after {
    content: "";

    display: block;

    width: 100%;
    height: 4px;

    margin-top: 28px;

    border-radius: 4px;

    background:
        linear-gradient(
            90deg,
            var(--blue) 0%,
            var(--blue) 25%,
            var(--red) 25%,
            var(--red) 50%,
            var(--yellow) 50%,
            var(--yellow) 75%,
            var(--green) 75%,
            var(--green) 100%
        );
}


/* =========================================================
   VOLVER
========================================================= */

.back {
    position: absolute;

    left: 0;
    top: 34px;

    display: inline-flex;
    align-items: center;

    min-height: 38px;

    padding: 0 14px;

    border-radius: 20px;

    color: var(--blue);

    font-size: 13px;
    font-weight: 500;

    transition: .15s ease;
}

.back:hover {
    background: var(--blue-bg);
}


/* =========================================================
   MARCA
========================================================= */

.brand {
    margin-bottom: 16px;

    color: var(--muted);

    font-family: 'Google Sans', sans-serif;

    font-size: 14px;
    font-weight: 500;
}


/* =========================================================
   TÍTULO
========================================================= */

.header h1 {
    margin: 0;

    font-family: 'Google Sans', sans-serif;

    font-size: 32px;
    font-weight: 400;

    letter-spacing: -.5px;
}


/* =========================================================
   TARJETA PROMOCIÓN
========================================================= */

.promotion-card {
    position: relative;

    margin-top: 26px;

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: var(--radius);

    overflow: hidden;

    box-shadow:
        0 1px 2px rgba(60,64,67,.12),
        0 2px 6px rgba(60,64,67,.08);
}


/* Barra multicolor */

.promotion-card::before {
    content: "";

    display: block;

    height: 5px;

    background:
        linear-gradient(
            90deg,
            var(--blue),
            var(--blue) 25%,
            var(--red) 25%,
            var(--red) 50%,
            var(--yellow) 50%,
            var(--yellow) 75%,
            var(--green) 75%
        );
}


/* =========================================================
   IMAGEN
========================================================= */

.promotion-image {
    display: block;

    width: 100%;

    max-height: 360px;

    object-fit: cover;

    background: #f1f3f4;
}


/* =========================================================
   CONTENIDO PROMOCIÓN
========================================================= */

.promotion-content {
    padding: 28px;
}

.promotion-label {
    display: inline-flex;

    align-items: center;

    min-height: 30px;

    padding: 0 12px;

    border-radius: 16px;

    background: var(--blue-bg);

    color: var(--blue);

    font-size: 12px;
    font-weight: 500;
}

.promotion-title {
    margin: 16px 0 10px;

    font-family: 'Google Sans', sans-serif;

    font-size: 30px;
    font-weight: 500;

    letter-spacing: -.5px;
}


/* =========================================================
   DESCUENTO
========================================================= */

.discount {
    display: inline-block;

    margin: 4px 0 16px;

    padding: 9px 14px;

    border-radius: 8px;

    background: var(--green-bg);

    color: var(--green);

    font-family: 'Google Sans', sans-serif;

    font-size: 17px;
    font-weight: 600;
}


/* =========================================================
   DESCRIPCIÓN
========================================================= */

.promotion-description {
    margin: 14px 0;

    color: var(--muted);

    font-size: 15px;

    line-height: 1.65;
}


/* =========================================================
   CÓDIGO
========================================================= */

.promotion-code {
    display: inline-block;

    margin-top: 10px;

    padding: 9px 13px;

    border: 1px dashed var(--yellow);

    border-radius: 8px;

    background: var(--yellow-bg);

    color: #8a5b00;

    font-family: monospace;

    font-size: 14px;
}


/* =========================================================
   EXPIRACIÓN
========================================================= */

.expiration {
    margin-top: 14px;

    color: var(--red);

    font-size: 13px;
    font-weight: 500;
}


/* =========================================================
   FORM CARD
========================================================= */

.form-card {
    position: relative;

    margin-top: 24px;

    padding: 32px;

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: var(--radius);

    box-shadow:
        0 1px 2px rgba(60,64,67,.10);
}


/* Barra verde */

.form-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 32px;
    right: 32px;

    height: 3px;

    background: var(--green);

    border-radius: 0 0 4px 4px;
}

.form-card h2 {
    margin: 4px 0 8px;

    font-family: 'Google Sans', sans-serif;

    font-size: 24px;
    font-weight: 400;
}

.form-intro {
    margin: 0 0 28px;

    color: var(--muted);

    font-size: 14px;

    line-height: 1.6;
}


/* =========================================================
   CAMPOS
========================================================= */

.field {
    margin-bottom: 22px;
}

.field label {
    display: block;

    margin-bottom: 8px;

    font-size: 13px;
    font-weight: 500;
}

.required {
    color: var(--red);
}

.field input,
.field textarea {
    display: block;

    width: 100%;

    border: 1px solid var(--border);

    border-radius: 8px;

    outline: none;

    background: white;

    color: var(--text);

    font-size: 14px;

    transition: .15s ease;
}

.field input {
    height: 48px;

    padding: 0 14px;
}

.field textarea {
    min-height: 110px;

    padding: 13px 14px;

    resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
    color: #80868b;
}

.field input:hover,
.field textarea:hover {
    border-color: #9aa0a6;
}

.field input:focus,
.field textarea:focus {
    border-color: var(--blue);

    box-shadow:
        0 0 0 1px var(--blue);
}


/* =========================================================
   CAMPOS CON COLORES GOOGLE
========================================================= */

#name:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 1px var(--blue);
}

#email:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 1px var(--red);
}

#phone:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 1px var(--green);
}

#notes:focus {
    border-color: var(--yellow);
    box-shadow: 0 0 0 1px var(--yellow);
}


/* =========================================================
   AYUDA
========================================================= */

.field-help {
    margin-top: 7px;

    color: var(--muted);

    font-size: 12px;
}


/* =========================================================
   TÉRMINOS
========================================================= */

.terms {
    margin: 26px 0;

    padding: 16px;

    border-left: 4px solid var(--yellow);

    border-radius: 8px;

    background: var(--yellow-bg);

    color: #5f6368;

    font-size: 13px;

    line-height: 1.6;
}

.terms strong {
    color: #8a5b00;
}


/* =========================================================
   BOTÓN WHATSAPP
========================================================= */

.submit-button {
    width: 100%;

    min-height: 50px;

    border: 0;

    border-radius: 25px;

    background: var(--green);

    color: white;

    font-size: 15px;
    font-weight: 500;

    cursor: pointer;

    box-shadow:
        0 1px 2px rgba(60,64,67,.20);

    transition:
        background .15s ease,
        box-shadow .15s ease,
        transform .1s ease;
}

.submit-button:hover {
    background: #2d9148;

    box-shadow:
        0 2px 5px rgba(60,64,67,.25);
}

.submit-button:active {
    transform: scale(.99);
}


/* =========================================================
   PRIVACIDAD
========================================================= */

.privacy {
    margin-top: 16px;

    color: var(--muted);

    font-size: 11px;

    line-height: 1.5;

    text-align: center;
}


/* =========================================================
   DARK MODE
========================================================= */

@media (prefers-color-scheme: dark) {

    :root {
        --background: #202124;
        --surface: #292a2d;

        --text: #e8eaed;
        --muted: #9aa0a6;

        --border: #3c4043;

        --blue: #8ab4f8;
        --red: #f28b82;
        --yellow: #fdd663;
        --green: #81c995;

        --blue-bg: #1a3558;
        --red-bg: #442726;
        --yellow-bg: #463c18;
        --green-bg: #1e3a29;
    }

    .field input,
    .field textarea {
        background: #292a2d;
        color: #e8eaed;
    }

    .promotion-code {
        color: var(--yellow);
    }

    .terms {
        color: var(--muted);
    }

    .terms strong {
        color: var(--yellow);
    }
}


/* =========================================================
   MÓVIL
========================================================= */

@media (max-width: 600px) {

    .page {
        width: calc(100% - 20px);
    }

    .header {
        padding-top: 72px;
    }

    .back {
        top: 20px;
        left: 0;
    }

    .header h1 {
        font-size: 27px;
    }

    .promotion-content {
        padding: 22px;
    }

    .promotion-title {
        font-size: 25px;
    }

    .form-card {
        padding: 24px 20px;
    }

    .form-card::before {
        left: 20px;
        right: 20px;
    }
}
