/*====================================================
            FORMULARIO MARKET IA
=====================================================*/
.register-section {
    background: #fbf5fb;
    position: relative;
    overflow: hidden;
}

.register-section .container {
    width: 90%;
    max-width: 1400px;
    margin: auto;
}

/*=========================================
            CABECERA CON LOGO
=========================================*/
.register-header {
    text-align: center;
    margin-bottom: 50px;
}

.register-logo {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.register-logo:hover {
    transform: scale(1.02);
}

.register-logo img {
    height: 120px;
    width: auto;
}

.register-logo .logo-text {
    font-size: 32px;
    font-weight: 800;
    color: #1D4D7C;
}

.register-logo .logo-text span {
    color: #FF6B00;
}

.register-header h2 {
    font-size: 42px;
    color: #1D4D7C;
    font-weight: 700;
    margin-bottom: 20px;
}

.register-header p {
    max-width: 750px;
    margin: auto;
    color: #666;
    line-height: 30px;
    font-size: 18px;
}

/*=========================================
        CONTENEDOR PRINCIPAL - GRID
=========================================*/
.register-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

/*=========================================
            FORMULARIO
=========================================*/
#businessForm {
    background: #fff;
    padding: 45px;
    border-radius: 25px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

#businessForm::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, #FF6B00, #ff8c42, #1D4D7C);
}

/*=========================================
            BLOQUES
=========================================*/
.form-block {
    margin-bottom: 40px;
    padding: 30px;
    border-radius: 20px;
    transition: 0.35s;
    border: 1px solid transparent;
}

.form-block:hover {
    background: #fafcff;
    border-color: #EAEAEA;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
}

.form-block h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #1D4D7C;
    font-size: 22px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #ececec;
}

.form-block h3 i {
    color: #FF6B00;
    font-size: 28px;
}

/*=========================================
                GRID
=========================================*/
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/*=========================================
            FORM GROUP
=========================================*/
.form-group {
    margin-bottom: 20px;
    width: 100%;
    min-width: 0;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.4;
    word-break: break-word;
}

/*=========================================
            INPUTS
=========================================*/
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 14px 18px;
    border: 2px solid #E5E5E5;
    border-radius: 14px;
    font-size: 15px;
    background: #FAFAFA;
    transition: 0.35s;
    outline: none;
    resize: none;
    display: block;
}

.form-group input:hover,
.form-group textarea:hover,
.form-group select:hover {
    border-color: #FFB347;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: #FF6B00;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(255, 107, 0, 0.12), 0 10px 25px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

/*=========================================
            ERRORES
=========================================*/
.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.05);
}

.error-text {
    color: #ef4444 !important;
    font-size: 13px !important;
    margin-top: 4px !important;
    display: block;
}

.radio-group.error-group {
    border: 2px solid #ef4444;
    border-radius: 14px;
    padding: 12px;
}

.check-group.error-group {
    border: 2px solid #ef4444;
    border-radius: 14px;
    padding: 12px;
}

/*=========================================
            PLACEHOLDER
=========================================*/
::placeholder {
    color: #999;
}

/*=========================================
            SELECT
=========================================*/
select {
    cursor: pointer;
}

/*=========================================
            TEXTAREA
=========================================*/
textarea {
    min-height: 120px;
    line-height: 28px;
}

/*=========================================
            CONTADOR
=========================================*/
.form-group small {
    display: block;
    margin-top: 8px;
    text-align: right;
    color: #888;
}

#contador {
    color: #FF6B00;
    font-weight: bold;
}

/*=========================================
            RADIO GROUP
=========================================*/
.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    width: 100%;
}

.radio-group input[type="radio"] {
    display: none;
}

.radio-group label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 500;
    padding: 10px 20px;
    border: 2px solid #E5E5E5;
    border-radius: 50px;
    cursor: pointer;
    transition: 0.35s ease;
    user-select: none;
    background: white;
    box-sizing: border-box;
    white-space: nowrap;
    min-height: 44px;
    font-size: 14px;
}

.radio-group label:hover {
    border-color: #FF6B00;
    color: #FF6B00;
}

.radio-group label:has(input:checked) {
    background: #FF6B00;
    color: white;
    border-color: #FF6B00;
}

/* =========================================
   RESPONSIVE - RADIO GROUP EN MÓVIL
   ========================================= */
@media (max-width: 768px) {
    .radio-group {
        gap: 8px;
    }

    .radio-group label {
        padding: 8px 16px;
        font-size: 13px;
        min-height: 38px;
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    .radio-group {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }

    .radio-group label {
        padding: 10px 14px;
        font-size: 13px;
        border-radius: 12px;
        white-space: normal;
        justify-content: flex-start;
        min-height: 40px;
        width: 100%;
        border-width: 2px;
    }
}

/*=========================================
            CHECK GROUP
=========================================*/
.check-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    width: 100%;
}

.check-group input[type="checkbox"] {
    accent-color: #FF6B00;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin: 0;
    cursor: pointer;
}

