:root {
    --azul: #0f4fa8;
    --azul2: #1d6fe0;
    --cian: #40c4ff;
    --violeta: #6e35c9;
    --violeta2: #8f42e8;
    --fondo: #0b1020;
    --fondo2: #141b35;
    --blanco: #ffffff;
    --texto: #18243a;
    --muted: #66758b;
    --linea: #d7e2f0;
    --input: #f7fafe;
    --ok: #1d9a52;
    --danger: #d63b58;
    --sombra: 0 20px 50px rgba(7, 16, 40, .22);
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--blanco);
    background:
        radial-gradient(circle at 20% 20%, rgba(64, 196, 255, .18), transparent 26%),
        radial-gradient(circle at 80% 20%, rgba(143, 66, 232, .22), transparent 28%),
        linear-gradient(135deg, #0b1020 0%, #16224b 45%, #6e35c9 100%);
    min-height: 100vh;
}

.page {
    width: min(1120px, calc(100% - 28px));
    margin: 0 auto;
    padding: 24px 0 40px;
}

.hero {
    position: relative;
    overflow: hidden;
    border-radius: 32px;
    padding: 42px 42px 34px;
    background:
        linear-gradient(135deg, rgba(8, 16, 40, .78), rgba(20, 34, 75, .62) 45%, rgba(110, 53, 201, .48)),
        radial-gradient(circle at 18% 70%, rgba(64, 196, 255, .16), transparent 26%),
        radial-gradient(circle at 80% 30%, rgba(255, 255, 255, .08), transparent 18%);
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 18px 45px rgba(0, 0, 0, .24);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, .04) 50%, transparent 100%);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 26px;
    align-items: end;
    position: relative;
    z-index: 2;
}

.marca {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .10);
    border: 1px solid rgba(255, 255, 255, .12);
    margin-bottom: 18px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.marca-punto {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--cian);
}

.hero h1 {
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1;
    font-weight: 800;
    letter-spacing: -.04em;
    margin-bottom: 14px;
    max-width: 660px;
}

.hero h1 span {
    color: #aee9ff;
}

.hero p {
    max-width: 720px;
    font-size: 16px;
    line-height: 1.7;
    color: #d8e7ff;
}

.hero-box {
    border-radius: 24px;
    padding: 24px;
    background: rgba(255, 255, 255, .10);
    border: 1px solid rgba(255, 255, 255, .12);
    backdrop-filter: blur(6px);
}

.hero-box small {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .10em;
    color: #bfe4ff;
    margin-bottom: 12px;
    font-weight: 700;
}

.hero-box h2 {
    font-size: 34px;
    line-height: 1;
    font-weight: 800;
    margin-bottom: 10px;
}

.hero-box p {
    font-size: 15px;
    color: #ebf4ff;
    line-height: 1.6;
}

.main {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
    margin-top: 24px;
    align-items: start;
}

.form-card {
    background: #ffffff;
    color: var(--texto);
    border-radius: 32px;
    box-shadow: var(--sombra);
    overflow: hidden;
}

