/* ===== VARIABLES (copiadas de afiliacion.css para consistencia) ===== */
:root {
    --primary: #0900b9;
    --primary-light: #3a72f6;
    --accent: #ffffff;
    --dark: #1a1a2e;
    --gray-100: #f8f9fc;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-600: #6c757d;
    --gray-800: #343a40;
    --success: #10b981;
    --warning: #f59e0b;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--gray-100);
    overflow-x: hidden;
}

/* ===== HERO BENEFICIOS ===== */
.beneficios-hero {
    position: relative;
    height: 100vh;
    min-height: 400px;
    background: linear-gradient(135deg, var(--primary) 0%, #1a1a4e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.beneficios-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/img/fondos/beneficios.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.3;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 5%;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-title span {
    color: var(--primary-light);
}

.hero-subtitle {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

.hero-btn {
    display: inline-block;
    padding: 15px 40px;
    background: white;
    color: var(--primary);
    border-radius: 60px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.hero-btn:hover {
    background: transparent;
    color: white;
    border-color: white;
    transform: translateY(-3px);
}

/* ===== INTRO ===== */
.intro-section {
    padding: 60px 5%;
    background: white;
}

.intro-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.intro-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 20px;
}

.intro-title span {
    color: var(--primary);
}

.intro-text {
    font-size: 1.1rem;
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: 30px;
}

/* ===== PESTAÑAS (TABS) ===== */
.tabs-section {
    padding: 0 5% 60px;
    background: var(--gray-100);
}

.tabs-container {
    max-width: 1200px;
    margin: 0 auto;
}

.tabs-header {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-button {
    padding: 15px 40px;
    background: white;
    border: 2px solid var(--gray-200);
    border-radius: 60px;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-button.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* ===== TARJETAS DE BENEFICIOS ===== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.benefit-card {
    background: white;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(9, 0, 185, 0.08);
    transition: all 0.4s ease;
    border: 1px solid var(--gray-200);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(9, 0, 185, 0.15);
}

/* ===== TARJETAS DESTACADAS (PREMIUM Y LIDERAZGO) ===== */
.benefit-card.destacada {
    position: relative;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, var(--primary), #7cf5ff, var(--primary-light)) border-box;
    border: 3px solid transparent;
    border-radius: 32px;
    animation: borderGlow 3s ease-in-out infinite;
    transform: scale(1.02);
    box-shadow: 0 25px 50px -8px rgba(9, 0, 185, 0.25);
    z-index: 2;
}

.benefit-card.destacada-proveedor {
    position: relative;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, #3a72f6, #7cf5ff, #0900b9) border-box;
    border: 3px solid transparent;
    border-radius: 32px;
    animation: borderGlow 3s ease-in-out infinite;
    transform: scale(1.02);
    box-shadow: 0 25px 50px -8px rgba(9, 0, 185, 0.25);
    z-index: 2;
}

.benefit-card.destacada .card-header,
.benefit-card.destacada-proveedor .card-header {
    background: linear-gradient(145deg, #f0f4ff, white);
}

.benefit-card.destacada .card-icon,
.benefit-card.destacada-proveedor .card-icon {
    background: linear-gradient(135deg, var(--primary), #4a6cf7);
    box-shadow: 0 15px 25px rgba(9, 0, 185, 0.3);
    transform: scale(1.05);
}

.benefit-card.destacada .card-title,
.benefit-card.destacada-proveedor .card-title {
    color: var(--primary);
    font-size: 2rem;
}

@keyframes borderGlow {
    0%, 100% {
        box-shadow: 0 25px 50px -8px rgba(9, 0, 185, 0.25);
        border-color: transparent;
    }
    50% {
        box-shadow: 0 30px 60px -5px rgba(58, 114, 246, 0.4);
        border-color: rgba(124, 245, 255, 0.3);
    }
}

.benefit-card.destacada::before {
    content: "★ MÁS POPULAR";
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary), #4a6cf7);
    color: white;
    padding: 6px 25px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    z-index: 10;
    box-shadow: 0 5px 15px rgba(9, 0, 185, 0.3);
    white-space: nowrap;
    animation: badgePulse 2s ease-in-out infinite;
}

.benefit-card.destacada-proveedor::before {
    content: "★ LIDERAZGO ★";
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #3a72f6, #0900b9);
    color: white;
    padding: 6px 25px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    z-index: 10;
    box-shadow: 0 5px 15px rgba(9, 0, 185, 0.3);
    white-space: nowrap;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.05); }
}

.benefit-card:not(.destacada):not(.destacada-proveedor) {
    opacity: 0.95;
    transition: all 0.3s ease;
}

.benefit-card:not(.destacada):not(.destacada-proveedor):hover {
    opacity: 1;
    transform: translateY(-8px);
}

.card-header {
    padding: 30px 30px 20px;
    text-align: center;
    background: linear-gradient(145deg, #f8faff, white);
    border-bottom: 1px solid var(--gray-200);
}

.card-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: white;
    font-size: 2rem;
    box-shadow: 0 15px 25px rgba(9, 0, 185, 0.2);
}

.card-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 5px;
}

.card-subtitle {
    font-size: 1rem;
    color: var(--gray-600);
    font-weight: 400;
}

.card-body {
    padding: 25px 30px;
    flex-grow: 1;
}


.feature-list {
    list-style: none;
    margin: 0;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    color: var(--gray-600);
    font-size: 0.95rem;
    line-height: 1.4;
}

.feature-item i {
    color: var(--success);
    font-size: 1.1rem;
    margin-top: 2px;
    min-width: 18px;
}

.feature-item.highlight i {
    color: var(--primary);
}

.card-footer {
    padding: 0 30px 30px;
    text-align: center;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .benefit-card.destacada::before,
    .benefit-card.destacada-proveedor::before {
        font-size: 0.7rem;
        padding: 4px 15px;
        white-space: normal;
        width: 90%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }
}