.check-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    padding: 10px 14px;
    border-radius: 12px;
    transition: 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    width: 100%;
    min-height: 44px;
    background: #fafafa;
    border: 1px solid #f0f0f0;
    word-break: break-word;
    line-height: 1.3;
}

.check-group label:hover {
    background: #FFF4EC;
    border-color: #FFB347;
}

.check-group label:has(input:checked) {
    background: #FFF4EC;
    border-color: #FF6B00;
}

/* =========================================
   RESPONSIVE - CHECK GROUP EN MÓVIL
   ========================================= */
@media (max-width: 768px) {
    .check-group {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .check-group label {
        padding: 10px 12px;
        font-size: 14px;
        min-height: 40px;
        gap: 8px;
    }

    .check-group input[type="checkbox"] {
        width: 16px;
        height: 16px;
        flex-shrink: 0;
    }
}

@media (max-width: 480px) {
    .check-group {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .check-group label {
        padding: 10px 14px;
        font-size: 14px;
        min-height: 40px;
        border-radius: 10px;
    }

    .check-group input[type="checkbox"] {
        width: 18px;
        height: 18px;
    }
}

/*=========================================
            HIDDEN
=========================================*/
.hidden {
    display: none !important;
}

/*=========================================
            BOTON
=========================================*/
.form-button {
    text-align: center;
    margin-top: 40px;
}

.form-button button {
    background: #FF6B00;
    color: white;
    border: none;
    padding: 16px 40px;
    border-radius: 50px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.35s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.form-button button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: rgba(255, 255, 255, 0.35);
    transform: skewX(-25deg);
}

.form-button button:hover::before {
    animation: shine 0.8s;
}

@keyframes shine {
    to {
        left: 150%;
    }
}

.form-button button:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(255, 107, 0, 0.30);
}

.form-button button:disabled {
    opacity: 0.85;
    cursor: wait;
    transform: none;
}

/*=========================================
            PANEL DERECHO - BENEFICIOS
=========================================*/
.benefits {
    background: linear-gradient(180deg, #1D4D7C, #163B60);
    color: white;
    padding: 40px;
    border-radius: 25px;
    position: sticky;
    top: 120px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    transition: 0.4s;
}

.benefits:hover {
    transform: translateY(-8px);
}

.benefits h3 {
    font-size: 28px;
    margin-bottom: 25px;
}

.benefits ul {
    list-style: none;
    padding: 0;
}

.benefits ul li {
    position: relative;
    padding-left: 10px;
    margin-bottom: 18px;
    line-height: 26px;
}

.benefits-card {
    margin-top: 40px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    padding: 25px;
    border-radius: 18px;
    transition: 0.35s;
}

.benefits-card:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-5px);
}

.benefits-card i {
    font-size: 42px;
    color: #FFB347;
    margin-bottom: 20px;
}

.benefits-card h4 {
    margin-bottom: 15px;
    font-size: 22px;
}

.benefits-card p {
    color: #E7E7E7;
    line-height: 28px;
}

/*=========================================
        ANIMACIÓN DE ENTRADA
=========================================*/
.register-section {
    opacity: 0;
    transform: translateY(50px);
    animation: formFade 1s ease forwards;
}

@keyframes formFade {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/*=========================================
        RESPONSIVE TABLET
=========================================*/
@media (max-width: 992px) {
    .register-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .benefits {
        position: relative;
        top: 0;
        margin-top: 0;
    }

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

    .check-group {
        grid-template-columns: 1fr;
    }

    .radio-group {
        flex-direction: column;
        align-items: flex-start;
    }
}

/*=========================================
        RESPONSIVE MÓVIL
=========================================*/
@media (max-width: 768px) {
    .register-section {
        padding: 60px 0 40px;
    }

    .register-header h2 {
        font-size: 32px;
        line-height: 1.2;
    }

    .register-header p {
        font-size: 16px;
        line-height: 28px;
    }

    .register-logo img {
        height: 48px;
    }

    #businessForm {
        padding: 24px 18px;
    }

    .form-block {
        padding: 18px 14px;
        margin-bottom: 24px;
    }

    .form-block h3 {
        font-size: 20px;
        gap: 10px;
    }

    .form-button button {
        width: 100%;
        justify-content: center;
        padding: 16px;
    }

    .benefits {
        padding: 24px 20px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px 15px;
        font-size: 14px;
        width: 100%;
    }

    .radio-group label {
        width: 100%;
        justify-content: flex-start;
        padding: 10px 16px;
    }

    .check-group label {
        padding: 10px 14px;
    }
}

@media (max-width: 480px) {
    .register-header h2 {
        font-size: 26px;
    }

    .register-header p {
        font-size: 15px;
        line-height: 25px;
    }

    .register-logo img {
        height: 40px;
    }

    #businessForm {
        padding: 16px 12px;
    }

    .form-block {
        padding: 14px 10px;
    }

    .form-button button {
        font-size: 15px;
        padding: 14px 20px;
    }
}