/* ==========================================================================
   MEMBRESÍAS - ESTILOS UNIFICADOS
   ========================================================================== */

/* Variables premium - IDENTICAS a Educación Continua */
:root {
    /* Colores premium */
    --educacion-primary: #0056b3;
    --educacion-primary-dark: #003d82;
    --educacion-secondary: #4d94ff;
    --educacion-accent: #28a745;
    --educacion-accent-light: #20c997;
    --educacion-light: #f8f9fa;
    --educacion-dark: #1a1a1a;
    --educacion-gray: #6c757d;
    --educacion-premium: #e67e22;
    --educacion-premium-dark: #d35400;
    
    /* Gradientes premium */
    --educacion-gradient: linear-gradient(135deg, #0056b3 0%, #003d82 100%);
    --educacion-gradient-light: linear-gradient(135deg, #4d94ff 0%, #1a75ff 100%);
    --educacion-gradient-premium: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
    --educacion-gradient-accent: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    
    /* Sombras premium */
    --educacion-shadow: 0 15px 35px rgba(0, 86, 179, 0.15);
    --educacion-shadow-hover: 0 25px 50px rgba(0, 86, 179, 0.25);
    --educacion-shadow-card: 0 10px 30px rgba(0, 0, 0, 0.08);
    
    /* Tipografía premium */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Reset y estilos base - IDENTICO */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--educacion-dark);
    background: #fff;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   CONTENEDORES POR SECCIÓN - IDENTICO
   ========================================================================== */
.section-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hero tiene su propio contenedor especial */
.hero-container {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
}

/* ==========================================================================
   HERO MEMBRESÍAS - Mismo diseño que Educación Continua
   ========================================================================== */
.membresias-hero {
    position: relative;
    height: 85vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-top: -80px;
    padding-top: 80px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.7);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.5) 50%,
        rgba(0, 0, 0, 0.7) 100%
    );
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    color: white;
    position: relative;
    z-index: 3;
    padding: 4rem 0;
    width: 100%;
    margin-left: 7.5%;
    margin-top: 7.5%;
}

.hero-content h1 {
    font-size: 6.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: -1px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-subtitle {
    font-size: 2.8rem;
    font-weight: 600;
    margin-bottom: 3rem;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-stats {
    display: flex;
    gap: 4rem;
    margin: 5rem 0;
    animation: fadeInUp 1s ease 0.8s both;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2rem;
    border-radius: 15px;
    transition: all 0.3s ease;
    min-width: 250px;
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.stat-icon {
    font-size: 3.5rem;
    color: var(--educacion-secondary);
    opacity: 0.9;
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #fff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.9;
}

/* ==========================================================================
   SECCIONES COMUNES - IDENTICO
   ========================================================================== */
.membresias-detalladas,
.faq-membresias,
.footer {
    padding: 10rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 6rem;
}

.section-title {
    font-size: 4.5rem;
    font-weight: 900;
    color: var(--educacion-dark);
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: -1px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 6px;
    background: var(--educacion-gradient);
    border-radius: 3px;
}

.section-subtitle {
    font-size: 2.2rem;
    color: var(--educacion-primary);
    font-weight: 600;
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.5;
}

.section-decoration {
    width: 80px;
    height: 3px;
    background: rgba(0, 86, 179, 0.2);
    margin: 0 auto;
    border-radius: 2px;
}

/* ==========================================================================
   TARJETAS DE MEMBRESÍA (similar a categorias-grid)
   ========================================================================== */
.membresias-detalladas {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

.membresias-detalladas::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--educacion-gradient);
}

.membresias-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin-bottom: 6rem;
}

.membresia-card {
    background: white;
    border-radius: 20px;
    padding: 4rem 3rem;
    text-align: center;
    border: 2px solid rgba(0, 86, 179, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
}

.membresia-card.animate-in {
    animation: slideUp 0.6s ease forwards;
}

.membresia-card:hover {
    border-color: var(--educacion-primary);
    transform: translateY(-10px);
    box-shadow: var(--educacion-shadow-hover);
}

.membresia-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--educacion-gradient);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.3s ease;
}

.membresia-card:hover::before {
    transform: scaleY(1);
}

.membresia-card.premium {
    border-color: var(--educacion-premium);
}

.membresia-card.premium:hover {
    border-color: var(--educacion-premium-dark);
}