.form-top {
    padding: 28px 30px 22px;
    background: linear-gradient(135deg, #f7fbff 0%, #eef5ff 100%);
    border-bottom: 1px solid #e5eef8;
}

.form-top h3 {
    font-size: 30px;
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -.03em;
}

.form-top p {
    margin-top: 10px;
    color: var(--muted);
    line-height: 1.7;
    font-size: 15px;
    max-width: 760px;
}

.form-body {
    padding: 28px 30px 32px;
}

form {
    display: grid;
    gap: 18px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field label {
    font-size: 14px;
    font-weight: 700;
    color: #20314d;
}

.field label span {
    color: #dc3659;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    border: 1px solid var(--linea);
    background: var(--input);
    border-radius: 16px;
    padding: 15px 16px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    color: #16253b;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

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

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: #7ab9ff;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(64, 196, 255, .12);
}

.section-title {
    font-size: 17px;
    font-weight: 800;
    color: #163154;
    margin-top: 4px;
    margin-bottom: 2px;
}

.beneficio-socios {
    padding: 16px 18px;
    border-radius: 18px;
    background: linear-gradient(135deg, #eef7ff 0%, #f7f2ff 100%);
    border: 1px solid #d9e7f7;
    margin-bottom: 6px;
}

.beneficio-socios strong {
    display: block;
    font-size: 15px;
    font-weight: 800;
    color: #163154;
    margin-bottom: 6px;
}

.beneficio-socios p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #5c6e86;
}

.radio-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.radio-option {
    position: relative;
}

.radio-option input {
    display: none;
}

.radio-option label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 110px;
    padding: 13px 18px;
    border-radius: 14px;
    border: 1px solid #d7e2f0;
    background: #f7fafe;
    color: #20314d;
    font-weight: 700;
    cursor: pointer;
    transition: .18s ease;
}

.radio-option input:checked+label {
    background: linear-gradient(135deg, var(--azul), var(--azul2));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 10px 20px rgba(15, 79, 168, .18);
}

.socio-box {
    display: none;
    padding: 18px;
    border: 1px solid #dfe9f4;
    border-radius: 20px;
    background: #f9fcff;
}

.socio-box.active {
    display: block;
}

.btn-search {
    border: none;
    cursor: pointer;
    padding: 15px 18px;
    border-radius: 16px;
    background: linear-gradient(135deg, #0f4fa8, #1d6fe0);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 12px 24px rgba(15, 79, 168, .18);
    transition: .15s ease;
    width: 100%;
    height: 49px;
    margin-top: 30px;
}

.btn-search:hover {
    transform: translateY(-1px);
}

.search-message {
    display: none;
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 600;
}

.search-message.ok {
    display: block;
    background: #eaf8ef;
    color: #1d9a52;
    border: 1px solid #cfe9d8;
}

.search-message.error {
    display: block;
    background: #fff1f3;
    color: var(--danger);
    border: 1px solid #f3c7d1;
}

.submit-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.submit-row p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
    max-width: 560px;
}

.btn {
    border: none;
    cursor: pointer;
    padding: 16px 28px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--azul), var(--azul2) 60%, var(--cian));
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    min-width: 230px;
    box-shadow: 0 14px 28px rgba(15, 79, 168, .22);
    transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 30px rgba(15, 79, 168, .26);
}

.side {
    display: grid;
    gap: 20px;
}

.side-card {
    border-radius: 28px;
    padding: 24px;
    background: rgba(255, 255, 255, .10);
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 14px 30px rgba(0, 0, 0, .18);
}

.side-card h4 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 12px;
}

.side-card p {
    color: #d8e8ff;
    font-size: 14px;
    line-height: 1.7;
}

.steps {
    list-style: none;
    display: grid;
    gap: 14px;
    margin-top: 16px;
}

.steps li {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 12px;
    align-items: start;
}

.step-n {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ce5ff;
    font-weight: 800;
}

.step-t strong {
    display: block;
    color: #ffffff;
    margin-bottom: 4px;
    font-size: 15px;
}

.step-t span {
    display: block;
    color: #d7e6ff;
    font-size: 14px;
    line-height: 1.6;
}

.info {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.info-item {
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .10);
}

.info-item b {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #9ddfff;
    margin-bottom: 6px;
}

.info-item span {
    font-size: 15px;
    color: #ffffff;
    line-height: 1.5;
    word-break: break-word;
}

.map-wrap {
    margin-top: 14px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .06);
}

.map-wrap iframe {
    width: 100%;
    height: 260px;
    border: 0;
    display: block;
}

.map-link {
    display: inline-block;
    margin-top: 14px;
    color: #bfe7ff;
    font-weight: 700;
    text-decoration: none;
}

.fade-in {
    opacity: 0;
    transform: translateY(10px);
    animation: fadeIn .38s ease forwards;
}

.delay-1 {
    animation-delay: .04s;
}

.delay-2 {
    animation-delay: .08s;
}

