/* ==========================================================
   gdpro - Sección "Eres profesional. Compra como PRO."
   ========================================================== */

/* ---------- Tipografías (archivos dentro del módulo) ---------- */
@font-face {
    font-family: 'GD Anton';
    src: url('../fonts/anton-400.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'GD Montserrat';
    src: url('../fonts/montserrat-400.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'GD Montserrat';
    src: url('../fonts/montserrat-500.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'GD Montserrat';
    src: url('../fonts/montserrat-600.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'GD Montserrat';
    src: url('../fonts/montserrat-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ---------- Bloque ---------- */
.gd-pro {
    --gd-pro-orange: #F75900;
    --gd-pro-orange-hover: #d94e00;
    --gd-pro-dark: #0f0f0f;
    --gd-pro-text: #1d1d1b;
    --gd-pro-muted: #6b7280;
    --gd-pro-line: #d9d9d9;
    --gd-pro-gutter: clamp(20px, 5vw, 100px);

    /* Ancho completo, igual que gdslider */
    width: 100vw;
    margin-left: calc(50% - 50vw);
    font-family: 'GD Montserrat', Arial, Helvetica, sans-serif;
}

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

.gd-pro p {
    margin: 0;
}

.gd-pro__container {
    width: 100%;
    padding-left: var(--gd-pro-gutter);
    padding-right: var(--gd-pro-gutter);
}

/* ---------- Hero con foto de fondo (escritorio) ---------- */
.gd-pro__hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: clamp(380px, 28vw, 600px);
    overflow: hidden;
    background-color: var(--gd-pro-dark);
}

.gd-pro__media {
    position: absolute;
    inset: 0;
    margin: 0;
}

/* Oscurece la mitad izquierda como en el diseño, para que el texto destaque */
.gd-pro__media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(10, 10, 10, .92) 0%, rgba(10, 10, 10, .88) 36%, rgba(10, 10, 10, .6) 48%, rgba(10, 10, 10, .2) 58%, rgba(10, 10, 10, 0) 68%);
}

.gd-pro__bg {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
}

.gd-pro__inner {
    position: relative;
    z-index: 1;
    padding-top: clamp(36px, 4.3vw, 90px);
    padding-bottom: clamp(32px, 2.6vw, 56px);
}

.gd-pro__content {
    max-width: min(55%, 900px);
    color: #fff;
}

.gd-pro__brand {
    font-weight: 700;
    font-size: clamp(16px, 1.45vw, 30px);
    line-height: 1.2;
    color: var(--gd-pro-orange);
    text-transform: uppercase;
}

.gd-pro h2.gd-pro__title {
    margin: 6px 0 0;
    font-family: 'GD Anton', Impact, 'Arial Narrow', sans-serif;
    font-weight: 400;
    font-size: clamp(40px, 4.8vw, 100px);
    line-height: 1;
    letter-spacing: 0 !important;
    color: #fff;
    text-transform: uppercase;
}

/* Anton no tiene cursiva: la inclinación se hace con CSS */
.gd-pro__title-line {
    display: block;
    white-space: nowrap;
    transform: skewX(-8deg);
    transform-origin: left bottom;
}

/* Barra naranja bajo el titular (solo escritorio) */
.gd-pro h2.gd-pro__title::after {
    content: '';
    display: block;
    width: clamp(70px, 8.8vw, 185px);
    height: clamp(5px, .55vw, 12px);
    margin-top: clamp(10px, 1vw, 20px);
    background-color: var(--gd-pro-orange);
}

.gd-pro__lead {
    max-width: 19em;
    margin-top: clamp(12px, 1.3vw, 26px) !important;
    font-weight: 500;
    font-size: clamp(16px, 1.5vw, 32px);
    line-height: 1.25;
    color: #fff;
}

.gd-pro__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px clamp(24px, 2.8vw, 60px);
    margin-top: clamp(16px, 1.4vw, 30px);
}

/* !important en color: el tema pisa el color de los enlaces (como pasó con la paginación) */
.gd-pro .gd-pro__btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: clamp(12px, .9vw, 18px) clamp(22px, 2.5vw, 52px);
    border-radius: 6px;
    background-color: var(--gd-pro-orange);
    color: #fff !important;
    font-weight: 600;
    font-size: clamp(15px, 1.15vw, 24px);
    line-height: 1.2;
    text-decoration: none !important;
    transition: background-color .2s ease;
}

.gd-pro .gd-pro__btn:hover,
.gd-pro .gd-pro__btn:focus {
    background-color: var(--gd-pro-orange-hover);
}

.gd-pro__btn-icon {
    width: 1.1em;
    height: 1.1em;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.gd-pro .gd-pro__link {
    color: #fff !important;
    font-weight: 500;
    font-size: clamp(15px, 1.15vw, 24px);
    line-height: 1.2;
    text-decoration: underline !important;
    text-decoration-thickness: 2px !important;
    text-underline-offset: 6px;
}

.gd-pro .gd-pro__link:hover,
.gd-pro .gd-pro__link:focus {
    color: var(--gd-pro-orange) !important;
}

.gd-pro .gd-pro__btn:focus-visible,
.gd-pro .gd-pro__link:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

.gd-pro__note {
    margin-top: clamp(12px, 1vw, 20px) !important;
    font-weight: 400;
    font-size: clamp(13px, .75vw, 16px);
    line-height: 1.4;
    color: #fff;
}

/* ---------- Franja de ventajas (escritorio) ---------- */
.gd-pro__features {
    padding-top: clamp(22px, 1.4vw, 30px);
    padding-bottom: clamp(16px, 1.2vw, 26px);
    background-color: #fff;
    color: var(--gd-pro-text);
    margin-bottom: 50px;
}

/* Columnas "auto": cada ventaja ocupa lo que mide su texto y el sobrante se reparte entre ellas */
.gd-pro__list {
    display: grid;
    grid-template-columns: repeat(4, auto);
    justify-content: space-between;
    margin: 0;
    padding: 0;
    list-style: none;
}

.gd-pro__item {
    display: flex;
    align-items: center;
    gap: clamp(14px, 1.6vw, 34px);
    padding: 6px clamp(12px, 1.5vw, 32px) 6px clamp(16px, 3vw, 84px);
    border-left: 1px solid var(--gd-pro-line);
}

.gd-pro__item:last-child {
    padding-right: 0;
}

.gd-pro__item:first-child {
    padding-left: 0;
    border-left: 0;
}

.gd-pro__icon {
    flex: 0 0 auto;
    width: clamp(38px, 2.8vw, 58px);
    height: clamp(38px, 2.8vw, 58px);
    fill: none;
    stroke: var(--gd-pro-orange);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.gd-pro__item-title {
    font-weight: 600;
    font-size: clamp(15px, .95vw, 20px);
    line-height: 1.3;
    color: var(--gd-pro-text);
}

.gd-pro__item-text {
    margin-top: 4px !important;
    font-weight: 500;
    font-size: clamp(13px, .85vw, 18px);
    line-height: 1.35;
    color: var(--gd-pro-muted);
}

.gd-pro__legal {
    margin-top: 18px !important;
    font-weight: 400;
    font-size: clamp(12px, .65vw, 14px);
    line-height: 1.4;
    text-align: right;
    color: var(--gd-pro-muted);
}

/* Resumen inferior: solo se usa en móvil */
.gd-pro__summary {
    display: none;
}

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
    .gd-pro__content {
        max-width: 62%;
    }

    .gd-pro__media::after {
        background: linear-gradient(90deg, rgba(10, 10, 10, .92) 0%, rgba(10, 10, 10, .85) 50%, rgba(10, 10, 10, .45) 66%, rgba(10, 10, 10, 0) 80%);
    }
}

@media (max-width: 1199px) {
    .gd-pro__list {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 24px;
    }

    .gd-pro__item:nth-child(odd) {
        padding-left: 0;
        border-left: 0;
    }
}

/* ---------- Móvil: texto arriba, foto en medio, botones abajo ---------- */
@media (max-width: 768px) {
    .gd-pro {
        --gd-pro-gutter: 7vw;
    }

    .gd-pro__hero {
        flex-direction: column;
        align-items: stretch;
        min-height: 0;
    }

    /* Los contenedores "desaparecen" para poder ordenar cabecera, foto y botones */
    .gd-pro__inner,
    .gd-pro__content {
        display: contents;
    }

    .gd-pro__head {
        order: 1;
        padding: 28px var(--gd-pro-gutter) 22px;
        color: #fff;
    }

    .gd-pro__media {
        position: relative;
        order: 2;
    }

    .gd-pro__media::after {
        display: none;
    }

    .gd-pro__bg {
        height: auto;
    }

    .gd-pro__cta {
        order: 3;
        padding: 30px var(--gd-pro-gutter) 30px;
        text-align: center;
        color: #fff;
    }

    .gd-pro__brand {
        font-size: clamp(16px, 4.4vw, 22px);
    }

    /* "COMPRA COMO PRO." mide 7,5 em en Anton: con 10,5vw cabe en una línea con margen */
    .gd-pro h2.gd-pro__title {
        margin-top: 6px;
        font-size: 10.5vw;
    }

    .gd-pro h2.gd-pro__title::after {
        display: none;
    }

    .gd-pro__lead {
        max-width: none;
        margin-top: 16px !important;
        font-weight: 600;
        font-size: clamp(13px, 3.3vw, 16px);
    }

    .gd-pro__actions {
        flex-direction: column;
        gap: 18px;
        margin-top: 0;
    }

    .gd-pro .gd-pro__btn {
        justify-content: center;
        width: 100%;
        padding: 14px 20px;
        font-size: 18px;
    }

    .gd-pro .gd-pro__link {
        font-size: 16px;
    }

    .gd-pro__note {
        margin-top: 16px !important;
        font-size: 14px;
        color: rgba(255, 255, 255, .9);
    }

    /* Ventajas en 2x2 con líneas, solo título */
    .gd-pro__features {
        padding-top: 8px;
        padding-bottom: 26px;
    }

    .gd-pro__features .gd-pro__container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .gd-pro__list {
        grid-template-columns: 1fr 1fr;
        row-gap: 0;
    }

    .gd-pro__item,
    .gd-pro__item:first-child {
        gap: 10px;
        padding: 16px 6px 16px 12px;
        border-left: 0;
    }

    .gd-pro__item:nth-child(odd) {
        padding-left: 4px;
        border-right: 1px solid var(--gd-pro-line);
    }

    .gd-pro__item:nth-child(-n+2) {
        border-bottom: 1px solid var(--gd-pro-line);
    }

    .gd-pro__icon {
        width: 30px;
        height: 30px;
    }

    .gd-pro__item-title {
        font-size: 14px;
    }

    .gd-pro__item-text,
    .gd-pro__legal {
        display: none;
    }

    .gd-pro__summary {
        display: block;
        margin-top: 20px;
        text-align: center;
    }

    .gd-pro__summary-main {
        font-weight: 600;
        font-size: 15px;
        line-height: 1.35;
        color: var(--gd-pro-text);
    }

    .gd-pro__summary-note {
        margin-top: 8px !important;
        font-weight: 500;
        font-size: 13px;
        line-height: 1.4;
        color: var(--gd-pro-muted);
    }
}

@media (prefers-reduced-motion: reduce) {
    .gd-pro .gd-pro__btn {
        transition: none;
    }
}