/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: relative;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 70px;
}

.logo h2 {
    color: #2c3e50;
    font-size: 1.8rem;
    font-weight: 700;
}

.logo-img {
    height: 70px;
    width: auto;
    max-width: 250px;
}

.hero-logo {
    max-width: 300px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
}

.hero-subtitle {
    font-size: 1.4rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 15px;
}

.hero-features {
    display: flex;
    gap: 15px;
    margin: 25px 0;
    flex-wrap: wrap;
}

.feature-badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 15px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 50px;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 1.65rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: #3498db;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #3498db;
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

/* Hamburger menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: white;
    position: relative;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    min-height: 100vh;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-text h1 {
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.1;
    white-space: nowrap;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

/* Payment Methods in Hero */
.payment-methods-hero {
    margin-top: 25px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.payment-methods-hero h4 {
    color: white;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-align: center;
}

.payment-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.payment-option-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 15px 40px 15px 15px; /* espacio para el icono de WhatsApp a la derecha */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    position: relative;
    overflow: visible;
    cursor: default;
}

/* Blog article payment buttons (always vertical stack) - FORCED */
.article-payment-options .article-payment-grid,
.article-payment-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    margin-top: 20px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.article-payment-options .article-payment-card,
.article-payment-card {
    background: rgba(52, 152, 219, 0.1);
    border: 1px solid rgba(52, 152, 219, 0.3);
    border-radius: 10px;
    padding: 15px 40px 15px 15px;
    display: flex !important;
    align-items: center;
    gap: 12px;
    position: relative;
    font-size: 1rem;
    color: #2c3e50;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin-bottom: 8px;
    flex: none !important;
}

.article-payment-card:hover {
    background: rgba(52, 152, 219, 0.15);
    border-color: rgba(52, 152, 219, 0.5);
}

.article-payment-card .bank-icon {
    color: #3498db;
    font-size: 1.4rem;
}

.article-oxxo-logo {
    width: 32px;
    height: 22px;
    object-fit: contain;
    background: white;
    border-radius: 4px;
    padding: 2px;
}

.article-whatsapp-logo {
    width: 18px;
    height: 18px;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    padding: 2px;
}

/* OXXO Button SPECIFIC TARGETING - Ultra High Priority */
a[href*="oxxo-pago"].article-payment-card,
.article-payment-card[href*="oxxo-pago"],
*[href*="oxxo-pago"] {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    flex: 0 0 100% !important;
    order: 999 !important;
    margin-top: 15px !important;
    margin-bottom: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    clear: both !important;
    overflow: visible !important;
    position: relative !important;
    z-index: 100 !important;
    box-sizing: border-box !important;
}

/* Force container to respect OXXO button */
.article-payment-options,
.article-payment-grid {
    overflow: visible !important;
    min-height: 120px !important;
    padding-bottom: 10px !important;
}


.payment-option-card i {
    font-size: 1.3rem;
    flex-shrink: 0;
}

.payment-option-card span {
    font-weight: 600;
    font-size: 0.85rem;
}

/* etiqueta auxiliar eliminada de las tarjetas */
.payment-option-card small {
    display: none;
}

.payment-info {
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    line-height: 1.5;
    max-width: 860px;
    margin: 0 auto;
}

.payment-info p {
    margin: 8px 0;
}

.payment-info strong {
    color: white;
    font-size: 1.1rem; /* pregunta más grande */
}