.membresia-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--educacion-gradient-premium);
    color: white;
    padding: 0.8rem 2.5rem;
    border-radius: 25px;
    font-size: 1.2rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.4);
}

.membresia-header {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid rgba(0, 86, 179, 0.1);
}

.membresia-title {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--educacion-dark);
    line-height: 1.2;
}

.membresia-price {
    margin-bottom: 1.5rem;
}

.price {
    font-size: 4.5rem;
    font-weight: 900;
    color: var(--educacion-primary);
    line-height: 1;
}

.membresia-card.premium .price {
    color: var(--educacion-premium);
}

.period {
    font-size: 1.8rem;
    color: var(--educacion-gray);
    font-weight: 600;
}

.membresia-description {
    font-size: 1.6rem;
    color: var(--educacion-gray);
    line-height: 1.5;
}

.membresia-features {
    margin-bottom: 3rem;
    text-align: left;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: var(--educacion-dark);
}

.feature i {
    color: var(--educacion-accent);
    font-size: 1.8rem;
    margin-top: 0.3rem;
    flex-shrink: 0;
}

.membresia-savings {
    margin-bottom: 3rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(0, 86, 179, 0.1) 0%, rgba(77, 148, 255, 0.05) 100%);
    border-radius: 12px;
    border: 1px solid rgba(0, 86, 179, 0.2);
}

.savings-badge {
    display: block;
    background: var(--educacion-gradient);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 20px;
    font-size: 1.3rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.membresia-card.premium .savings-badge {
    background: var(--educacion-gradient-premium);
}

.savings-text {
    font-size: 1.4rem;
    color: var(--educacion-accent);
    font-weight: 600;
}

.membresia-btn {
    width: 100%;
    padding: 1.8rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1.6rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--educacion-gradient);
    color: white;
    box-shadow: 0 8px 25px rgba(0, 86, 179, 0.3);
}

.membresia-btn.primary {
    background: var(--educacion-gradient-premium);
    box-shadow: 0 8px 25px rgba(230, 126, 34, 0.3);
}

.membresia-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 86, 179, 0.4);
}

.membresia-btn.primary:hover {
    box-shadow: 0 12px 30px rgba(230, 126, 34, 0.4);
}

/* ==========================================================================
   TABLA DE COMPARACIÓN (estilo similar)
   ========================================================================== */
.comparacion-membresias {
    background: white;
    padding: 6rem 4rem;
    border-radius: 20px;
    margin-bottom: 6rem;
    box-shadow: var(--educacion-shadow);
    border: 2px solid rgba(0, 86, 179, 0.1);
}

.comparacion-membresias .section-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.comparacion-membresias .section-subtitle {
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

.comparacion-tabla {
    border-radius: 15px;
    overflow: hidden;
    border: 2px solid rgba(0, 86, 179, 0.1);
    margin-top: 4rem;
}

.comparacion-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    background: var(--educacion-gradient);
    color: rgb(236, 236, 236);
    font-weight: 700;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.comparacion-fila {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    border-bottom: 1px solid rgba(0, 86, 179, 0.1);
    transition: background-color 0.3s ease;
}

.comparacion-fila:hover {
    background-color: rgba(0, 86, 179, 0.02);
}

.comparacion-fila:last-child {
    border-bottom: none;
}

.comparacion-caracteristica,
.comparacion-plan {
    padding: 2.5rem 2rem;
    display: flex;
    align-items: center;
    font-size: 1.5rem;
}

.comparacion-caracteristica {
    font-weight: 600;
    color: var(--educacion-dark);
    border-right: 1px solid rgba(203, 209, 216, 0.1);
}
.comparacion-caracteristica-1 {
    font-weight: 600;
    color: var(--educacion-light);
    border-right: 1px solid rgba(203, 209, 216, 0.1);
}

.comparacion-plan {
    justify-content: center;
    color: var(--educacion-light);
}

.comparacion-plan i {
    font-size: 1.8rem;
}

.comparacion-plan .fa-check {
    color: var(--educacion-accent);
}

.comparacion-plan .fa-times {
    color: #ff6b6b;
}

/* ==========================================================================
   FAQ MEMBRESÍAS (igual que preguntas-frecuentes)
   ========================================================================== */
.faq-membresias {
    background: white;
    position: relative;
}

.faq-membresias::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--educacion-gradient);
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    margin-bottom: 2rem;
    border-radius: 15px;
    overflow: hidden;
    border: 2px solid rgba(0, 86, 179, 0.1);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.faq-item.animate-in {
    animation: slideUp 0.6s ease forwards;
}

