@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ========================================
   ESTILOS MEJORADOS - VERSIÓN FINAL
   Gradiente Naranja-Azul, Sin Verde (excepto WhatsApp)
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    max-width: 100vw;
}

/* ========================================
   CONTENEDORES PRINCIPALES
   ======================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 30px;
}

.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

.content-wrapper {
    background: white;
    border-radius: 24px;
    padding: 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    margin: 40px auto;
}

main {
    flex: 1;
    padding-top: 20px;
    padding-bottom: 60px;
}

/* ========================================
   HEADER MEJORADO
   ======================================== */

header {
    background: linear-gradient(135deg, #3c6ca8 0%, #4a7bbd 50%, #6b93cf 100%);
    color: white;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(60, 108, 168, 0.25);
}

nav {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    height: 70px;
}

/* ========================================
   HERO CON GRADIENTE NARANJA-AZUL
   ======================================== */

.hero {
    background: 
        linear-gradient(135deg, 
            rgba(60, 108, 168, 0.85) 0%, 
            rgba(74, 123, 189, 0.75) 25%,
            rgba(107, 147, 207, 0.65) 50%,
            rgba(48, 72, 132, 0.65) 75%,
            rgba(41, 128, 185, 0.85) 100%
        ),
        url('https://raw.githubusercontent.com/jaselmono-bit/documentos/main/imagenes/pexels-olly-3776808.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    text-align: center;
    padding: 150px 30px;
    position: relative;
    overflow: hidden;
    margin-bottom: 60px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(60, 108, 168, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(48, 72, 132, 0.3) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title, .hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 800;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    animation: heroFadeInDown 0.8s ease;
}

.hero-description, .hero p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto 40px;
    opacity: 0.95;
    line-height: 1.7;
    animation: heroFadeInUp 0.8s ease 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 40px 0;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.hero-stat {
    text-align: center;
}

.hero-stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 5px;
}

.hero-stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.page-hero {
    background: linear-gradient(135deg, 
        #3c6ca8 0%, 
        #4a7bbd 35%, 
        #304884 65%, 
        #26396b 100%);
    padding: 100px 30px 120px;
    color: white;
    text-align: center;
    position: relative;
    margin-bottom: -60px;
    z-index: 1;
}

.page-hero h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    font-weight: 800;
}

.page-hero p {
    font-size: 1.2rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   BOTONES ACTUALIZADOS (NARANJA Y AZUL)
   ======================================== */

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s;
    margin: 0.5rem;
}

.cta-button.primary {
    background: linear-gradient(135deg, #3c6ca8 0%, #4a7bbd 100%);
    color: white;
    border: 2px solid transparent;
    box-shadow: 0 5px 20px rgba(60, 108, 168, 0.3);
}

.cta-button.primary:hover {
    background: linear-gradient(135deg, #4a7bbd 0%, #3c6ca8 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(60, 108, 168, 0.4);
}

.cta-button.secondary {
    background: linear-gradient(135deg, #304884 0%, #26396b 100%);
    color: white;
    border: 2px solid transparent;
    box-shadow: 0 5px 20px rgba(48, 72, 132, 0.3);
}

.cta-button.secondary:hover {
    background: linear-gradient(135deg, #26396b 0%, #304884 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(48, 72, 132, 0.4);
}

.cta-button.outline {
    background: transparent;
    border: 2px solid #3c6ca8;
    color: #3c6ca8;
}

.cta-button.outline:hover {
    background: #3c6ca8;
    color: white;
}

.cta-button.outline.blue {
    border-color: #304884;
    color: #304884;
}

.cta-button.outline.blue:hover {
    background: #304884;
    color: white;
}

.cta-button.large {
    padding: 1.2rem 3rem;
    font-size: 1.2rem;
}

.cta-button.small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.campus-button {
    background: linear-gradient(135deg, #304884 0%, #26396b 100%);
    color: white;
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
    box-shadow: 
        0 5px 20px rgba(48, 72, 132, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    margin: 0.5rem;
}

.campus-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.2), 
        transparent);
    transition: left 0.5s;
}

.campus-button:hover::before {
    left: 100%;
}

.campus-button:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 10px 30px rgba(48, 72, 132, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.campus-button.large {
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
}

/* ========================================
   SECCIONES
   ======================================== */

section {
    position: relative;
    z-index: 1;
}

.section-card {
    background: white;
    border-radius: 24px;
    padding: 60px;
    margin: 40px auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    max-width: 1200px;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    background: linear-gradient(135deg, #3c6ca8 0%, #4a7bbd 50%, #6b93cf 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    font-weight: 800;
}

.section-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.15rem;
    line-height: 1.7;
}

/* ========================================
   BENEFITS SIN ÓVALOS VERDES
   ======================================== */

.benefits {
    background: linear-gradient(135deg, #f5f8fd 0%, #f0f9ff 100%);
    padding: 80px 30px;
    margin: 60px 0;
    position: relative;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 50px auto 0;
}

.benefit-card {
    text-align: center;
    padding: 40px 30px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3c6ca8 0%, #304884 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.benefit-card:hover::before {
    transform: scaleX(1);
}

.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(60, 108, 168, 0.15);
    border-color: rgba(60, 108, 168, 0.2);
}

.benefit-card:nth-child(even):hover {
    box-shadow: 0 12px 40px rgba(48, 72, 132, 0.15);
    border-color: rgba(48, 72, 132, 0.2);
}

.benefit-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    display: inline-block;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.1));
}

@keyframes floatIcon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.benefit-card h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.benefit-card p {
    color: #666;
    line-height: 1.6;
}

/* ========================================
   COURSES GRID
   ======================================== */

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 35px;
    margin-top: 50px;
    margin-bottom: 50px;
}

.course-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid #f0f0f0;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 50px rgba(60, 108, 168, 0.2);
    border-color: rgba(60, 108, 168, 0.3);
}

.course-image-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.course-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.course-card:hover .course-image {
    transform: scale(1.1);
}

.course-content {
    padding: 2rem;
}

.course-content h3 {
    background: linear-gradient(135deg, #3c6ca8 0%, #4a7bbd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.course-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.course-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #d9e4f5;
    color: #555;
}

.course-features li:before {
    content: "✓ ";
    background: linear-gradient(135deg, #3c6ca8 0%, #6b93cf 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
    margin-right: 0.5rem;
}

.course-button {
    display: block;
    text-align: center;
    background: linear-gradient(135deg, #3c6ca8 0%, #4a7bbd 100%);
    color: white;
    padding: 0.8rem;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(60, 108, 168, 0.3);
}

.course-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(60, 108, 168, 0.4);
}

.course-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: bold;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: white;
    z-index: 10;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.course-badge.free {
    background: linear-gradient(135deg, #304884 0%, #26396b 100%);
}

.course-badge.promo {
    background: linear-gradient(135deg, #3c6ca8 0%, #4a7bbd 100%);
}

.course-badge.pago {
    background: linear-gradient(135deg, #8e44ad 0%, #9b59b6 100%);
}

/* ========================================
   CONSULTAS GRID (AZUL EN VEZ DE VERDE)
   ======================================== */

.consultas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 40px;
    margin: 50px 0;
}

.consulta-card {
    background: white;
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-left: 5px solid #304884;
}

.consulta-card:hover {
    transform: translateY(-5px) translateX(5px);
    box-shadow: 0 12px 35px rgba(48, 72, 132, 0.2);
}

.consulta-content h3 {
    background: linear-gradient(135deg, #304884 0%, #26396b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.consulta-preview {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    min-height: 80px;
}

.consulta-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

/* ========================================
   STATS SECTION CON GRADIENTE
   ======================================== */

.stats-section {
    background: linear-gradient(135deg, 
        #3c6ca8 0%, 
        #4a7bbd 25%,
        #6b93cf 50%,
        #304884 75%,
        #26396b 100%);
    color: white;
    padding: 80px 30px;
    text-align: center;
    margin: 60px 0;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotateGradient 20s linear infinite;
}

@keyframes rotateGradient {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 40px auto 0;
    position: relative;
    z-index: 1;
}

.stat-item {
    padding: 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.stat-label {
    font-size: 1rem;
    opacity: 0.95;
}

/* ========================================
   WHATSAPP FLOTANTE (ÚNICO ELEMENTO VERDE)
   ======================================== */

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.5);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    z-index: 999;
    transition: all 0.3s;
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.7);
}

.whatsapp-icon {
    font-size: 1.5rem;
}

.whatsapp-text {
    font-weight: 600;
    font-size: 0.95rem;
}

@keyframes pulse-whatsapp {
    0%, 100% {
        box-shadow: 0 5px 20px rgba(37, 211, 102, 0.5);
    }
    50% {
        box-shadow: 0 5px 30px rgba(37, 211, 102, 0.8);
    }
}

/* ========================================
   FOOTER Y REDES SOCIALES
   ======================================== */

footer {
    background: linear-gradient(135deg, #1f2937 0%, #2d3748 100%);
    color: white;
    padding: 60px 30px 30px;
    position: relative;
    margin-top: 100px;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #3c6ca8 0%, #6b93cf 33%, #304884 66%, #3c6ca8 100%);
    background-size: 200% 100%;
    animation: gradientMove 3s linear infinite;
}

@keyframes gradientMove {
    0% { background-position: 0% 0%; }
    100% { background-position: 200% 0%; }
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #3c6ca8 0%, #6b93cf 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #cbd5e0;
    text-decoration: none;
    transition: all 0.3s;
}

.footer-section a:hover {
    color: #6b93cf;
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: all 0.3s;
}

.social-links a:hover {
    transform: translateY(-3px);
}

.social-links a:nth-child(1):hover {
    background: #FF0000;
}

.social-links a:nth-child(2):hover {
    background: linear-gradient(135deg, #833AB4 0%, #FD1D1D 50%, #FCB045 100%);
}

.social-links a:nth-child(3):hover {
    background: #1877F2;
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #4a5568;
    color: #cbd5e0;
}

.footer-bottom a {
    color: #6b93cf;
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* ========================================
   ANIMACIONES
   ======================================== */

@keyframes heroFadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroFadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   UTILIDADES
   ======================================== */

.cta-center {
    text-align: center;
    margin-top: 50px;
}

.cta-buttons-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

.loading {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.loading::after {
    content: '';
    display: inline-block;
    width: 40px;
    height: 40px;
    margin: 20px auto;
    border: 4px solid #f0f0f0;
    border-top: 4px solid #3c6ca8;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .container {
        padding: 40px 20px;
    }
    
    .content-wrapper {
        padding: 30px 20px;
        margin: 20px;
        border-radius: 20px;
    }
    
    .hero h1, .hero-title {
        font-size: 2.2rem;
    }
    
    .hero p, .hero-description {
        font-size: 1.1rem;
    }
    
    .hero-stats {
        gap: 30px;
    }
    
    .hero-stat-number {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .courses-grid,
    .consultas-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .page-hero {
        padding: 80px 20px 100px;
    }
    
    .page-hero h1 {
        font-size: 2.2rem;
    }
    
    .whatsapp-float {
        width: 60px;
        height: 60px;
        padding: 0;
        justify-content: center;
        border-radius: 50%;
    }
    
    .whatsapp-text {
        display: none;
    }
    
    .whatsapp-icon {
        font-size: 2rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* ========================================
   TIPOGRAFÍA GLOBAL
   ======================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    overflow-wrap: break-word;
    word-break: break-word;
}

/* ========================================
   MÓVIL — CORRECCIÓN DEFINITIVA (max 768px)
   ======================================== */

@media (max-width: 768px) {

    /* --- Prevenir overflow horizontal --- */
    html, body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }

    /* --- Quitar caja visual section-card en móvil --- */
    .section-card {
        background: transparent !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        padding: 0 !important;
        margin: 0 0 1rem 0 !important;
        max-width: 100% !important;
    }

    /* --- Secciones con doble padding: quitar lateral --- */
    .about-section,
    .blog-section,
    .consultas-section {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* --- Container: un solo padding lateral --- */
    .container {
        padding: 24px 16px !important;
        max-width: 100% !important;
    }

    /* --- GRIDS: FORZAR 1 COLUMNA --- */
    .consultas-grid,
    .courses-grid,
    .blog-grid,
    .benefits-grid,
    .stats-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
        margin: 1rem 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* --- Cards: padding reducido, sin overflow --- */
    .consulta-card {
        padding: 16px !important;
        border-radius: 16px !important;
        overflow: hidden !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .course-card,
    .blog-card {
        border-radius: 16px !important;
        overflow: hidden !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* --- Imágenes dentro de cards --- */
    .consulta-image-wrapper,
    .course-image-wrapper,
    .blog-image-wrapper {
        height: 180px !important;
        width: 100% !important;
        overflow: hidden !important;
    }

    /* --- Hero --- */
    .hero h1, .hero-title {
        font-size: 1.9rem !important;
        font-weight: 800 !important;
    }

    .hero p, .hero-description {
        font-size: 1rem !important;
        line-height: 1.6 !important;
    }

    /* --- Títulos de sección --- */
    .section-title {
        font-size: 1.6rem !important;
        font-weight: 800 !important;
    }

    .section-subtitle {
        font-size: 0.95rem !important;
    }

    /* --- Botones táctiles --- */
    .cta-button, .btn-primary, .btn-secondary, .course-button {
        min-height: 48px !important;
        font-weight: 600 !important;
        border-radius: 12px !important;
    }

    /* --- Texto largo en español --- */
    p, h1, h2, h3, h4 {
        overflow-wrap: break-word !important;
        word-break: break-word !important;
    }
}

@media (max-width: 480px) {
    .hero h1, .hero-title {
        font-size: 1.65rem !important;
    }

    .section-title {
        font-size: 1.4rem !important;
    }

    .consulta-image-wrapper,
    .course-image-wrapper,
    .blog-image-wrapper {
        height: 160px !important;
    }
}

/* ========================================
   GRUPO SEVILLA — CERTIFICACIÓN INSTITUCIONAL
   ======================================== */

/* TOP BAR */
.sevilla-topbar {
    background: linear-gradient(135deg, #1a2a4a 0%, #2c3e6b 100%);
    color: #c9d6ee;
    text-align: center;
    padding: 7px 16px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.4;
}
.sevilla-topbar-main {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.sevilla-topbar-sub {
    font-size: 0.68rem;
    color: rgba(201, 214, 238,0.78);
    font-weight: 400;
}

/* SECCIÓN CERTIFICACIÓN */
.sevilla-cert-section {
    padding: 64px 0;
    background: linear-gradient(135deg, #f3f6fb 0%, #eef3fb 100%);
}
.sevilla-cert-card {
    display: flex;
    gap: 40px;
    align-items: center;
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 40px rgba(60, 108, 168,0.10), 0 2px 12px rgba(0,0,0,0.07);
    border: 1.5px solid rgba(60, 108, 168,0.13);
}
.sevilla-cert-logo {
    flex-shrink: 0;
    width: 160px;
    text-align: center;
}
.sevilla-cert-logo img {
    width: 140px;
    height: auto;
    border-radius: 12px;
}
.sevilla-cert-logo-fallback {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #1a2a4a, #2c3e6b);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}
.sevilla-shield { font-size: 3.5rem; }
.sevilla-cert-body { flex: 1; }
.sevilla-cert-badge-top {
    display: inline-block;
    background: linear-gradient(135deg, #3c6ca8 0%, #4a7bbd 100%);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 4px 14px;
    border-radius: 50px;
    margin-bottom: 14px;
    text-transform: uppercase;
}
.sevilla-cert-title {
    font-size: 1.55rem;
    font-weight: 700;
    color: #1a2a4a;
    margin-bottom: 14px;
    line-height: 1.3;
}
.sevilla-cert-text {
    color: #555;
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 0.97rem;
}
.sevilla-cert-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}
.sevilla-cert-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.93rem;
    color: #444;
}
.sevilla-cert-check {
    color: #3c6ca8;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 1px;
}
.sevilla-cert-footer-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #1a2a4a 0%, #2c3e6b 100%);
    color: #c9d6ee;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 7px 16px;
    border-radius: 50px;
}

/* BADGE EN TARJETAS DE CURSOS */
.course-sevilla-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #3c6ca8 0%, #4a7bbd 100%);
    color: white;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 50px;
    letter-spacing: 0.03em;
    z-index: 2;
    white-space: nowrap;
}

/* LEYENDA LEGAL FOOTER */
.footer-legal-sevilla {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.5);
    margin-top: 8px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .sevilla-cert-card {
        flex-direction: column;
        padding: 28px 20px;
        gap: 24px;
    }
    .sevilla-cert-logo { width: 100%; }
    .sevilla-cert-logo img { width: 110px; }
    .sevilla-cert-title { font-size: 1.25rem; }
    .sevilla-topbar { padding: 8px 12px; }
    .sevilla-topbar-main { font-size: 0.72rem; }
    .sevilla-topbar-sub { font-size: 0.62rem; }
}

