:root {
    --ICO-Blanco: #FFF;
    --ICO-Azul: #0B4460;
    --ICO-Celeste: #459CD6;
    --ICO-Texto-negro: #141414;
    --ICO-texto-mate: #343737;
    --ICO-Gris: #A4A4A4;
    --ICO-Gris-borde: #E2E2E2;
    --ICO-Fondo-tarjeta: #F6F9FA;
    --ICO-Rojo-ico: #F00;
    --Gray-00: #FFF;
}

body {
    font-family: 'Avenir Next LT Pro', sans-serif;
    background-color: var(--ICO-Blanco);
}

.registro-b2b-wrapper {
    max-width: 1184px;
    width: 100%;
    margin: 0 auto;
    padding: 32px 24px 40px;
    box-sizing: border-box;
}

.back-link-container {
    margin-bottom: 32px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    cursor: pointer;
}

.back-arrow-svg {
    width: 20px;
    height: 20px;
}

.back-link span {
    color: var(--ICO-Azul, #0B4460);
    font-family: "Avenir Next LT Pro", sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: 24px;
}

.register-container {
    width: 100%;
}

.register-title {
    color: var(--ICO-Azul, #0B4460);
    font-family: "Avenir Next LT Pro", sans-serif;
    font-size: 32px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    margin: 0 0 12px 0;
}

.register-subtitle {
    color: var(--ICO-Texto-negro, #141414);
    font-family: "Avenir Next LT Pro", sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    margin: 0 0 40px 0;
}

.contact-card {
    display: flex;
    width: 100%;
    max-width: 1136px;
    padding: 32px;
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
    border-radius: 10px;
    border: 1px solid var(--ICO-Gris-borde, #E2E2E2);
    background: var(--ICO-Fondo-tarjeta, #F6F9FA);
    box-sizing: border-box;
}

.contact-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.contact-card-title-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-title-icon {
    width: 24px;
    height: 24px;
}

.contact-title-text {
    color: var(--ICO-Azul, #0B4460);
    font-family: "Avenir Next LT Pro", sans-serif;
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

.card-toggle-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.contact-card-body {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.required-notice {
    color: var(--ICO-Rojo-ico, #F00);
    font-family: "Avenir Next LT Pro", sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    margin: 0;
}

.register-form {
    width: 100%;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    width: 100%;
}

.form-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
}

.col-span-2 {
    grid-column: span 2;
}

.form-group label {
    color: var(--ICO-texto-mate, #343737);
    font-family: "Avenir Next LT Pro", sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}

.required-star {
    color: var(--ICO-Rojo-ico, #F00);
    font-family: "Avenir Next LT Pro", sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}

.form-group input,
.select-container select {
    display: flex;
    padding: 15px 16px 16px 16px;
    justify-content: center;
    align-items: flex-start;
    align-self: stretch;
    border-radius: 10px;
    border: 1px solid var(--ICO-Gris, #A4A4A4);
    background: #FFF;
    color: #6B7280;
    font-family: "Avenir Next LT Pro", sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    width: 100%;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s ease, color 0.2s ease, font-weight 0.2s ease;
}

.form-group input::placeholder {
    color: #A4A4A4;
}

.form-group input:focus,
.form-group input:not(:placeholder-shown) {
    border: 1px solid var(--ICO-Azul, #0B4460);
    color: var(--ICO-Azul, #0B4460);
    font-weight: 600;
}

.select-container select:focus,
.select-container select:valid {
    border: 1px solid var(--ICO-Azul, #0B4460);
    color: var(--ICO-Azul, #0B4460);
    font-weight: 600;
}

.select-container {
    position: relative;
    width: 100%;
}

.select-container select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 48px;
    cursor: pointer;
}

.registro-benefits-section {
    width: 100%;
    padding: 0;
    box-sizing: border-box;
}

.registro-benefits-card {
    width: 100%;
    max-width: 100%;
    height: 316px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-radius: 16px;
    background: #F6F9FB;
    box-shadow: 0 25px 50px -12px rgba(0, 30, 45, 0.05);
    box-sizing: border-box;
    padding: 0 90px;
}

.benefit-item {
    width: 345px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
}

.benefit-icon {
    width: 64px;
    height: 64px;
}

.benefit-title {
    margin: 12px 0 0;
    color: #1A1C1C;
    text-align: center;
    font-family: "Avenir Next LT Pro", sans-serif;
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: 28px;
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

.benefit-text {
    margin: 12px 0 0;
    color: #3E484F;
    text-align: center;
    font-family: "Avenir Next LT Pro", sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px;
}

.benefit-separator {
    width: 1px;
    height: 113px;
    background: rgba(189, 200, 208, 0.30);
}

@media (max-width: 768px) {
    .registro-benefits-section {
        padding: 0px 24px 16px;
    }

    .registro-benefits-card {
        min-width: 327px;
        height: auto;
        padding: 24px;
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
        border-radius: 8px;
        background: #F6F9FB;
        box-shadow: none;
    }

    .benefit-separator {
        display: none;
    }

    .benefit-item {
        width: 100%;
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        gap: 16px;
    }

    .benefit-icon {
        width: 40px;
        height: 40px;
    }

    .benefit-title {
        margin: 0;
        color: #171C20;
        font-size: 12px;
        line-height: 16px;
        letter-spacing: 0.6px;
        text-align: left;
    }

    .benefit-text {
        margin: 4px 0 0;
        color: #3E484F;
        font-size: 12px;
        line-height: 16px;
        text-align: left;
    }
}

.select-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.contact-card+.contact-card {
    margin-top: 40px;
}

.empresa-form-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    column-gap: 24px;
    row-gap: 20px;
    width: 100%;
}

.grid-col-6 {
    grid-column: span 6;
}

.grid-col-3 {
    grid-column: span 3;
}

.grid-col-2 {
    grid-column: span 2;
}

@media (max-width: 1024px) {
    .contact-card {
        padding: 24px;
        gap: 0;
    }

    .contact-card-header {
        cursor: pointer;
    }

    .card-toggle-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        transition: transform 0.3s ease;
    }

    .contact-card-body {
        max-height: 1200px;
        overflow: hidden;
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, margin-top 0.3s ease;
        opacity: 1;
        margin-top: 24px;
        gap: 24px;
    }

    .contact-card.is-collapsed .contact-card-body {
        max-height: 0;
        opacity: 0;
        margin-top: 0;
        pointer-events: none;
    }

    .contact-card.is-collapsed .card-toggle-btn {
        transform: rotate(-180deg);
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .col-span-2 {
        grid-column: span 1;
    }

    .empresa-form-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .grid-col-6,
    .grid-col-3,
    .grid-col-2 {
        grid-column: span 1;
    }

    .checkbox-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .otra-razon-group {
        margin-top: 0px !important;
    }

}

@media (max-width: 768px) {
    .registro-b2b-wrapper {
        padding: 24px 24px 32px;
    }

    .submit-btn {
        width: 100%;
        height: 60px;
    }
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    width: 100%;
}

.custom-option-checkbox {
    display: flex;
    height: 56px;
    padding: 16px;
    align-items: center;
    gap: 12px;
    border-radius: 10px;
    border: 1px solid var(--ICO-Gris, #A4A4A4);
    background: #FFF;
    color: var(--ICO-Gris, #A4A4A4);
    font-family: "Avenir Next LT Pro", sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
    cursor: pointer;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.custom-option-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.checkbox-box {
    width: 16px;
    height: 16px;
    border-radius: 2px;
    border: 1px solid #6E7880;
    background: #FFF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-sizing: border-box;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.custom-option-checkbox:has(input:checked) {
    border-color: var(--ICO-Azul, #0B4460);
    color: var(--ICO-Azul, #0B4460);
    font-weight: 600;
}

.custom-option-checkbox input:checked+.checkbox-box {
    border-color: var(--ICO-Azul, #0B4460);
    background: var(--ICO-Azul, #0B4460);
}

.custom-option-checkbox input:checked+.checkbox-box::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 8px;
    border: solid #FFF;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    top: 1px;
    left: 4px;
}

/* Otra Razón textarea styles */
.otra-razon-group {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.otra-razon-group label {
    color: var(--ICO-texto-mate, #343737);
    font-family: "Avenir Next LT Pro", sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}

.otra-razon-textarea {
    display: flex;
    height: 70px;
    padding: 16px 16px 64px 16px;
    box-sizing: border-box;
    border-radius: 10px;
    border: 1px solid var(--ICO-Gris, #A4A4A4);
    background: #FFF;
    color: #6B7280;
    font-family: "Avenir Next LT Pro", sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    width: 100%;
    outline: none;
    resize: none;
    transition: border-color 0.2s ease, color 0.2s ease, font-weight 0.2s ease;
}

.otra-razon-textarea::placeholder {
    color: #A4A4A4;
}

.otra-razon-textarea:focus {
    border: 1px solid var(--ICO-Azul, #0B4460);
    color: var(--ICO-Azul, #0B4460);
    font-weight: 600;
}

/* Submit Button & Notice styles */
.submit-btn-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 40px;
}

.submit-btn {
    display: flex;
    width: 471px;
    height: 70px;
    padding: 0 24px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border-radius: 40px;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

/* Active State */
.submit-btn.active {
    background: var(--ICO-Azul, #0B4460);
    color: var(--Gray-00, #FFF);
    font-family: "Avenir Next LT Pro", sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    letter-spacing: 0.192px;
}

/* Inactive State */
.submit-btn.inactive,
.submit-btn:disabled {
    background: #EAEAEA;
    color: #A4A4A4;
    font-family: "Avenir Next LT Pro", sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
    line-height: 48px;
    letter-spacing: 0.168px;
    cursor: not-allowed;
}

.submit-notice {
    color: #FF0004;
    font-family: "Avenir Next LT Pro", sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 16px;
    text-align: center;
    margin-top: 20px;
    width: 100%;
}

/* ICO B2B fixes */
.ico-b2b-auth-page a.btn-entry,
.ico-b2b-auth-page a.btn-entry:visited,
.ico-b2b-auth-page .btn-entry,
.ico-b2b-auth-page .btn-entry:visited,
.ico-b2b-auth-page .login-submit-btn.active,
.ico-b2b-auth-page .login-submit-btn.active:visited,
.ico-b2b-auth-page .recover-submit-btn.active,
.ico-b2b-auth-page .reset-submit-btn.active,
.ico-b2b-auth-page .submit-btn.active,
.ico-b2b-auth-page .submit-btn.active:visited {
    color: #FFF !important;
}
.ico-b2b-auth-page a.btn-entry span,
.ico-b2b-auth-page a.btn-entry:visited span {
    color: #FFF !important;
}
.ico-b2b-auth-page .ico-b2b-form-alert-success {
    border: 1px solid #b7e4c7;
    background: #f0fff4;
    color: #166534;
}

.ico-b2b-auth-page .empresa-form-grid {
    row-gap: 28px;
}
.ico-b2b-auth-page #empresa-data-card .form-group {
    gap: 10px;
}
.ico-b2b-auth-page #empresa-data-card .form-group label {
    margin-bottom: 0;
    display: block;
}


/* Google Maps autocomplete en registro B2B */
.ico-b2b-auth-page .ico-b2b-address-group {
    position: relative;
}

.ico-b2b-auth-page .ico-b2b-address-help {
    margin: 8px 0 0;
    color: #7d8790;
    font-size: 13px;
    line-height: 1.35;
}

.ico-b2b-auth-page .ico-b2b-address-status {
    min-height: 20px;
    margin-top: 8px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
}

.ico-b2b-auth-page .ico-b2b-address-status.is-ok {
    color: #2f9e44;
}

.ico-b2b-auth-page .ico-b2b-address-status.is-error {
    color: #e23d28;
}

.ico-b2b-auth-page .ico-b2b-address-map {
    width: 100%;
    height: 280px;
    margin-top: 14px;
    border: 1px solid #d1d8df;
    border-radius: 14px;
    overflow: hidden;
    background: #eef3f6;
}

.pac-container {
    z-index: 999999 !important;
    border-radius: 0 0 14px 14px;
    border: 1px solid #d1d8df;
    box-shadow: 0 14px 35px rgba(11, 68, 96, 0.16);
    font-family: inherit;
}

.pac-item {
    padding: 10px 14px;
    font-size: 14px;
    cursor: pointer;
}

.pac-item-query {
    color: #0b4460;
    font-weight: 700;
}

@media (max-width: 768px) {
    .ico-b2b-auth-page .ico-b2b-address-map {
        height: 230px;
    }
}


/* Fix Google Maps loader / autocomplete B2B */
.ico-b2b-auth-page .ico-b2b-address-map.is-loading,
.ico-b2b-auth-page .ico-b2b-address-map.is-error {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
}

.ico-b2b-auth-page .ico-b2b-address-map.is-loading {
    background: #eef6fb;
}

.ico-b2b-auth-page .ico-b2b-address-map.is-error {
    background: #fff2f2;
    border-color: #ffb8b8;
}

.ico-b2b-auth-page .ico-b2b-address-map-message {
    color: #0b4c66;
    font-weight: 700;
    line-height: 1.35;
    max-width: 520px;
}

.ico-b2b-auth-page .ico-b2b-address-map.is-error .ico-b2b-address-map-message {
    color: #d12d2d;
}

.pac-container {
    z-index: 999999 !important;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .16);
    font-family: inherit;
}


/* RT Fix 2026-06-16: B2B registro mobile - mostrar "Volver a método de entrada" debajo del header fijo */
@media (max-width: 768px) {
    .registro-b2b-wrapper {
        padding-top: 100px !important;
    }

    .registro-b2b-wrapper .back-link-container {
        display: block !important;
        margin-bottom: 32px !important;
    }

    .registro-b2b-wrapper .back-link {
        display: inline-flex !important;
        align-items: center !important;
        gap: 8px !important;
        color: #0B4460 !important;
        text-decoration: none !important;
    }

    .registro-b2b-wrapper .back-link span {
        display: inline-block !important;
        color: #0B4460 !important;
        font-size: 16px !important;
        font-weight: 600 !important;
        line-height: 24px !important;
    }
}


/* RT Fix 2026-06-16: usar offset dinámico del header; sin espacio artificial */
@media (max-width: 768px) {
    .registro-b2b-wrapper {
        padding-top: 24px !important;
    }
}