.faq-item:hover {
    border-color: var(--educacion-primary);
    box-shadow: var(--educacion-shadow);
}

.faq-pregunta {
    padding: 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-pregunta:hover {
    background: rgba(0, 86, 179, 0.02);
}

.faq-pregunta h4 {
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--educacion-dark);
    margin: 0;
    flex: 1;
}

.faq-pregunta i {
    color: var(--educacion-primary);
    font-size: 1.8rem;
    transition: transform 0.3s ease;
}

.faq-respuesta {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-respuesta {
    max-height: 500px;
}

.faq-respuesta p {
    padding: 0 3rem 3rem;
    font-size: 1.5rem;
    line-height: 1.6;
    color: var(--educacion-gray);
    margin: 0;
}

/* ==========================================================================
   FOOTER - IDENTICO a Educación Continua
   ========================================================================== */
.footer {
    background: var(--educacion-dark);
    color: white;
}

.footer .section-container {
    max-width: 1400px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 2.4rem;
    font-weight: 900;
    color: white;
}

.footer-section p {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--educacion-primary);
    transform: translateY(-3px);
}

.footer-section h4 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: white;
}

.footer-section ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 1.4rem;
    transition: all 0.3s ease;
}

.footer-section ul li a:hover,
.footer-section ul li a.active {
    color: white;
    padding-left: 0.5rem;
}

.footer-bottom {
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ==========================================================================
   ANIMACIONES - IDENTICO
   ========================================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   RESPONSIVE DESIGN - Adaptado
   ========================================================================== */
@media (max-width: 1200px) {
    .hero-content h1 {
        font-size: 5.5rem;
    }
    
    .membresias-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 4.5rem;
    }
    
    .hero-subtitle {
        font-size: 2.2rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 2rem;
    }
    
    .stat-item {
        min-width: 100%;
    }
    
    .comparacion-membresias {
        padding: 4rem 2rem;
    }
    
    .membresias-detalladas,
    .faq-membresias {
        padding: 8rem 0;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 3.5rem;
    }
    
    .section-subtitle {
        font-size: 1.8rem;
    }
    
    .membresias-grid {
        grid-template-columns: 1fr;
    }
    
    .comparacion-header,
    .comparacion-fila {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .comparacion-caracteristica {
        border-right: none;
        border-bottom: 1px solid rgba(0, 86, 179, 0.1);
        justify-content: center;
        font-weight: 700;
        background: rgba(0, 86, 179, 0.02);
        padding: 2rem;
    }
    
    .comparacion-plan {
        padding: 1.5rem;
    }
    
    .faq-pregunta h4 {
        font-size: 1.7rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .membresias-detalladas,
    .faq-membresias {
        padding: 6rem 0;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.6rem;
    }
    
    .stat-number {
        font-size: 3.5rem;
    }
    
    .section-title {
        font-size: 2.8rem;
    }
    
    .membresia-card {
        padding: 3rem 2rem;
    }
    
    .price {
        font-size: 3.5rem;
    }
    
    .membresia-title {
        font-size: 2rem;
    }
    
    .feature {
        font-size: 1.4rem;
    }
    
    .faq-pregunta {
        padding: 2rem;
    }
    
    .faq-pregunta h4 {
        font-size: 1.6rem;
    }
    
    .faq-respuesta p {
        padding: 0 2rem 2rem;
    }
    
    .membresia-btn {
        padding: 1.5rem 1.5rem;
        font-size: 1.4rem;
    }
}

/* ==========================================================================
   EFECTOS ESPECIALES DE ANIMACIÓN - Igual que Educación Continua
   ========================================================================== */
.membresia-card:nth-child(1) { animation-delay: 0.1s; }
.membresia-card:nth-child(2) { animation-delay: 0.2s; }
.membresia-card:nth-child(3) { animation-delay: 0.3s; }

.faq-item:nth-child(1) { animation-delay: 0.1s; }
.faq-item:nth-child(2) { animation-delay: 0.2s; }
.faq-item:nth-child(3) { animation-delay: 0.3s; }
.faq-item:nth-child(4) { animation-delay: 0.4s; }