/*
 * VTRIC Distribuidores
 * Escala visual alineada con Contacto.
 */

.distributor-hero {
    padding: 50px 0 44px;
    background: #fff;
}

.distributor-hero .section-shell,
.locator-section .section-shell,
.join-section .section-shell {
    max-width: 1420px;
}

.distributor-hero-grid {
    display: grid;
    grid-template-columns:
        minmax(0, .9fr)
        minmax(0, 1.1fr);
    gap: 54px;
    align-items: end;
}

.section-kicker {
    margin: 0 0 12px;
    color: #1184ff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.distributor-hero h1 {
    max-width: 650px;
    margin: 0;
    font-size: clamp(36px, 3.6vw, 50px);
    line-height: 1;
    letter-spacing: -.04em;
}

.distributor-hero-copy {
    max-width: 610px;
}

.distributor-hero-copy p {
    margin: 0 0 22px;
    color: #5d6267;
    font-size: 17px;
    line-height: 1.6;
}

.dark-button {
    display: inline-flex;
    min-height: 42px;
    padding: 0 18px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #202428;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.locator-section {
    padding: 50px 0 64px;
    background: #f5f7f8;
}

.locator-heading {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    align-items: end;
    margin-bottom: 26px;
}

.locator-heading h2,
.join-copy h2 {
    margin: 0;
    font-size: clamp(30px, 3vw, 41px);
    line-height: 1.05;
    letter-spacing: -.035em;
}

.province-filter {
    display: grid;
    gap: 7px;
    min-width: 250px;
}

.province-filter span {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.province-filter select {
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid #d8dddf;
    border-radius: 10px;
    background: #fff;
    color: #202428;
    font: inherit;
    font-size: 14px;
}

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

.distributor-card {
    display: flex;
    flex-direction: column;
    min-height: 230px;
    padding: 26px;
    border: 0;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(0, 0, 0, .05);
}

.distributor-location {
    margin-bottom: 24px;
    color: #1184ff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.distributor-card h3 {
    margin: 0 0 10px;
    font-size: 24px;
    line-height: 1.1;
    letter-spacing: -.02em;
}

.distributor-description {
    margin: 0 0 18px;
    color: #666;
    font-size: 15px;
    line-height: 1.55;
}

.distributor-data {
    display: grid;
    gap: 7px;
    margin-top: auto;
    padding-top: 14px;
}

.distributor-data span,
.distributor-data a {
    color: #555d61;
    font-size: 14px;
    line-height: 1.45;
    text-decoration: none;
}

.distributor-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #eceff0;
}