.delay-3 {
    animation-delay: .12s;
}

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

@media (max-width: 980px) {

    .hero-grid,
    .main {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .page {
        width: min(100% - 18px, 1120px);
        padding: 16px 0 24px;
    }

    .hero {
        padding: 24px 20px 22px;
        border-radius: 24px;
    }

    .form-top,
    .form-body,
    .side-card {
        padding-left: 20px;
        padding-right: 20px;
    }

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

    .hero h1 {
        font-size: 34px;
    }

    .hero-box h2 {
        font-size: 28px;
    }

    .form-top h3 {
        font-size: 26px;
    }

    .btn {
        width: 100%;
        min-width: auto;
    }
}

.form-toast {
    position: fixed;

    /* La alejamos del encabezado */
    top: 90px;
    right: 28px;

    width: 440px;
    max-width: calc(100vw - 56px);

    display: flex;
    align-items: flex-start;
    gap: 14px;

    padding: 19px 20px;

    border-radius: 16px;

    background: #ffffff;
    border: 1px solid #d8e2ef;

    box-shadow:
        0 20px 50px rgba(7, 16, 40, .28),
        0 4px 12px rgba(7, 16, 40, .12);

    z-index: 99999;

    animation: formToastEntrada .28s ease;
}

.form-toast {
    position: fixed;
    top: 35px;
    left: 50%;
    transform: translateX(-50%);

    width: 620px;
    max-width: calc(100vw - 40px);

    display: flex;
    align-items: center;
    gap: 18px;

    padding: 22px 24px;

    background: #ffffff;
    border-radius: 20px;

    box-shadow:
        0 25px 70px rgba(5, 15, 40, .35),
        0 8px 22px rgba(5, 15, 40, .18);

    z-index: 999999;

    animation: formToastEntrada .30s ease;
}

.form-toast.ok {
    border: 2px solid #b9e8cb;
    border-left: 8px solid #1d9a52;
}

.form-toast.error {
    border: 2px solid #f4c3cd;
    border-left: 8px solid #d63b58;
}

.form-toast-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;

    border-radius: 16px;

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

    font-size: 25px;
    font-weight: 900;
}

.form-toast.ok .form-toast-icon {
    background: #dff6e8;
    color: #137640;
}

.form-toast.error .form-toast-icon {
    background: #ffe5eb;
    color: #c92748;
}

.form-toast-content {
    flex: 1;
    min-width: 0;
}

.form-toast-title {
    font-size: 18px;
    line-height: 24px;
    font-weight: 800;
    color: #101c33;
    margin-bottom: 6px;
}

.form-toast-message {
    font-size: 15px;
    line-height: 22px;
    font-weight: 600;
    color: #52627a;
}

.form-toast-close {
    width: 36px;
    height: 36px;
    min-width: 36px;

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

    border: 0;
    border-radius: 10px;

    background: #f1f5f9;
    color: #738198;

    font-size: 23px;
    line-height: 1;

    cursor: pointer;

    transition: .15s ease;
}

.form-toast-close:hover {
    background: #e5ebf2;
    color: #26364e;
}

@keyframes formToastEntrada {
    from {
        opacity: 0;
        transform: translate(-50%, -20px) scale(.97);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0) scale(1);
    }
}

@keyframes formToastSalida {
    from {
        opacity: 1;
        transform: translate(-50%, 0) scale(1);
    }

    to {
        opacity: 0;
        transform: translate(-50%, -20px) scale(.97);
    }
}

@media (max-width: 650px) {
    .form-toast {
        top: 18px;
        width: calc(100vw - 28px);
        max-width: none;

        padding: 18px;
        gap: 13px;

        border-radius: 17px;
    }

    .form-toast-icon {
        width: 44px;
        height: 44px;
        min-width: 44px;
        border-radius: 13px;
        font-size: 21px;
    }

    .form-toast-title {
        font-size: 16px;
    }

    .form-toast-message {
        font-size: 13px;
        line-height: 19px;
    }
}