/* ========================================
   ESTILOS GLOBALES - DESCODIFICACIÓN TRANSPERSONAL
   Versión 5.0 - Completo con Menú Móvil
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
}

/* ========================================
   HEADER
   ======================================== */

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 15px rgba(60, 108, 168, 0.3);
}

nav {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 2rem;
    min-height: 70px;
    overflow: visible;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
}

.logo-link:hover .logo-img-container {
    transform: scale(1.05);
}

.logo-img-container {
    background: white;
    padding: 0.5rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s;
}

.logo-img-container img {
    height: 45px;
    width: auto;
}

.logo-text {
    color: white;
    font-size: 1.4rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

.nav-menu a:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: white;
    transition: width 0.3s;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.campus-nav-link {
    background: rgba(48, 72, 132, 0.3);
    padding: 0.5rem 1rem !important;
    border-radius: 20px;
    transition: all 0.3s;
}

.campus-nav-link:hover {
    background: rgba(48, 72, 132, 0.5);
}

/* ========================================
   MENÚ MÓVIL - HAMBURGUESA
   ======================================== */

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1002;
    position: relative;
    -webkit-tap-highlight-color: transparent;
}

.hamburger-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
}

.hamburger-icon .bar {
    display: block;
    width: 100%;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Animación X cuando está activo */
.menu-toggle.active .hamburger-icon .bar:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}

.menu-toggle.active .hamburger-icon .bar:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.menu-toggle.active .hamburger-icon .bar:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
}

/* Overlay oscuro */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-overlay.active {
    display: block;
    opacity: 1;
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
    background: 
        linear-gradient(135deg, 
            rgba(60, 108, 168, 0.75) 0%, 
            rgba(74, 123, 189, 0.8) 25%,
            rgba(107, 147, 207, 0.75) 50%,
            rgba(74, 123, 189, 0.3) 75%,
            rgba(74, 123, 189, 0.4) 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: 8rem 2rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(107, 147, 207, 0.4), transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(74, 123, 189, 0.3), transparent 40%),
        radial-gradient(circle at 50% 70%, rgba(74, 123, 189, 0.3), transparent 50%);
    animation: moveBackground 20s ease-in-out infinite;
    pointer-events: none;
}

@keyframes moveBackground {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(-5%, 5%) rotate(5deg); }
    50% { transform: translate(5%, -5%) rotate(-5deg); }
    75% { transform: translate(-3%, -3%) rotate(3deg); }
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.4);
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero p {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    position: relative;
    z-index: 1;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.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);
    position: relative;
    z-index: 1;
}

.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;
}

/* ========================================
   BOTONES CTA
   ======================================== */

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, white 0%, #eef3fb 100%);
    color: #3c6ca8;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s;
    margin: 0.5rem;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: 0 5px 20px rgba(60, 108, 168, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(60, 108, 168, 0.4);
}