.distributor-actions a {
    display: inline-flex;
    min-height: 36px;
    padding: 0 14px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #202428;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.network-empty,
.filter-empty {
    padding: 30px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(0, 0, 0, .05);
}

.network-empty strong {
    display: block;
    margin-bottom: 8px;
    font-size: 21px;
    line-height: 1.2;
}

.network-empty p {
    max-width: 650px;
    margin: 0 0 16px;
    color: #666;
    font-size: 15px;
    line-height: 1.55;
}

.network-empty a {
    color: #1184ff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.join-section {
    padding: 0 0 64px;
    background: #f5f7f8;
    color: #202428;
}

.join-grid {
    display: grid;
    grid-template-columns:
        minmax(260px, .72fr)
        minmax(0, 1.28fr);
    gap: 48px;
    padding: 40px;
    border-radius: 22px;
    background: #fff;
}

.join-copy {
    position: static;
}

.join-copy .section-kicker {
    color: #1184ff;
}

.join-copy p:not(.section-kicker) {
    max-width: 410px;
    margin: 15px 0 0;
    color: #666;
    font-size: 15px;
    line-height: 1.6;
}

.join-points {
    display: grid;
    gap: 0;
    margin-top: 26px;
}

.join-points span {
    padding: 12px 0;
    border-bottom: 1px solid #eceff0;
    color: #4f565a;
    font-size: 14px;
    font-weight: 700;
}

.join-form-wrap {
    padding: 0;
    background: transparent;
    color: #202428;
}

.join-form {
    display: grid;
    gap: 17px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.join-form label {
    display: grid;
    gap: 7px;
}

.join-form label > span {
    color: #33383b;
    font-size: 13px;
    font-weight: 700;
}

.join-form input,
.join-form textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #d8dddf;
    border-radius: 10px;
    background: #fff;
    padding: 12px 14px;
    color: #202428;
    font: inherit;
    font-size: 14px;
}

.join-form input {
    min-height: 44px;
}

.join-form textarea {
    resize: vertical;
    line-height: 1.5;
}

.join-form input:focus,
.join-form textarea:focus,
.province-filter select:focus {
    border-color: #1184ff;
    outline: 2px solid rgba(17, 132, 255, .12);
    outline-offset: 0;
}

.privacy-check {
    grid-template-columns: 18px 1fr;
    gap: 10px !important;
    align-items: start;
}

.privacy-check input {
    width: 17px;
    height: 17px;
    min-height: 17px;
    margin: 2px 0 0;
}

.privacy-check span {
    color: #666 !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    line-height: 1.5;
}

.submit-button {
    display: inline-flex;
    width: fit-content;
    min-height: 44px;
    padding: 0 20px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: #202428;
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.form-success,
.form-errors {
    margin-bottom: 18px;
    padding: 16px 18px;
    border-radius: 12px;
    font-size: 14px;
}

.form-success {
    border-left: 4px solid #6cc24a;
    background: #eff8ec;
}

.form-success strong,
.form-success span {
    display: block;
}

.form-success span {
    margin-top: 4px;
    color: #52604f;
}

.form-errors {
    border-left: 4px solid #f28c28;
    background: #fff6ec;
}

.form-errors ul {
    margin: 8px 0 0;
    padding-left: 18px;
}

.website-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

[hidden] {
    display: none !important;
}

@media (max-width: 980px) {
    .distributor-hero-grid,
    .join-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .distributor-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .distributor-hero {
        padding: 40px 0 36px;
    }

    .distributor-hero-grid {
        gap: 24px;
    }

    .locator-section {
        padding: 40px 0 48px;
    }

    .join-section {
        padding: 0 0 48px;
    }

    .locator-heading {
        display: grid;
        gap: 22px;
        align-items: stretch;
    }

    .province-filter {
        min-width: 0;
    }

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

    .join-grid {
        padding: 26px 20px;
        border-radius: 18px;
    }

    .distributor-card {
        min-height: 0;
    }
}

/* ==================================================
   VTRIC DISTRIBUIDORES - IDENTIDAD DE COLOR
   Misma familia visual que Contacto
   ================================================== */

.distributor-hero {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(
            110deg,
            #ffffff 0%,
            #ffffff 58%,
            #eef7ff 100%
        );
}

.distributor-hero::after {
    content: "";
    position: absolute;
    top: -120px;
    right: -90px;
    width: 330px;
    height: 330px;
    border-radius: 50%;
    background: rgba(17, 132, 255, .07);
    pointer-events: none;
}

.distributor-hero .section-shell {
    position: relative;
    z-index: 1;
}

.distributor-hero h1 {
    color: #202428;
}

.distributor-hero-copy {
    padding-left: 24px;
    border-left: 4px solid #1184ff;
}

.locator-section {
    background:
        linear-gradient(
            180deg,
            #f5f7f8 0%,
            #eef3f5 100%
        );
}

.locator-heading {
    padding-bottom: 22px;
    border-bottom: 1px solid #dce3e6;
}

.locator-heading h2 {
    color: #202428;
}

.network-empty {
    position: relative;
    overflow: hidden;
    border-top: 4px solid #1184ff;
    background:
        linear-gradient(
            120deg,
            #ffffff 0%,
            #f7fbff 100%
        );
}

.network-empty::after {
    content: "";
    position: absolute;
    right: -60px;
    bottom: -80px;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    background: rgba(108, 194, 74, .08);
    pointer-events: none;
}

.distributor-card {
    position: relative;
    overflow: hidden;
    border-top: 4px solid #1184ff;
}

.distributor-card:nth-child(3n + 2) {
    border-top-color: #6cc24a;
}

.distributor-card:nth-child(3n) {
    border-top-color: #f28c28;
}

.distributor-card:nth-child(3n + 2)
.distributor-location {
    color: #559f38;
}

.distributor-card:nth-child(3n)
.distributor-location {
    color: #d97716;
}

.province-filter select {
    border-color: #ccd9df;
    background: #ffffff;
}

.join-section {
    background:
        linear-gradient(
            180deg,
            #eef3f5 0%,
            #f5f7f8 100%
        );
}

.join-grid {
    position: relative;
    overflow: hidden;
    box-shadow:
        0 12px 36px rgba(0, 0, 0, .055);
}

.join-grid::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 42%;
    height: 5px;
    background: #1184ff;
}

.join-grid::after {
    content: "";
    position: absolute;
    top: 0;
    left: 42%;
    width: 58%;
    height: 5px;
    background:
        linear-gradient(
            90deg,
            #6cc24a 0%,
            #6cc24a 52%,
            #f28c28 52%,
            #f28c28 100%
        );
}

.join-copy {
    padding: 6px 30px 6px 0;
    border-right: 1px solid #e5e9eb;
}

.join-copy h2 {
    color: #202428;
}

.join-points span {
    position: relative;
    padding-left: 22px;
}

.join-points span::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #1184ff;
    transform: translateY(-50%);
}