.payment-option-card .fab.fa-paypal {
    color: #00457c;
    background: white;
    border-radius: 6px;
    padding: 6px 8px;
    width: 32px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.payment-option-card .fab.fa-stripe {
    color: #635bff;
    background: white;
    border-radius: 6px;
    padding: 6px 10px;
    width: 36px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.payment-option-card .fas.fa-university {
    color: white;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 6px;
    padding: 6px;
    width: 28px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.oxxo-logo {
    width: 32px;
    height: 22px;
    object-fit: contain;
    background: white;
    border-radius: 6px;
    padding: 3px;
    flex-shrink: 0;
}

.whatsapp-method-logo {
    width: 20px;
    height: 20px;
    object-fit: contain;
    /* Sin filtro para mantener el color verde original de WhatsApp */
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    background: rgba(255, 255, 255, 0.9); /* fondo blanco sutil para mejor contraste */
    border-radius: 50%;
    padding: 2px;
}

.whatsapp-title-logo {
    width: 20px;
    height: 20px;
    object-fit: contain;
    margin-right: 8px;
    vertical-align: middle;
    filter: brightness(0) invert(1);
}

/* Mobile Payment Methods */
@media (max-width: 768px) {
    .payment-methods-hero {
        margin-top: 20px;
        padding: 15px;
    }
    
    .payment-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 20px;
    }
    
    .payment-option-card {
        padding: 12px 36px 12px 12px; /* mantener espacio para WhatsApp */
        gap: 8px;
    }
    
    .payment-option-card i {
        font-size: 1.1rem;
    }
    
    .payment-option-card span {
        font-size: 0.9rem;
    }
    
    .payment-methods-hero h4 {
        font-size: 1.1rem;
    }
    
    .payment-info {
        font-size: 0.78rem; /* leyenda un poco más chica */
        text-align: justify; /* leyenda justificada */
    }
    
    .payment-info strong {
        font-size: 1rem; /* pregunta sigue destacando en mobile */
        text-align: center;
        display: block;
        margin-bottom: 6px;
    }
    
    .whatsapp-method-logo {
        width: 18px;
        height: 18px;
        right: 10px;
    }
    
    /* Mobile-specific adjustments for article payment buttons */
    .article-payment-card {
        padding: 12px 35px 12px 12px;
        font-size: 0.9rem;
    }
    
    .article-payment-card .bank-icon {
        font-size: 1.2rem;
    }
    
    .article-oxxo-logo {
        width: 28px;
        height: 20px;
    }
    
    .article-whatsapp-logo {
        width: 16px;
        height: 16px;
    }
}

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: #25D366;
    color: white;
}

.btn-primary:hover {
    background: #22C55E;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #25D366;
    color: white;
    border: 2px solid #25D366;
}

.btn-secondary:hover {
    background: #22C55E;
    color: white;
    border-color: #22C55E;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: #3498db;
    border: 2px solid #3498db;
}

.btn-outline:hover {
    background: #3498db;
    color: white;
}

.btn-full {
    width: 100%;
}

.hero-image {
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Courses section */
.courses-section {
    padding: 100px 0;
    background: #f8f9fa;
}

.courses-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: #2c3e50;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    justify-content: center;
}

.course-card {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.course-card.featured {
    transform: scale(1.02);
}

.product-image {
    margin-bottom: 20px;
    text-align: center;
}

.product-image img {
    max-width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.course-price {
    margin: 20px 0;
}

.course-price .price {
    font-size: 2rem;
    font-weight: 700;
    color: #27ae60;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.payment-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 25px;
}

.payment-buttons .btn {
    padding: 12px 20px;
    font-size: 0.95rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.payment-buttons .btn-primary {
    background: #25d366;
    color: white;
}

.payment-buttons .btn-primary:hover {
    background: #1fb855;
    transform: translateY(-2px);
}

.paypal-btn {
    background: #0070ba;
    color: white;
    border: none;
    cursor: pointer;
}

.paypal-btn:hover {
    background: #005ea6;
    transform: translateY(-2px);
}

.stripe-btn {
    background: #635bff;
    color: white;
    border: none;
    cursor: pointer;
}

.stripe-btn:hover {
    background: #5248ff;
    transform: translateY(-2px);
}

.view-all-products {
    text-align: center;
    margin-top: 50px;
    padding: 30px;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 15px;
}

.view-all-products p {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 20px;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.course-icon {
    font-size: 3rem;
    color: #3498db;
    margin-bottom: 20px;
}

.course-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #2c3e50;
}

.course-card p {
    margin-bottom: 25px;
    color: #666;
    line-height: 1.6;
}

.course-features {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.feature {
    background: #e8f4f8;
    color: #3498db;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* About section */
.about-section {
    padding: 100px 0;
    background: white;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 25px;
    color: #2c3e50;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 40px;
    color: #666;
    line-height: 1.7;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.feature-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.feature-item i {
    font-size: 1.5rem;
    color: #3498db;
    margin-top: 5px;
    min-width: 30px;
}

.feature-item h4 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: #2c3e50;
}

.feature-item p {
    color: #666;
    font-size: 1rem;
    margin: 0;
}

.about-image {
    position: relative;
    text-align: center;
}

.about-image img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.community-image {
    border: 3px solid #3498db;
    transform: rotate(-2deg);
}

.community-image:hover {
    transform: rotate(0deg) scale(1.05);
    box-shadow: 0 20px 50px rgba(52, 152, 219, 0.3);
}

/* Contact section */
.contact-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.contact-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.contact-section > .container > p {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 50px;
    opacity: 0.9;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-form {
    background: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.form-group {
    margin-bottom: 25px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: center;
}

.contact-item i {
    font-size: 1.5rem;
    color: #3498db;
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 50%;
    min-width: 50px;
    text-align: center;
}

.contact-item h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.contact-item p {
    opacity: 0.9;
    margin: 0;
}

.contact-item small {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* WhatsApp Contact Styles */
.whatsapp-contact {
    background: rgba(37, 211, 102, 0.1);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    border: 2px solid rgba(37, 211, 102, 0.2);
}

.whatsapp-contact h3 {
    color: #25d366;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.whatsapp-contact .btn-large {
    padding: 15px 30px;
    font-size: 1.1rem;
}

/* Social Media Contact */
.social-media {
    margin-top: 20px;
}

.social-media h4 {
    color: white;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.social-links-contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-links-contact a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.social-links-contact a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
    color: white;
}

.whatsapp-float .tooltip {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: #2c3e50;
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.whatsapp-float:hover .tooltip {
    opacity: 1;
    visibility: visible;
}

.whatsapp-float .tooltip::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-left-color: #2c3e50;
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.8);
    }
    100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
}

/* Category Sections */
.category-section {
    margin-bottom: 80px;
}

.category-title {
    font-size: 1.8rem;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 15px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 15px;
    border-left: 5px solid #3498db;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.category-title i {
    color: #3498db;
    margin-right: 10px;
}

.category-description {
    text-align: center;
    font-size: 1rem;
    color: #666;
    margin-bottom: 40px;
    font-style: italic;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 20px;
    color: #3498db;
}

.footer-section p {
    margin-bottom: 20px;
    opacity: 0.9;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-section ul li a:hover {
    opacity: 1;
    color: #3498db;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(52, 152, 219, 0.2);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    color: #3498db;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #3498db;
    color: white;
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    opacity: 0.8;
}

/* Hide mobile menu toggle on desktop */
.menu-toggle {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    /* New Menu Toggle Button with Text */
    .menu-toggle {
        display: flex;
        align-items: center;
        gap: 8px;
        background: #25D366;
        color: white;
        border: none;
        padding: 10px 16px;
        border-radius: 8px;
        font-size: 16px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
    }
    
    .menu-toggle:hover {
        background: #22C55E;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    }
    
    .hamburger-icon {
        display: flex;
        flex-direction: column;
        cursor: pointer;
    }
    
    .hamburger-icon .bar {
        width: 20px;
        height: 2px;
        background-color: white;
        margin: 2px 0;
        transition: 0.3s;
        border-radius: 2px;
    }
    
    .menu-toggle.active .hamburger-icon .bar:nth-child(1) {
        transform: rotate(-45deg) translate(-4px, 5px);
    }
    
    .menu-toggle.active .hamburger-icon .bar:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active .hamburger-icon .bar:nth-child(3) {
        transform: rotate(45deg) translate(-4px, -5px);
    }
    
    .menu-text {
        font-size: 16px;
        font-weight: 600;
        color: white;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
        z-index: 999999 !important;
        height: calc(100vh - 70px);
        overflow-y: auto;
        border-top: 1px solid #eee;
    }
    
    .nav-menu.active {
        left: 0 !important;
        display: flex !important;
    }
    
    .nav-menu li {
        margin: 10px 0;
    }
    
    .nav-menu a {
        font-size: 1.3rem;
    }
    
    /* Hero section más compacto */
    .hero {
        min-height: 90vh;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
        padding: 20px 0;
        min-height: 90vh;
    }
    
    .hero-text h1 {
        font-size: 2.2rem;
        margin-bottom: 15px;
    }
    
    .hero-text p {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }
    
    .hero-features {
        gap: 8px;
        margin: 15px 0;
        justify-content: center;
    }
    
    .feature-badge {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    
    .hero-logo {
        max-width: 250px;
    }
    
    /* Secciones más compactas */
    .courses-section {
        padding: 60px 0;
    }
    
    .courses-section h2 {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    
    .category-section {
        margin-bottom: 50px;
    }
    
    .category-title {
        font-size: 1.4rem;
        padding: 15px;
        margin-bottom: 10px;
    }
    
    .category-description {
        font-size: 0.9rem;
        margin-bottom: 25px;
    }
    
    .courses-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .course-card {
        padding: 20px 15px;
        margin-bottom: 15px;
    }
    
    .course-card h3 {
        font-size: 1.3rem;
        margin-bottom: 10px;
    }
    
    .course-card p {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }
    
    .product-image img {
        height: 200px;
    }
    
    /* About section más compacta */
    .about-section {
        padding: 60px 0;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .about-text h2 {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }
    
    .about-text p {
        font-size: 1rem;
        margin-bottom: 25px;
    }
    
    .features-list {
        gap: 15px;
    }
    
    .feature-item h4 {
        font-size: 1.1rem;
    }
    
    .feature-item p {
        font-size: 0.9rem;
    }
    
    .community-image {
        transform: rotate(0deg);
        margin-top: 20px;
    }
    
    .community-image:hover {
        transform: scale(1.02);
    }
    
    /* Contact section más compacta */
    .contact-section {
        padding: 60px 0;
    }
    
    .contact-section h2 {
        font-size: 1.9rem;
        margin-bottom: 10px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-form {
        padding: 25px 20px;
    }
    
    .cta-buttons {
        justify-content: center;
        gap: 15px;
    }
    
    .btn {
        min-width: 200px;
        padding: 12px 20px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    /* Ultra compacto para móviles pequeños */
    .hero {
        min-height: 85vh;
    }
    
    .hero-content {
        padding: 15px 0;
        gap: 15px;
        min-height: 85vh;
    }
    
    .hero-text h1 {
        font-size: 1.8rem;
        line-height: 1.1;
    }
    
    .hero-text p {
        font-size: 0.95rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .nav-menu a {
        font-size: 1.2rem;
    }
    
    .courses-section {
        padding: 40px 0;
    }
    
    .courses-section h2 {
        font-size: 1.8rem;
        margin-bottom: 25px;
    }
    
    .about-section {
        padding: 40px 0;
    }
    
    .about-text h2 {
        font-size: 1.6rem;
    }
    
    .contact-section {
        padding: 40px 0;
    }
    
    .contact-section h2 {
        font-size: 1.7rem;
    }
    
    .course-card {
        padding: 15px 12px;
    }
    
    .course-card h3 {
        font-size: 1.2rem;
    }
    
    .contact-form {
        padding: 20px 15px;
    }
    
    .container {
        padding: 0 12px;
    }
    
    .category-section {
        margin-bottom: 35px;
    }
    
    .hero-logo {
        max-width: 200px;
    }
    
    .cta-buttons {
        gap: 10px;
    }
    
    .btn {
        min-width: 180px;
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    /* Funcionalidad Ver más kits solo en móvil */
    .course-card.mobile-hidden {
        display: none;
    }
    
    .show-more-container {
        text-align: center;
        margin: 30px 0;
    }
    
    .show-more-btn {
        background: #3498db;
        color: white;
        border: none;
        padding: 12px 25px;
        border-radius: 25px;
        font-size: 1rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    }
    
    .show-more-btn:hover {
        background: #2980b9;
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
    }
}
    
    .show-more-container {
        text-align: center;
        margin: 30px 0;
    }
    
    .show-more-btn {
        background: #3498db;
        color: white;
        border: none;
        padding: 12px 25px;
        border-radius: 25px;
        font-size: 1rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    }
    
    .show-more-btn:hover {
        background: #2980b9;
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}


/* Legal pages styles */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.legal-content h2 {
    font-size: 2.2rem;
    color: #2c3e50;
    margin-bottom: 30px;
    text-align: center;
}

.legal-content h3 {
    font-size: 1.4rem;
    color: #3498db;
    margin: 30px 0 15px 0;
    border-bottom: 2px solid #e8f4f8;
    padding-bottom: 10px;
}

.legal-content p {
    margin-bottom: 15px;
    line-height: 1.7;
    color: #555;
}

.legal-content ul {
    margin: 15px 0 20px 20px;
    color: #666;
}

.legal-content li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.legal-content strong {
    color: #2c3e50;
}

/* Loading animations */
.course-card,
.feature-item,
.contact-item {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

.course-card:nth-child(1) { animation-delay: 0.1s; }
.course-card:nth-child(2) { animation-delay: 0.2s; }
.course-card:nth-child(3) { animation-delay: 0.3s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==============================
   BLOG STYLES
   ============================== */

/* Blog Preview Section (Homepage) */
.blog-preview-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
}

.blog-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.blog-preview-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.blog-preview-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.blog-preview-content {
    padding: 25px;
}

.blog-preview-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.category-badge {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-preview-meta .date {
    color: #666;
    font-size: 0.9rem;
}

.blog-preview-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 12px;
    line-height: 1.4;
}

.blog-preview-content h3 a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.blog-preview-content h3 a:hover {
    color: #3498db;
}

.blog-preview-content .excerpt {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.related-kit-badge {
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
    display: inline-block;
}

.related-kit-badge i {
    margin-right: 5px;
}

.read-more-link {
    color: #3498db;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.read-more-link:hover {
    color: #2980b9;
    text-decoration: underline;
}

.read-more-link i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.read-more-link:hover i {
    transform: translateX(5px);
}

.blog-cta {
    text-align: center;
}

.blog-cta-large {
    text-align: center;
    padding: 80px 20px;
    background: rgba(243, 156, 18, 0.05);
    border-radius: 20px;
    margin: 40px 0;
}

.blog-cta-large .btn {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    padding: 25px 50px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(243, 156, 18, 0.4);
    transition: all 0.3s ease;
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.blog-cta-large .btn:hover {
    background: linear-gradient(135deg, #e67e22, #f39c12);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(243, 156, 18, 0.5);
}

.blog-placeholder {
    text-align: center;
    padding: 40px;
    color: #666;
}

/* Blog Page Styles */
.blog-hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0 60px;
}

.blog-hero {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.blog-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.blog-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.blog-main {
    padding: 80px 0;
    background: #f5f2ed;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.blog-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.clickable-card {
    cursor: pointer;
    transition: all 0.3s ease;
}

.clickable-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.clickable-card h2 {
    color: #2c3e50;
    transition: color 0.3s ease;
}

.clickable-card:hover h2 {
    color: #3498db;
}

.blog-card-content {
    padding: 30px;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.blog-card .category {
    color: white;
    padding: 8px 15px;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* Colores específicos para las etiquetas de categoría en tarjetas */
.blog-card .category.bienestar {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.blog-card .category.educacion {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
}

.blog-card .category.negocios {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.blog-card .category.nutricion {
    background: linear-gradient(135deg, #27ae60, #229954);
}

/* Fallback para categorías sin clase específica */
.blog-card .category:not(.bienestar):not(.educacion):not(.negocios):not(.nutricion) {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
}

/* Estilos para category-badge en vista detallada */
.category-badge {
    color: white;
    padding: 8px 15px;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
}

.category-badge.bienestar {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.category-badge.educacion {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
}

.category-badge.negocios {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.category-badge.nutricion {
    background: linear-gradient(135deg, #27ae60, #229954);
}

.category-badge:not(.bienestar):not(.educacion):not(.negocios):not(.nutricion) {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
}

.blog-card .date {
    color: #666;
    font-size: 0.9rem;
}

.blog-card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1.4;
}

.blog-card h2 a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.blog-card h2 a:hover {
    color: #3498db;
}

.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px 0;
}

.tag {
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.related-kit {
    background: rgba(46, 204, 113, 0.1);
    color: #27ae60;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    margin: 15px 0;
    border-left: 4px solid #27ae60;
}

.related-kit a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-kit a:hover {
    color: #219a52;
}

.read-more {
    color: #3498db;
    font-weight: 600;
    text-decoration: none;
    font-size: 1rem;
    display: inline-block;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* Navigation logo for blog pages */
.nav-logo {
    height: 50px;
    width: auto;
}

/* Blog Categories */
.blog-categories {
    margin-bottom: 50px;
}

.category-breadcrumb {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.category-breadcrumb span {
    color: #495057;
    font-size: 0.95rem;
}

.category-breadcrumb strong {
    color: #2c3e50;
    font-weight: 700;
}

.back-to-all {
    color: #3498db;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.back-to-all:hover {
    color: #2980b9;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .category-breadcrumb {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
}

.blog-categories h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 30px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.category-filter {
    background: white;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: inherit;
    display: block;
}

.category-filter:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-color: #3498db;
}

.category-filter.active {
    border-color: #3498db;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
}

.category-filter.active .category-icon i {
    color: white;
}

.category-icon {
    margin-bottom: 15px;
}

.category-icon i {
    font-size: 2.5rem;
    color: #3498db;
    transition: color 0.3s ease;
}

.category-filter h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: inherit;
}

.category-filter p {
    font-size: 0.9rem;
    opacity: 0.8;
    margin: 0;
}

.category-filter.active p {
    opacity: 0.9;
}

/* Colores específicos por categoría */
/* Todos - Amarillo */
.category-filter.todos:hover {
    border-color: #f39c12;
}

.category-filter.todos.active {
    border-color: #f39c12;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
}

.category-filter.todos .category-icon i {
    color: #f39c12;
}

.category-filter.todos.active .category-icon i {
    color: white;
}

/* Bienestar Emocional y Desarrollo Personal - Azul */
.category-filter.bienestar:hover {
    border-color: #3498db;
}

.category-filter.bienestar.active {
    border-color: #3498db;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
}

.category-filter.bienestar .category-icon i {
    color: #3498db;
}

.category-filter.bienestar.active .category-icon i {
    color: white;
}

/* Educación y Crianza - Morado */
.category-filter.educacion:hover {
    border-color: #9b59b6;
}

.category-filter.educacion.active {
    border-color: #9b59b6;
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    color: white;
}

.category-filter.educacion .category-icon i {
    color: #9b59b6;
}

.category-filter.educacion.active .category-icon i {
    color: white;
}

/* Negocios y Tecnología - Rojo */
.category-filter.negocios:hover {
    border-color: #e74c3c;
}

.category-filter.negocios.active {
    border-color: #e74c3c;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}

.category-filter.negocios .category-icon i {
    color: #e74c3c;
}

.category-filter.negocios.active .category-icon i {
    color: white;
}

/* Nutrición y Estilo de Vida Saludable - Verde */
.category-filter.nutricion:hover {
    border-color: #27ae60;
}

.category-filter.nutricion.active {
    border-color: #27ae60;
    background: linear-gradient(135deg, #27ae60, #229954);
    color: white;
}

.category-filter.nutricion .category-icon i {
    color: #27ae60;
}

.category-filter.nutricion.active .category-icon i {
    color: white;
}

/* No articles message */
.no-articles {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    grid-column: 1 / -1;
}

.no-articles h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 15px;
}

/* Responsive Blog Styles */
@media (max-width: 768px) {
    .blog-preview-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .blog-preview-card {
        margin: 0 10px;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .blog-hero h1 {
        font-size: 2.2rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .blog-preview-content,
    .blog-card-content {
        padding: 20px;
    }
    
    .blog-preview-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 15px;
    }
}

/* Article Detail View Styles */
.article-detail {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.article-text {
    padding: 20px;
    line-height: 1.8;
    font-size: 1.1rem;
    color: #2c3e50;
}

.article-text h2 {
    color: #2c3e50;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 30px 0 20px 0;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

.article-text h3 {
    color: #34495e;
    font-size: 1.4rem;
    font-weight: 600;
    margin: 25px 0 15px 0;
}

.article-text p {
    margin-bottom: 18px;
    text-align: justify;
}

.article-text ul, .article-text ol {
    margin: 20px 0;
    padding-left: 25px;
}

.article-text li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.article-text strong {
    color: #2c3e50;
    font-weight: 600;
}

.article-cta-section {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 25px;
    margin: 30px 20px 20px 20px;
    text-align: center;
}

.article-cta-section h3 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.article-cta {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .article-text {
        padding: 15px;
        font-size: 1rem;
    }
    
    .article-text h2 {
        font-size: 1.5rem;
    }
    
    .article-text h3 {
        font-size: 1.2rem;
    }
    
    .article-cta {
        flex-direction: column;
    }
    
    .article-cta-section {
        margin: 20px 10px;
        padding: 20px;
    }
}

.back-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 30px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.back-btn:hover {
    background: #2980b9;
    transform: translateX(-3px);
}

.article-bottom-navigation {
    text-align: center;
    padding: 30px 0;
    margin-top: 40px;
    border-top: 1px solid #eee;
}

/* Back Navigation for Legal Pages */
.back-navigation-top {
    background: white;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.back-navigation-bottom {
    background: white;
    padding: 30px 0;
    border-top: 1px solid #eee;
    text-align: center;
}

.back-navigation-top .back-btn,
.back-navigation-bottom .back-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    text-decoration: none;
}

.back-navigation-top .back-btn:hover,
.back-navigation-bottom .back-btn:hover {
    background: #2980b9;
    transform: translateX(-3px);
    color: white;
}

/* Blog Social Media Styles */
.blog-social-media, .article-social-media {
    text-align: center;
    padding: 40px 20px;
    margin-top: 30px;
    background: rgba(52, 152, 219, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(52, 152, 219, 0.1);
}

.blog-social-media h4, .article-social-media h4 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.3rem;
    font-weight: 600;
}

.blog-social-links, .article-social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.blog-social-links a, .article-social-links a {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.2);
}

.blog-social-links a:hover, .article-social-links a:hover {
    background: linear-gradient(135deg, #2980b9, #3498db);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

/* Responsive for mobile */
@media (max-width: 768px) {
    .blog-social-links, .article-social-links {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .blog-social-links a, .article-social-links a {
        width: 200px;
        justify-content: center;
    }
}

.article-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
    text-align: center;
}

.article-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.article-meta .category-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.article-meta .date,
.article-meta .author {
    font-size: 0.9rem;
    opacity: 0.9;
}

.article-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.article-excerpt {
    font-size: 1.2rem;
    opacity: 0.95;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto 25px;
}

.related-kit-highlight {
    background: rgba(255, 255, 255, 0.15);
    padding: 15px 25px;
    border-radius: 10px;
    display: inline-block;
    font-weight: 600;
}

.related-kit-highlight a {
    color: white;
    text-decoration: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.5);
    transition: border-color 0.3s ease;
}

.related-kit-highlight a:hover {
    border-bottom-color: white;
}

.article-content {
    padding: 40px;
}

.content-placeholder {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    margin-bottom: 30px;
    border: 2px dashed #ddd;
}

.content-placeholder h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 20px;
}

.content-placeholder p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 30px;
}

.article-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

.article-tags {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    margin-top: 30px;
}

.article-tags h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.article-tags .tag {
    background: rgba(52, 152, 219, 0.15);
    color: #3498db;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-right: 10px;
    margin-bottom: 10px;
    display: inline-block;
}

/* Responsive Article Detail */
@media (max-width: 768px) {
    .article-detail {
        margin: 0 15px;
        border-radius: 10px;
    }
    
    .article-header {
        padding: 30px 25px;
    }
    
    .article-header h1 {
        font-size: 2rem;
    }
    
    .article-excerpt {
        font-size: 1.1rem;
    }
    
    .article-content {
        padding: 30px 25px;
    }
    
    .content-placeholder {
        padding: 30px 20px;
    }
    
    .article-meta {
        gap: 15px;
    }
    
    .article-cta {
        flex-direction: column;
        gap: 15px;
    }
    
    .article-cta .btn {
        width: 100%;
        text-align: center;
    }
}
    .category-filter {
        padding: 20px;
    }
    
    .category-icon i {
        font-size: 2rem;
    }
    
    .blog-categories h2 {
        font-size: 1.8rem;
    }
    
    .article-payment-options {
        padding: 15px;
    }
    
    .article-payment-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .article-payment-card {
        padding: 12px 32px 12px 12px;
        gap: 8px;
    }
    
    .article-payment-card span {
        font-size: 0.8rem;
    }
}

/* Article Payment Methods Styles */
.article-payment-options {
    margin-top: 20px;
    padding: 20px;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(52, 152, 219, 0.2);
}

.article-payment-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.article-payment-card {
    background: linear-gradient(135deg, #2196F3, #1976D2);
    border: 1px solid rgba(33, 150, 243, 0.3);
    border-radius: 12px;
    padding: 15px 35px 15px 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    position: relative;
    overflow: visible;
    cursor: default;
}

.article-payment-card .fas.fa-university {
    color: #2c3e50 !important;
    background: rgba(255, 255, 255, 0.95) !important;
    border-radius: 6px;
    padding: 8px;
    width: 32px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.3rem !important;
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.article-payment-card span {
    font-weight: 600;
    font-size: 0.85rem;
    flex-grow: 1;
}

.article-oxxo-logo {
    width: 32px;
    height: 22px;
    object-fit: contain;
    background: white;
    border-radius: 6px;
    padding: 3px;
    flex-shrink: 0;
}

.article-whatsapp-logo {
    width: 20px;
    height: 20px;
    object-fit: contain;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    padding: 2px;
}

/* Legal pages mobile responsive styles - ONLY for legal pages */
@media (max-width: 768px) {
    /* Legal pages hero titles - HIGHEST SPECIFICITY */
    body.legal-page .hero .hero-content .hero-text h1 {
        font-size: 1.8rem !important;
        line-height: 1.2 !important;
        margin-bottom: 15px !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;
        white-space: normal !important;
        max-width: calc(100vw - 40px) !important;
    }
    
    /* Legal pages hero text padding */
    body.legal-page .hero .hero-content .hero-text {
        padding: 0 20px !important;
        max-width: 100vw !important;
        box-sizing: border-box !important;
    }
    
    /* Legal pages subtitles */
    body.legal-page .hero .hero-content .hero-subtitle {
        font-size: 1rem !important;
        margin-bottom: 10px !important;
    }
    
    /* Force legal page hero content to be responsive */
    body.legal-page .hero-content {
        grid-template-columns: 1fr !important;
        padding: 20px 10px !important;
        text-align: center !important;
    }
    
    /* Force legal page hero to be responsive */
    body.legal-page .hero {
        min-height: auto !important;
        padding: 40px 0 !important;
    }
    
    /* Legal content responsive */
    .legal-content {
        padding: 0 10px;
    }
    
    .legal-content h2 {
        font-size: 1.5rem;
        line-height: 1.3;
        margin-bottom: 15px;
    }
    
    .legal-content h3 {
        font-size: 1.2rem;
        line-height: 1.3;
        margin-bottom: 12px;
        margin-top: 20px;
    }
    
    .legal-content p {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 15px;
    }
    
    .legal-content ul, .legal-content ol {
        padding-left: 20px;
        margin: 15px 0;
    }
    
    .legal-content li {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 8px;
    }
    
    /* Back navigation responsive */
    .back-navigation-top,
    .back-navigation-bottom {
        padding: 20px 0;
    }
    
    .back-btn {
        font-size: 0.8rem;
        padding: 10px 20px;
    }
}