.cta-button.primary {
    background: linear-gradient(135deg, #3c6ca8 0%, #4a7bbd 100%);
    color: white;
    border: 2px solid transparent;
}

.cta-button.primary:hover {
    background: linear-gradient(135deg, #4a7bbd 0%, #3c6ca8 100%);
    box-shadow: 0 10px 30px rgba(60, 108, 168, 0.5);
}

.cta-button.secondary {
    background: linear-gradient(135deg, #304884 0%, #26396b 100%);
    color: white;
}

.cta-button.secondary:hover {
    background: linear-gradient(135deg, #26396b 0%, #304884 100%);
    box-shadow: 0 10px 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.large {
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
}

.cta-button.small {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
}

.cta-button.full-width {
    width: 100%;
}

.cta-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

/* ========================================
   CONTAINER
   ======================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.container-enhanced {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    scroll-margin-top: 70px;
}

/* ========================================
   SECTION TITLES
   ======================================== */

.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: 1rem;
    font-weight: 700;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #3c6ca8 0%, #6b93cf 50%, #4a7bbd 100%);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.1rem;
}

/* ========================================
   PAGE HERO
   ======================================== */

.page-hero {
    background: linear-gradient(135deg, 
        #3c6ca8 0%, 
        #4a7bbd 35%, 
        #304884 65%, 
        #26396b 100%);
    padding: 80px 30px 100px;
    color: white;
    text-align: center;
    position: relative;
    margin-bottom: -50px;
    z-index: 1;
}

.page-hero h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.page-hero p {
    font-size: 1.2rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   ABOUT SECTION
   ======================================== */

.about-content {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-section {
    background: white;
    padding: 60px 30px;
}

.section-card {
    background: white;
    border-radius: 24px;
    padding: 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    margin: 40px auto;
    max-width: 1200px;
}

/* ========================================
   BENEFITS SECTION
   ======================================== */

.benefits {
    background: linear-gradient(135deg, 
        #eef3fb 0%, 
        #d9e4f5 25%, 
        #eef3fb 50%,
        #e0f2fe 75%,
        #f0f9ff 100%
    );
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.benefit-card {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 5px 25px rgba(60, 108, 168, 0.1);
    transition: all 0.3s;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(107, 147, 207, 0.1), transparent);
    transition: left 0.5s;
}

.benefit-card:hover::before {
    left: 100%;
}

.benefit-card:nth-child(odd):hover {
    border-color: #3c6ca8;
    box-shadow: 0 10px 35px rgba(60, 108, 168, 0.2);
}

.benefit-card:nth-child(even):hover {
    border-color: #4a7bbd;
    box-shadow: 0 10px 35px rgba(74, 123, 189, 0.2);
}

.benefit-card:hover {
    transform: translateY(-8px);
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 3px 6px rgba(60, 108, 168, 0.2));
}

.benefit-card 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-weight: 700;
}

.benefit-card p {
    color: #666;
    line-height: 1.6;
}

/* ========================================
   COURSES SECTION
   ======================================== */

.courses-section {
    padding: 60px 30px;
    background: #f8f9fa;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.course-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(60, 108, 168, 0.12);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
    position: relative;
}

.course-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 15px 45px rgba(60, 108, 168, 0.25);
    border-color: #6b93cf;
}

.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;
    position: relative;
    z-index: 1;
}

.course-card h3,
.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.4rem;
    font-weight: 700;
}

.course-card p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.course-features {
    list-style: none;
    margin-bottom: 1.5rem;
    padding: 0;
}

.course-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #d9e4f5;
    color: #555;
}

.course-features li:last-child {
    border-bottom: none;
}

.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 50%, #6b93cf 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);
    position: relative;
    overflow: hidden;
}

.course-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(60, 108, 168, 0.4);
}

.course-button.free {
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
}

.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%);
}

.course-badge.formacion {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
}

/* ========================================
   CONSULTAS SECTION
   ======================================== */

.consultas-section {
    padding: 60px 30px;
    background: white;
}

.consultas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.consulta-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(60, 108, 168, 0.12);
    transition: all 0.3s;
    border: 2px solid transparent;
    border-left: 5px solid #304884;
}

.consulta-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(48, 72, 132, 0.25);
    border-color: rgba(48, 72, 132, 0.3);
}

.consulta-image-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #304884 0%, #26396b 100%);
}

.consulta-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.consulta-card:hover .consulta-image {
    transform: scale(1.1);
}

.consulta-content {
    padding: 2rem;
}

.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.4rem;
    font-weight: 700;
}

.consulta-preview {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    min-height: 80px;
}

.consulta-preview p {
    margin-bottom: 0.8rem;
}

.consulta-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.consulta-buttons .course-button {
    flex: 1;
    min-width: 140px;
}