.join-points span:nth-child(2)::before {
    background: #6cc24a;
}

.join-points span:nth-child(3)::before {
    background: #f28c28;
}

.join-form input:focus,
.join-form textarea:focus,
.province-filter select:focus {
    border-color: #1184ff;
    outline: 3px solid rgba(17, 132, 255, .10);
}

.submit-button {
    background:
        linear-gradient(
            90deg,
            #1184ff,
            #0874df
        );
    box-shadow:
        0 8px 20px rgba(17, 132, 255, .18);
}

.submit-button:hover {
    filter: brightness(.96);
}

@media (max-width: 980px) {
    .join-copy {
        padding-right: 0;
        padding-bottom: 26px;
        border-right: 0;
        border-bottom: 1px solid #e5e9eb;
    }

    .distributor-hero-copy {
        padding-left: 0;
        padding-top: 18px;
        border-left: 0;
        border-top: 4px solid #1184ff;
    }
}


/* ==================================================
   VTRIC DISTRIBUIDORES - FICHAS COMPACTAS Y PORTAL
   ================================================== */

.distributor-access-button {
    display: inline-flex;
    min-height: 42px;
    padding: 0 19px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #1184ff;
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(17, 132, 255, .18);
    transition:
        background-color .16s ease,
        transform .16s ease;
}

.distributor-access-button:hover {
    background: #0874df;
    transform: translateY(-1px);
}

.distributor-grid {
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.distributor-card {
    min-height: 190px;
    padding: 18px;
    border-radius: 15px;
}

.distributor-location {
    margin-bottom: 12px;
    font-size: 10px;
    line-height: 1.35;
    letter-spacing: .08em;
}

.distributor-card h3 {
    margin-bottom: 7px;
    font-size: 20px;
    line-height: 1.12;
}

.distributor-description {
    margin-bottom: 10px;
    font-size: 13px;
    line-height: 1.4;
}

.distributor-data {
    gap: 4px;
    padding-top: 8px;
}

.distributor-data span,
.distributor-data a {
    font-size: 12px;
    line-height: 1.35;
}

.distributor-actions {
    gap: 6px;
    margin-top: 12px;
    padding-top: 11px;
}

.distributor-actions a {
    min-height: 31px;
    padding: 0 10px;
    font-size: 11px;
}

@media (max-width: 1180px) {
    .distributor-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .distributor-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .distributor-grid {
        grid-template-columns: 1fr;
    }

    .distributor-card {
        min-height: 0;
        padding: 17px;
    }
}

/* ==================================================
   DONDE COMPRAR - SEPARACION TRICOLOR VTRIC V1
   ================================================== */

.locator-section {
    position: relative;
}

.locator-section::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 6px;
    background: linear-gradient(
        90deg,
        #1184ff 0 33.33%,
        #6cc24a 33.33% 66.66%,
        #f28c28 66.66% 100%
    );
}

.locator-section .section-shell {
    position: relative;
    z-index: 1;
}
