.ally-hero-section {
    padding: 40px 0;
    background: radial-gradient(at 0% 0%, rgba(26, 82, 118, 0.05) 0%, transparent 50%),
                radial-gradient(at 100% 100%, rgba(243, 156, 18, 0.05) 0%, transparent 50%);
    border-radius: 30px;
}

.ally-card-modern {
    background: #fff;
    border-radius: 24px;
    border: 1px solid rgba(0,0,0,0.03);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.ally-card-modern:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(26, 82, 118, 0.08);
}

.ally-logo-wrapper {
    background: #fcfdfe;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    position: relative;
}

.ally-logo-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0; left: 10%; right: 10%;
    height: 1px;
    background: linear-gradient(to right, transparent, #eee, transparent);
}

.btn-ally-profile {
    background: linear-gradient(135deg, #1a5276 0%, #2471a3 100%);
    color: white !important;
    border-radius: 50px;
    padding: 12px 25px;
    font-weight: 700;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(26, 82, 118, 0.2);
}

.btn-ally-profile:hover {
    transform: scale(1.05) translateY(-2px);
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    box-shadow: 0 10px 20px rgba(243, 156, 18, 0.3);
    color: white !important;
}

.btn-ally-profile i {
    font-size: 0.9rem;
    transition: transform 0.3s;
}

.btn-ally-profile:hover i {
    transform: rotate(15deg) scale(1.2);
}

.incentive-banner {
    background: radial-gradient(circle at top left, #1a5276 0%, #2471a3 100%);
    border-radius: 30px;
    color: white !important; /* Forzar blanco */
    padding: 50px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(26, 82, 118, 0.2);
}

.incentive-banner h2 {
    color: white !important;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.incentive-banner p {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
}

.incentive-banner::before {
    content: '🐾';
    position: absolute;
    font-size: 15rem;
    opacity: 0.05;
    bottom: -50px;
    right: -30px;
    transform: rotate(-15deg);
    pointer-events: none;
}

.btn-contrast-ally {
    position: relative;
    z-index: 10;
    background: #f39c12;
    color: white !important;
    border: none;
    border-radius: 50px;
    padding: 15px 40px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 10px 20px rgba(243, 156, 18, 0.3);
    transition: all 0.3s;
}

.btn-contrast-ally:hover {
    background: #e67e22;
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(243, 156, 18, 0.4);
}

.form-glass-card {
    background: #ffffff;
    border-radius: 30px;
    box-shadow: 0 40px 80px rgba(0,0,0,0.1);
}

.form-side-info {
    background: #1a5276;
    color: #fff;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bg-soft-primary { background-color: rgba(26, 82, 118, 0.08); }

/* =======================================================
   UTILIDADES Y COMPONENTES DE ALIADOS
   ======================================================= */
.ally-hero-badge { letter-spacing: 2px; }
.ally-hero-title { color: #1a5276; letter-spacing: -1.5px; }
.ally-hero-lead { max-width: 700px; }
.ally-hero-divider { width: 60px; height: 4px; margin-top: 20px; }

.ally-logo-img { max-width: 160px; max-height: 100%; object-fit: contain; }
.ally-logo-placeholder { max-width: 80%; opacity: 0.2; filter: grayscale(1); }

/* Hack Checkbox Oculto */
.checkbox-hack { position: absolute; opacity: 0; width: 0; height: 0; border: 0; padding: 0; pointer-events: none; }

.incentive-lead { max-width: 650px; }
.cursor-pointer { cursor: pointer; }

/* Form Side Highlights */
.form-side-highlight { background: rgba(255, 255, 255, 0.1); }
.text-tracking-1 { letter-spacing: 1px; }

/* Estilos funcionales para mostrar/ocultar el formulario de afiliados */
#toggleAfiliacion:checked ~ #formAfiliacion {
    display: block !important;
    animation: allyFadeIn 0.4s ease-out;
}
#formAfiliacion {
    display: none;
}

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

/* Utilidades Finales - Perfil Aliado Registro */
.perfil-aliado-banner {
    background: linear-gradient(135deg, #1a5276, #4682A9);
    box-shadow: 0 4px 15px rgba(70,130,169,0.35);
}

.aliado-icon-circle {
    width: 54px;
    height: 54px;
    font-size: 1.7rem;
    flex-shrink: 0;
}

.aliado-banner-title {
    font-size: 1.9rem;
    letter-spacing: -0.5px;
}

.aliado-banner-lead {
    font-size: 0.93rem;
    opacity: 0.8;
}

.aliado-logo-sq {
    width: 100px;
    height: 100px;
    object-fit: cover;
}

.d-none-aliado { display: none; }