.consulta-buttons .course-button.secondary {
    background: linear-gradient(135deg, #304884 0%, #26396b 100%);
}

/* ========================================
   BLOG SECTION
   ======================================== */

.blog-section {
    padding: 60px 30px;
    background: #f8f9fa;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.blog-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(60, 108, 168, 0.12);
    transition: all 0.3s;
    border: 2px solid transparent;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(74, 123, 189, 0.25);
    border-color: #4a7bbd;
}

.blog-image-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.blog-image-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.blog-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.blog-card:hover .blog-image {
    transform: scale(1.1);
}

.blog-date {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(60, 108, 168, 0.95);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.video-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 0, 0, 0.9);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

.blog-content {
    padding: 2rem;
}

.blog-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.4rem;
    font-weight: 700;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1.5rem 0;
    padding: 1rem 0;
    border-top: 1px solid #d9e4f5;
    border-bottom: 1px solid #d9e4f5;
    gap: 1rem;
    flex-wrap: wrap;
}

.blog-modalidad {
    background: linear-gradient(135deg, #4a7bbd 0%, #4a7bbd 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* ========================================
   RESOURCES SECTION
   ======================================== */

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.resource-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(60, 108, 168, 0.12);
    transition: all 0.3s;
    border: 2px solid transparent;
}

.resource-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 35px rgba(60, 108, 168, 0.2);
    border-color: #6b93cf;
}

.resource-image {
    width: 100%;
    height: 150px;
    background: linear-gradient(135deg, #3c6ca8 0%, #4a7bbd 50%, #4a7bbd 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.resource-content {
    padding: 2rem;
}

.resource-tag {
    display: inline-block;
    background: linear-gradient(135deg, #eef3fb 0%, #e0f2fe 100%);
    color: #3c6ca8;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    font-weight: 600;
    border: 1px solid #d9e4f5;
}

/* ========================================
   CONTACT SECTION
   ======================================== */

.contact-section {
    padding: 60px 30px;
    background: white;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.contact-info {
    background: linear-gradient(135deg, #eef3fb 0%, #d9e4f5 50%, #e0f2fe 100%);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(60, 108, 168, 0.12);
}

.contact-item {
    display: flex;
    align-items: start;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 3px 15px rgba(60, 108, 168, 0.1);
    transition: all 0.3s;
    border-left: 4px solid transparent;
}

.contact-item:hover {
    transform: translateX(5px);
    border-left-color: #6b93cf;
    box-shadow: 0 5px 20px rgba(107, 147, 207, 0.2);
}

.contact-item .icon {
    font-size: 2rem;
    margin-right: 1rem;
    background: linear-gradient(135deg, #3c6ca8 0%, #6b93cf 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-item h3 {
    background: linear-gradient(135deg, #3c6ca8 0%, #4a7bbd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.contact-item a {
    color: #304884;
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(60, 108, 168, 0.12);
    border: 2px solid #d9e4f5;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #555;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #6b93cf;
    box-shadow: 0 0 0 3px rgba(107, 147, 207, 0.1);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.submit-button {
    background: linear-gradient(135deg, #3c6ca8 0%, #4a7bbd 50%, #6b93cf 100%);
    color: white;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    box-shadow: 0 5px 20px rgba(60, 108, 168, 0.3);
}

.submit-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(60, 108, 168, 0.4);
}

/* ========================================
   STATS SECTION
   ======================================== */

.stats-section {
    background: linear-gradient(135deg, 
        #3c6ca8 0%, 
        #4a7bbd 25%,
        #6b93cf 50%,
        #4a7bbd 75%,
        #4a7bbd 100%
    );
    color: white;
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.15), transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.1), transparent 50%);
    pointer-events: none;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 3rem auto 0;
    position: relative;
    z-index: 1;
}

.stat-item {
    padding: 2rem;
    transition: transform 0.3s;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.stat-item:hover {
    transform: translateY(-8px) scale(1.05);
    background: rgba(255, 255, 255, 0.15);
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.95;
}

/* ========================================
   FOOTER
   ======================================== */

footer {
    background: linear-gradient(135deg, #1f2937 0%, #2d3748 100%);
    color: white;
    padding: 3rem 2rem;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3c6ca8 0%, #6b93cf 33%, #4a7bbd 66%, #3c6ca8 100%);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.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;
    padding: 0;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #cbd5e0;
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
}

.footer-section a:hover {
    color: #6b93cf;
    padding-left: 5px;
}

.footer-logo {
    text-align: center;
    margin-bottom: 1rem;
}

.footer-logo img {
    height: 60px;
    width: auto;
    filter: drop-shadow(0 3px 10px rgba(107, 147, 207, 0.3));
}

.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;
}

.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;
}

/* ========================================
   VIDEO CONTAINER
   ======================================== */

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin: 1.5rem 0;
    border-radius: 15px;
    background: #000;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 15px;
}

/* ========================================
   INFO GRID
   ======================================== */

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.info-item {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.info-item:hover {
    border-color: #3c6ca8;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(60, 108, 168, 0.2);
}

.info-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 10px;
}

.info-item h3 {
    color: #3c6ca8;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-item p {
    color: #333;
    font-weight: 600;
    font-size: 1rem;
    margin: 0;
}

/* ========================================
   LOADING & ERROR STATES
   ======================================== */

.loading {
    text-align: center;
    padding: 4rem 2rem;
    font-size: 1.2rem;
    color: #666;
}

.loading::after {
    content: '';
    display: 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); }
}

.loading-enhanced {
    text-align: center;
    padding: 80px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f0f0f0;
    border-top: 4px solid #3c6ca8;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.error-message,
.error-container {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(60, 108, 168, 0.12);
    margin: 2rem auto;
    max-width: 600px;
}

.error-message h2,
.error-container h2 {
    color: #3c6ca8;
    margin-bottom: 1.5rem;
}

.error-message-enhanced {
    text-align: center;
    padding: 60px 20px;
}

.error-content {
    max-width: 500px;
    margin: 0 auto;
}

.error-icon {
    font-size: 4rem;
    display: block;
    margin-bottom: 20px;
}

.no-results {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(60, 108, 168, 0.12);
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.cta-buttons-enhanced {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 25px;
}

.cta-center {
    text-align: center;
    margin-top: 40px;
}

.cta-buttons-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 25px 0;
}

/* ========================================
   WHATSAPP FLOTANTE
   ======================================== */

.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 25px 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 35px rgba(37, 211, 102, 0.7);
}

.whatsapp-icon {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
}

.whatsapp-text {
    font-weight: 600;
    font-size: 0.95rem;
}

@keyframes pulse-whatsapp {
    0%, 100% {
        box-shadow: 0 5px 25px rgba(37, 211, 102, 0.5);
    }
    50% {
        box-shadow: 0 5px 35px rgba(37, 211, 102, 0.8);
    }
}

/* ========================================
   COURSE DETAIL SPECIFICS
   ======================================== */

.course-detail-main {
    padding: 40px 0 80px;
    background: #f8f9fa;
    min-height: calc(100vh - 200px);
}

.detail-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    min-height: 400px;
}

.course-content-enhanced {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.course-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #f0f0f0;
}

.course-header h1 {
    font-size: 2.2rem;
    background: linear-gradient(135deg, #3c6ca8 0%, #4a7bbd 50%, #6b93cf 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.course-badges {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.course-badges .course-badge {
    position: static;
    display: inline-block;
}

.course-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-top: 15px;
    font-weight: 400;
    line-height: 1.5;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.course-image-container {
    text-align: center;
    margin-bottom: 2rem;
}

.course-detail-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.course-section {
    background: white;
    padding: 2rem;
    margin-bottom: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #3c6ca8;
}

.course-section h2 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.course-section.video-section {
    border-left-color: #e74c3c;
}

.course-description {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #444;
}

.course-description p {
    margin-bottom: 1.2rem;
}

.course-description p:last-child {
    margin-bottom: 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s;
}

.feature-item:hover {
    background: #eef3fb;
    transform: translateX(5px);
}

.feature-icon {
    color: #27ae60;
    font-size: 1.2rem;
    font-weight: bold;
    min-width: 25px;
}

.feature-text {
    color: #444;
    font-size: 0.95rem;
}

.pdf-container {
    margin: 1rem 0;
}

.pdf-viewer {
    width: 100%;
    height: 500px;
    border: none;
    border-radius: 10px;
    background: #f5f5f5;
}

.cta-section-final {
    background: linear-gradient(135deg, #eef3fb 0%, #e8f4fd 100%) !important;
    border: none !important;
    border-left: none !important;
    border-radius: 20px !important;
    text-align: center;
    padding: 40px 30px !important;
    margin-top: 30px;
}

.cta-section-final h2 {
    font-size: 1.8rem;
    background: linear-gradient(135deg, #3c6ca8 0%, #4a7bbd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    justify-content: center;
}

.cta-section-final > p {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.cta-guarantee {
    color: #888;
    font-size: 0.9rem;
    margin: 0;
}

.video-cta-text {
    text-align: center;
    margin-top: 15px;
}

.back-link {
    text-align: center;
    margin-top: 25px;
    padding-bottom: 10px;
}

/* ========================================
   RESPONSIVE - TABLET (768px)
   ======================================== */

@media (max-width: 768px) {
    /* Mostrar botón hamburguesa */
    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Ocultar texto del logo */
    .logo-text {
        display: none;
    }
    
    /* Ajustar logo */
    .logo-img-container img {
        height: 38px;
    }
    
    /* Nav padding */
    nav {
        padding: 0.5rem 15px;
    }
    
    /* Menú lateral móvil */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        max-width: 85vw;
        height: 100vh;
        height: 100dvh;
        background: linear-gradient(180deg, #3c6ca8 0%, #4a7bbd 100%);
        flex-direction: column;
        padding: 80px 0 30px;
        gap: 0;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.3);
        transition: right 0.3s ease;
        z-index: 1001;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    }
    
    .nav-menu li:last-child {
        border-bottom: none;
    }
    
    .nav-menu a {
        display: block;
        padding: 18px 25px;
        font-size: 1.1rem;
        color: white !important;
        text-decoration: none;
        transition: all 0.2s;
        -webkit-tap-highlight-color: transparent;
    }
    
    .nav-menu a:hover,
    .nav-menu a:active,
    .nav-menu a.active {
        background: rgba(255, 255, 255, 0.15);
        padding-left: 30px;
    }
    
    .nav-menu a::after {
        display: none !important;
    }
    
    /* Campus link en móvil */
    .nav-menu .campus-nav-link {
        background: rgba(48, 72, 132, 0.3) !important;
        margin: 15px 20px !important;
        border-radius: 10px !important;
        text-align: center !important;
        display: block !important;
    }
    
    /* Header fijo */
    header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
    }
    
    /* Espacio para header fijo */
    body {
        padding-top: 70px;
    }
    
    /* Ajustar heros */
    .page-hero {
        margin-top: 0;
        padding: 60px 20px 80px;
        margin-bottom: -40px;
    }
    
    .page-hero h1 {
        font-size: 1.8rem;
    }
    
    .page-hero p {
        font-size: 1rem;
    }
    
    .hero {
        padding: 4rem 1.5rem;
        background-attachment: scroll;
    }
    
    .hero h1 {
        font-size: 2rem;
        line-height: 1.3;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .hero-stats {
        gap: 25px;
        flex-wrap: wrap;
    }
    
    .hero-stat-number {
        font-size: 2rem;
    }
    
    /* Container */
    .container {
        padding: 2rem 15px;
    }
    
    /* Section titles */
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    /* Grids */
    .contact-grid,
    .courses-grid,
    .resources-grid,
    .blog-grid,
    .consultas-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }
    
    /* Cards */
    .benefit-card,
    .course-content,
    .consulta-content,
    .blog-content {
        padding: 1.5rem;
    }
    
    /* CTA buttons */
    .cta-buttons,
    .cta-buttons-group,
    .cta-buttons-enhanced {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-button {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
    
    .consulta-buttons {
        flex-direction: column;
    }
    
    .consulta-buttons .course-button {
        width: 100%;
    }
    
    /* WhatsApp flotante */
    .whatsapp-float {
        width: 55px;
        height: 55px;
        padding: 0;
        justify-content: center;
        border-radius: 50%;
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-text {
        display: none;
    }
    
    .whatsapp-icon {
        font-size: 1.5rem;
    }
    
    /* Detail pages */
    .detail-wrapper {
        padding: 25px 20px;
        margin: 20px 15px;
        border-radius: 20px;
    }
    
    .course-header h1 {
        font-size: 1.6rem;
    }
    
    .course-subtitle {
        font-size: 1rem;
    }
    
    .course-section {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .course-section h2 {
        font-size: 1.2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .info-item {
        padding: 1rem;
    }
    
    .info-item h3 {
        font-size: 0.8rem;
    }
    
    .pdf-viewer {
        height: 350px;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* ========================================
   RESPONSIVE - MÓVIL PEQUEÑO (480px)
   ======================================== */

@media (max-width: 480px) {
    .container {
        padding: 1.5rem 12px;
    }
    
    .hero {
        padding: 3rem 1rem;
    }
    
    .hero h1 {
        font-size: 1.6rem;
    }
    
    .hero p {
        font-size: 0.95rem;
    }
    
    .page-hero {
        padding: 50px 15px 70px;
    }
    
    .page-hero h1 {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .benefit-card,
    .course-content,
    .blog-content {
        padding: 1.2rem;
    }
    
    .course-card h3,
    .blog-content h3 {
        font-size: 1.2rem;
    }
    
    .stats-grid {
        gap: 0.8rem;
    }
    
    .stat-item {
        padding: 1rem 0.5rem;
    }
    
    .stat-number {
        font-size: 1.6rem;
    }
    
    .detail-wrapper {
        padding: 20px 15px;
        margin: 15px 10px;
    }
    
    .course-header h1 {
        font-size: 1.4rem;
    }
    
    .course-section {
        padding: 1.2rem;
        border-left-width: 3px;
    }
    
    .course-section h2 {
        font-size: 1.1rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .cta-section-final {
        padding: 30px 20px !important;
    }
    
    .cta-section-final h2 {
        font-size: 1.4rem;
    }
    
    .pdf-viewer {
        height: 280px;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 15px;
        right: 15px;
    }
}

/* ========================================
   TABLET LANDSCAPE (769px - 1024px)
   ======================================== */

@media (min-width: 769px) and (max-width: 1024px) {
    .courses-grid,
    .blog-grid,
    .consultas-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .page-hero h1 {
        font-size: 2.2rem;
    }
    
    .nav-menu {
        gap: 1.2rem;
    }
    
    .nav-menu a {
        font-size: 0.95rem;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    .whatsapp-float,
    .menu-toggle,
    .menu-overlay,
    header,
    footer {
        display: none !important;
    }
    
    body {
        padding-top: 0 !important;
    }
    
    .detail-wrapper {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
/* ========================================
   CORRECCIONES FINALES VISUALIZACIÓN
   ======================================== */

/* HEADER & SUBTÍTULO */
.course-header {
    background: #ffffff;
    padding: 40px 20px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    margin-bottom: 30px;
    text-align: center;
    border: 1px solid #f0f0f0;
}

.course-subtitle {
    font-size: 1.3rem;
    color: #666;
    margin-top: 10px;
    font-weight: 400;
    line-height: 1.5;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* BADGE GRATIS (ARREGLO COLOR) */
.course-badge.free, .course-badge.gratis {
    background: #28a745 !important; /* Verde */
    color: white !important;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    display: inline-block;
}

/* SECCIONES (ARREGLO VISIBILIDAD) */
.course-section {
    background: white;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border-left: 5px solid #3c6ca8;
    display: block !important;
}

/* GRID CARACTERÍSTICAS (ARREGLO) */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.feature-item {
    background: #f8f9fa;
    padding: 15px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-left: 4px solid #28a745; /* Verde */
    border-right: 1px solid #eee;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.feature-icon {
    color: #28a745;
    font-weight: bold;
    font-size: 1.2rem;
}

.feature-text {
    color: #333;
    font-weight: 500;
    font-size: 1rem;
}

/* GRID INFORMACIÓN (ARREGLO) */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.info-item {
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.info-item:hover {
    transform: translateY(-5px);
    border-color: #3c6ca8;
}

.info-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 10px;
}

.info-item h3 {
    color: #666;
    font-size: 0.85rem;
    text-transform: uppercase;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.info-item p {
    color: #333;
    font-weight: 700;
    font-size: 1.1rem;
    margin: 0;
}

/* FORMULARIO DESPLEGABLE (ANIMACIÓN) */
.registro-slide-container {
    overflow: hidden;
    transition: max-height 0.5s ease-in-out, opacity 0.5s ease-in-out;
    max-height: 0;
    opacity: 0;
}

.registro-slide-container.open {
    max-height: 1200px; /* Suficiente para que quepa todo */
    opacity: 1;
    margin-top: 20px;
}

.registro-box {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    border: 1px solid #d9e4f5;
    text-align: left;
}

/* CTA FINAL */
.cta-section-final {
    background: linear-gradient(135deg, #eef3fb 0%, #ffffff 100%);
    text-align: center;
    padding: 50px 20px;
    border-radius: 20px;
    margin-top: 40px;
    border: 1px solid #d9e4f5;
    border-left: none;
}

.cta-content h2 {
    color: #3c6ca8;
    font-size: 2rem;
    margin-bottom: 10px;
}

/* FORM INPUTS */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #444;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    box-sizing: border-box; /* CRÍTICO */
}

.form-group input:focus {
    border-color: #3c6ca8;
    outline: none;
    box-shadow: 0 0 0 3px rgba(60, 108, 168, 0.1);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8f9fa;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.checkbox-group input {
    width: 20px;
    height: 20px;
    margin: 0;
}

/* Mensajes */
.form-message {
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
    text-align: center;
    font-weight: 500;
}

.form-message.error {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
}

/* Botón Full Width */
.full-width {
    width: 100%;
    display: block;
}

/* GARANTÍA */
.cta-guarantee {
    margin-top: 25px;
    font-size: 0.9rem;
    color: #888;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}
/* ========================================
   ESTILOS FINALES
   ======================================== */

/* RESEÑAS */
.reviews-section { border-top: 1px solid #eee; padding-top: 20px; margin-top: 30px; }
.reviews-summary { display: flex; justify-content: space-between; background: #fff; padding: 15px; border: 1px solid #eee; border-radius: 10px; cursor: pointer; }
.reviews-list { display: none; margin-top: 15px; animation: slideDown 0.3s ease; }
.review-card { background: #f9f9f9; padding: 15px; border-radius: 10px; margin-bottom: 10px; border-left: 3px solid #ffc107; }
.toggle-icon.rotate { transform: rotate(180deg); }

/* MÓVIL */
@media (max-width: 768px) {
    .container { padding: 20px 15px !important; }
    .hero { padding: 4rem 1rem !important; }
    .course-header { padding: 30px 15px !important; }
    .features-grid, .info-grid { grid-template-columns: 1fr !important; gap: 10px; }

    /* En móvil el section-card no es una caja visual — se aplana */
    .section-card {
        background: transparent !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* Quitar el padding lateral duplicado de about-section */
    .about-section {
        padding: 40px 16px !important;
    }

    /* Palabras largas en español */
    h1, h2, h3, h4, p {
        overflow-wrap: break-word;
        word-break: break-word;
    }

    /* Forzar ancho máximo al 100% del viewport */
    .about-content,
    .courses-grid,
    .consultas-grid,
    .blog-grid {
        max-width: 100% !important;
        box-sizing: border-box;
    }

    /* Dar margen superior al grid dentro de section-card */
    .section-card .consultas-grid,
    .section-card .courses-grid {
        margin-top: 1rem !important;
    }
}

/* FORMULARIO */
.registro-slide-container { max-height: 0; opacity: 0; overflow: hidden; transition: all 0.5s ease; }
.registro-slide-container.open { max-height: 1000px; opacity: 1; margin-top: 20px; }
.full-width { width: 100%; padding: 12px; margin-bottom: 10px; border: 1px solid #ddd; border-radius: 8px; }
/* ========================================
   GRUPO SEVILLA — CERTIFICACIÓN INSTITUCIONAL
   (estilos globales — cargado en todas las páginas)
   ======================================== */

.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;
}
.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;
}
.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;
}
.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;
}

/* ========================================
   FILTRO DE EQUIPO (/nosotros)
   ======================================== */
.team-filter {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    margin: -0.5rem 0 2rem;
    flex-wrap: wrap;
}
.team-filter-btn {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.45rem 1.3rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
}
.team-filter-btn.active,
.team-filter-btn:hover {
    background: rgba(60, 108, 168,0.12);
    border-color: #3c6ca8;
    color: #3c6ca8;
}

/* ========================================
   FRANJA DE EQUIPO (home)
   ======================================== */
.team-strip-section {
    padding: 32px 0 56px;
    background: linear-gradient(135deg, #f3f6fb 0%, #eef3fb 100%);
}
.team-strip-kicker {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #3c6ca8;
    margin-bottom: 14px;
}
.team-strip {
    display: flex;
    align-items: center;
    gap: 36px;
    background: white;
    border-radius: 22px;
    padding: 44px 48px;
    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);
}
.team-strip-person {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    width: 130px;
    flex-shrink: 0;
    transition: transform .2s;
}
.team-strip-person:hover { transform: translateY(-3px); }
.team-strip-photo {
    width: 96px; height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #c9d6ee;
    margin-bottom: 12px;
    background: #1a2a4a;
}
.team-strip-founder .team-strip-photo { border-color: #3c6ca8; }
.team-strip-name {
    font-size: 0.92rem;
    font-weight: 700;
    color: #1a2a4a;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
.team-strip-role {
    font-size: 0.78rem;
    color: #888;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    margin-top: 2px;
}
.team-strip-divider {
    width: 1px; align-self: stretch;
    background: rgba(0,0,0,0.08);
    flex-shrink: 0;
}
.team-strip-carousel-wrap {
    flex: 1;
    overflow: hidden;
    min-width: 0;
}
.team-strip-carousel {
    display: flex;
    gap: 36px;
    will-change: transform;
}

@media (max-width: 768px) {
    .team-strip { padding: 28px 20px; gap: 20px; }
    .team-strip-photo { width: 68px; height: 68px; border-width: 3px; margin-bottom: 8px; }
    .team-strip-name { font-size: 0.8rem; }
    .team-strip-role { font-size: 0.7rem; }
    .team-strip-person { width: 96px; }
    .team-strip-carousel { gap: 20px; }
}

/* Logo Sevilla en footer */
.footer-sevilla-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
    margin-bottom: 4px;
}
.footer-sevilla-logo svg {
    flex-shrink: 0;
}
.footer-sevilla-logo-text {
    font-size: 0.7rem;
    color: rgba(201, 214, 238,0.75);
    line-height: 1.4;
    text-align: left;
    max-width: 220px;
}

@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: 6px 10px; gap: 1px; }
    .sevilla-topbar-main { font-size: 0.68rem; }
    .sevilla-topbar-sub { display: none; }
}

@media (max-width: 480px) {
    .sevilla-topbar-main { font-size: 0.63rem; letter-spacing: 0; }
}

/* Footer bottom — layout lado a lado */
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    margin-top: 20px;
}
.footer-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.footer-sevilla-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(201,168,76,0.25);
    border-radius: 12px;
    padding: 10px 16px;
    flex-shrink: 0;
}
.footer-sevilla-badge svg {
    flex-shrink: 0;
}
.footer-sevilla-badge-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 0.7rem;
    color: rgba(201, 214, 238,0.7);
    line-height: 1.4;
}
.footer-sevilla-badge-text strong {
    color: #c9d6ee;
    font-size: 0.75rem;
}
.footer-copyright {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
    text-align: right;
    line-height: 1.5;
    margin: 0;
}
.footer-copyright small {
    font-size: 0.68rem;
    color: rgba(255,255,255,0.35);
}
@media (max-width: 600px) {
    .footer-bottom-row {
        flex-direction: column;
        align-items: flex-start;
    }
    .footer-copyright {
        text-align: left;
    }
}
