/* Diego Ayasca - Antigravity Theme (Light Version) */
:root {
    /* Color Palette - Light & Clean */
    --bg-body: #F9FAFB;
    /* Off-white for body */
    --bg-card: #FFFFFF;
    /* Pure white for cards */
    --primary: #1e293b;
    /* Deep Navy */
    --primary-glow: rgba(30, 41, 59, 0.15);
    /* Navy glow */
    --secondary: #fbbf24;
    /* Gold Accent */
    --text-main: #1e293b;
    /* Navy for main text */
    --text-muted: #64748b;
    /* Slate 500 */
    --border-light: #cbd5e1;
    /* Slate 300 */

    /* Shadow Variables - "Antigravity" Lift */
    --shadow-soft: 0 4px 25px rgba(30, 41, 59, 0.05);
    --shadow-hover: 0 20px 40px rgba(30, 41, 59, 0.08);
    /* Stronger lift */

    --gold: #fbbf24;
    /* Golden Yellow */
    /* Decoration */
    --font-main: 'Outfit', sans-serif;
    --transition: cubic-bezier(0.4, 0, 0.2, 1) 0.4s;
    --section-gap: 8rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    /* Subtle gradient for depth */
    background-image:
        radial-gradient(circle at 0% 0%, rgba(82, 113, 255, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(255, 51, 102, 0.03) 0%, transparent 50%);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.highlight {
    color: var(--gold);
    background: none;
    -webkit-text-fill-color: var(--gold);
    font-weight: 800;
}

.text-primary {
    color: var(--primary);
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 10px 20px rgba(30, 41, 59, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(30, 41, 59, 0.3);
    background: #334155;
    /* Slightly lighter Navy */
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
    box-shadow: 0 10px 20px rgba(30, 41, 59, 0.15);
}

.btn-gold {
    background: var(--gold);
    color: #1e293b;
    /* Navy text on Gold */
    box-shadow: 0 10px 20px rgba(251, 191, 36, 0.2);
}

.btn-gold:hover {
    background: #f59e0b;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(251, 191, 36, 0.3);
}

.btn-outline-light {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    color: white;
}

.shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: skewX(-20deg);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    100% {
        left: 200%;
    }
}

/* Animations */
.hidden-fade {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.show {
    opacity: 1;
    transform: translateY(0);
}

/* Header */
.main-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 2000;
    /* Increased to cover WhatsApp button (z-index 1000) */
    padding: 1.5rem 0;
    background: transparent;
    /* Transparent initially */
    backdrop-filter: none;
    transition: all 0.4s ease;
}

.main-header.scrolled {
    padding: 0.8rem 0;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-nav a {
    font-size: 1.1rem;
    font-weight: 600;
    position: relative;
    color: rgba(255, 255, 255, 0.9);
    /* White text initially */
    opacity: 1;
    transition: color 0.3s ease;
}

.sidebar-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    /* Precise 10px gap */
}

.sidebar-actions .btn {
    margin: 0 !important;
    /* Remove any potential default margins */
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--gold);
    /* Gold on hover */
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    /* Gold underline */
    transition: var(--transition);
}

.main-nav a:hover::after {
    width: 100%;
}

/* Nav Button Specifics to override general nav styles */
.main-nav a.btn {
    color: #1e293b !important;
    /* Force Navy text on Gold button */
    padding: 0.5rem 1.5rem;
    /* Reduced padding to match text height better */
    font-size: 1rem;
    /* Slightly smaller font for button to fit better */
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.main-nav a.btn::after {
    display: none;
    /* Remove underline effect for button */
}

.main-nav a.btn:hover {
    color: #1e293b !important;
    transform: translateY(-3px);
}

/* Mobile Menu Button Adjustments */
@media (max-width: 768px) {
    .main-nav a.btn {
        width: auto;
        /* Let it size naturally or set to 80% if needed */
        justify-content: center;
        margin-top: 1rem;
        padding: 0.8rem 2rem;
        /* Restore standard padding for mobile touch targets */
        font-size: 1.2rem;
    }
}

/* Scrolled Header State */
.main-header.scrolled {
    padding: 0.8rem 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.main-header.scrolled .logo {
    color: #111827;
    /* Dark logo on scroll */
}

.main-header.scrolled .main-nav a {
    color: #1F2937;
    /* Dark text on scroll */
}

.main-header.scrolled .main-nav a:hover,
.main-header.scrolled .main-nav a.active {
    color: var(--secondary);
    /* Gold hover */
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.25rem;
    font-weight: 800;
    color: #FFFFFF;
    /* White logo initially */
    transition: color 0.3s ease;
}

.logo img {
    height: 45px;
    /* Slightly larger for better visibility */
    width: auto;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.logo-default {
    display: block;
    opacity: 1;
}

.logo-scrolled {
    display: none;
    opacity: 0;
}

/* Scrolled Logo Logic */
.main-header.scrolled .logo-default {
    display: none;
    opacity: 0;
}

.main-header.scrolled .logo-scrolled {
    display: block;
    opacity: 1;
}

.main-nav ul {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s;
}

.main-header.scrolled .mobile-toggle {
    color: var(--primary);
}

.mobile-toggle.active {
    color: var(--primary) !important;
    /* Force dark color when open */
}

/* Hero Section (Background Image) */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 130px;
    /* Increased padding to clear header (approx 80px + 50px) */
    /* Fallback dark color */
    background-color: #0f172a;
    background-image: linear-gradient(to right, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.7) 40%, rgba(15, 23, 42, 0.1) 100%), url('../img/banner-inicio-diego-ayasca.png');
    background-size: cover;
    background-position: top center;
    overflow: hidden;
}



.hero-overlay-mobile {
    display: none;
    /* Hidden by default */
}

.hero-container {
    width: 100%;
    position: relative;
    z-index: 2;
}

.hero-content {
    width: 50%;
    /* Left half */
    padding-right: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    color: #FFFFFF;
    /* White text for dark banner */
    margin-bottom: 2.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    /* improved readability */
}

.hero-content h1 span.highlight {
    color: #FFB703;
    /* Gold for hero title */
    background: none;
    -webkit-text-fill-color: #FFB703;
}

span.highlight {
    color: var(--gold);
    /* Gold */
    background: none;
    -webkit-text-fill-color: var(--gold);
}

.hero-content p {
    font-size: 1.25rem;
    color: #F3F4F6;
    /* Light Gray for dark bg */
    margin-bottom: 2.5rem;
    line-height: 1.6;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    /* improved readability */
    max-width: 90%;
}

.hero-btn-group {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.pill-btn {
    border-radius: 50px;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 700;
    transition: all 0.3s ease;
    display: inline-flex;
    /* Ensure flex behavior */
    align-items: center;
    /* Vertically center icon and text */
    justify-content: center;
    gap: 0.8rem;
    /* Space between icon and text */
    white-space: nowrap;
    /* Prevent text wrapping */
    /* Removed color/bg/shadow to allow override */
}

.pill-btn:hover {
    transform: translateY(-2px);
}

.slide-in-bottom {
    animation: slideUp 1s ease-out forwards;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Course Card Lift Fix if needed */
.curso-card:hover {
    transform: translateY(-10px);
}

/* Responsive Hero */
@media (max-width: 900px) {
    .hero-section {
        background-position: 70% center;
        /* Adjust image to keep person visible or ensure text fits */
    }

    .hero-content h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        background-position: center center;
        /* Better centering */
        align-items: center;
        /* Center vertically */
    }

    .hero-overlay-mobile {
        display: none;
        /* Keep hidden to show dark banner */
    }

    .header-content {
        justify-content: space-between;
    }

    /* Mobile Menu Logic */
    .mobile-toggle {
        display: block;
        /* Show hamburger */
        z-index: 2001;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: right 0.4s ease;
        z-index: 2000;
    }

    .main-nav.active {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 2rem;
    }

    .main-nav a {
        color: var(--primary);
        /* Dark text in menu */
        font-size: 1.5rem;
    }

    .hero-content {
        width: 100%;
        padding-right: 0;
        text-align: center;
        align-items: center;
    }

    .pill-btn {
        align-self: center;
    }

    .hero-content h1 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .hero-content p {
        color: #F3F4F6;
        /* Keep light text */
    }

    .hero-btn-group {
        justify-content: center;
        flex-wrap: wrap;
        width: 100%;
    }
}

/* Sections Common */
section {
    padding: var(--section-gap) 0;
}

.cursos-section {
    background-color: #F8FAFC;
    /* Slate-50 background */
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    color: var(--primary);
    /* Navy Titles */
    font-weight: 800;
}

/* Cursos Cards - "Antigravity" Pro Design */
/* Cursos Carousel */
/* Cursos Carousel */
.carousel-wrapper {
    position: relative;
    /* Removed display: flex; to allow absolute buttons */
    /* display: flex; */
    /* align-items: center; */
    padding: 0 1rem;
    max-width: 1300px;
    /* Reduced slightly to allow buttons on sides */
    margin: 0 auto;
}

.carousel-container {
    overflow: hidden;
    width: 100%;
    /* Ensure padding for shadow doesn't get clipped */
    padding-bottom: 5px;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    gap: 2rem;
    padding: 1rem 0.5rem 2rem 0.5rem;
    /* Padding for shadow/hover visibility */
}

/* Card Sizing in Carousel */
.curso-card {
    /* (100% - (GAP * (CARDS_VISIBLE - 1))) / CARDS_VISIBLE */
    /* (100% - (2rem * 2)) / 3 = (100% - 4rem) / 3 */
    width: calc((100% - 4rem) / 3);
    min-width: calc((100% - 4rem) / 3);
    flex-shrink: 0;
}

.carousel-btn {
    background: var(--primary);
    color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    position: absolute;
    /* Floating */
    top: 50%;
    transform: translateY(-50%);
}

.prev-btn {
    left: -20px;
}

.next-btn {
    right: -20px;
}

.carousel-btn:hover {
    background: var(--secondary);
    /* Gold */
    transform: translateY(-50%) scale(1.1);
    /* Keep centered Y */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

.carousel-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.curso-card {
    background: #FFFFFF;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    position: relative;
    height: 100%;
}

.curso-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: rgba(251, 191, 36, 0.4);
}

.card-header {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.card-image {
    width: 100%;
    height: 100%;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.curso-card:hover .card-image img {
    transform: scale(1.08);
    /* Slight zoom on hover */
}

/* Badge Styling */
.card-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--gold);
    color: var(--primary);
    padding: 0.4rem 1rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card-body {
    padding: 1.2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.card-meta {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 500;
    align-items: center;
    flex-wrap: wrap;
}

.card-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.card-meta i {
    color: #94a3b8;
    /* Lighter icon color */
}

.card-desc {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.5;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    /* Limit visible lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer {
    padding: 1rem 1.2rem;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem;
}

.price-tag {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
    white-space: nowrap;
}

.curso-card .btn-block {
    width: auto;
    /* Allow button to size itself or take remaining space if flex settings change */
    flex-grow: 1;
    border-radius: 10px;
    padding: 0.8rem 1.2rem;
    font-size: 0.95rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(30, 41, 59, 0.1);
}

.curso-card .btn-block:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(30, 41, 59, 0.15);
}

/* About Me */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #111827;
    font-weight: 700;
}

.about-text .lead {
    font-size: 1.15rem;
    color: #374151;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 1rem;
}

.stats-row {
    display: flex;
    gap: 2rem;
}

.glass-mini {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    padding: 1.5rem 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.glass-mini:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 600;
}

.image-wrapper {
    position: relative;
}

.glass-border-img {
    border-radius: 20px;
    position: relative;
    z-index: 2;
    border: none;
    box-shadow: var(--shadow-hover);
}


.image-bg-glow {
    display: none;
}

/* Redesigned Pricing Card */
.pricing-card {
    padding: 0;
    /* Remove default padding to allow image full width */
    border: 1px solid var(--border-light);
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
}

.card-header-image {
    height: 180px;
    width: 100%;
    overflow: hidden;
}

.card-header-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.price-body {
    padding: 1.2rem;
    padding-top: 0;
    /* Request: quites el padding top que sea 0 */
    text-align: center;
}

.price-display-large {
    font-size: 29px;
    font-weight: 800;
    color: var(--primary);
    /* Navy */
    margin-bottom: 18px;
    margin-top: 0;
    /* Removing top margin as requested to clear 'padding' */
    line-height: 1;
}

.sidebar-actions {
    display: flex;
    flex-direction: column;
    gap: 18px;
    /* Precise spacing */
    margin-bottom: 18px;
    /* Precise spacing */
}

.uppercase-btn {
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.5px;
    border-radius: 6px;
    padding: 12px;
    /* Reduced padding */
    font-size: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.btn-primary.uppercase-btn {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 10px rgba(30, 30, 50, 0.2);
}

.btn-primary.uppercase-btn:hover {
    background: #111827;
    transform: translateY(-2px);
}

.btn-outline.uppercase-btn {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: #fff;
}

.btn-outline.uppercase-btn:hover {
    background: #f8fafc;
    color: var(--primary);
    transform: translateY(-2px);
}

.features-list-container {
    text-align: left;
    border-top: 1px solid #e2e8f0;
    padding-top: 18px;
    /* Precise spacing */
}

.features-title {
    color: #3b82f6;
    /* Blue Accent */
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 18px;
    /* Precise spacing */
}

.price-features-new {
    list-style: none;
    padding: 0;
    margin: 0;
}

.price-features-new li {
    margin-bottom: 18px;
    /* Precise spacing */
    color: #64748b;
    font-size: 1.1rem;
    /* Larger list text */
    display: flex;
    align-items: center;
    gap: 1rem;
    line-height: 1.4;
    font-weight: 500;
}

.price-features-new li i {
    font-size: 1.4rem;
    /* Larger icons */
    color: #3b82f6;
    min-width: 1.8rem;
    text-align: center;
    /* Match title accent */
}

.guarantee-text {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-top: 1rem;
    display: none;
    /* Hide old Guarantee text if present */
}

/* Responsive Carousel */
@media (max-width: 1100px) {
    .curso-card {
        /* (100% - 2rem) / 2 */
        width: calc((100% - 2rem) / 2);
        min-width: calc((100% - 2rem) / 2);
    }
}

@media (max-width: 700px) {
    .curso-card {
        width: 100%;
        min-width: 100%;
        /* 1 card */
    }

    .carousel-wrapper {
        padding: 0 2rem;
        /* Give space for buttons */
        gap: 0;
    }

    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
        /* Position adjustment for mobile */
    }

    .prev-btn {
        left: 0;
    }

    .next-btn {
        right: 0;
    }

    /* Stack footer items on mobile */
    .card-footer {
        flex-direction: column-reverse;
        gap: 1rem;
        text-align: center;
    }

    .curso-card .btn-block {
        width: 100%;
        margin-top: 5px;
    }

    .price-tag {
        font-size: 1.6rem;
        /* Slightly larger for emphasis */
    }
}

.contact-wrapper {
    max-width: 100%;
    margin: 0 auto;
}

/* Glass Panel -> Dark Panel override for Contact */
/* Glass Panel -> Dark Panel override for Contact */
/* REMOVED CARD STYLING TO MAKE IT FULL SECTION */
.contact-section {
    background: #111827;
}

#contacto .glass-panel {
    background: transparent;
    border: none;
    padding: 0;
    box-shadow: none;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    /* Info smaller, Form wider or equal */
    gap: 4rem;
    align-items: center;
}

/* Left Column: Info */
.contact-info {
    color: white;
}

.contact-subtitle {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-transform: uppercase;
    color: #fff;
}

.contact-desc {
    font-size: 1rem;
    color: #9ca3af;
    /* Gray-400 */
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.contact-details {
    margin-bottom: 2.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
}

.icon-box {
    width: 50px;
    height: 50px;
    background: rgba(251, 191, 36, 0.1);
    color: var(--gold);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
}

.info-box .label {
    display: block;
    font-size: 0.8rem;
    color: #6b7280;
    /* Gray-500 */
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 2px;
}

.info-box .value {
    font-size: 1.1rem;
    color: #f3f4f6;
    font-weight: 500;
}

.social-connect {
    display: flex;
    gap: 1rem;
}

.social-connect a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #1f2937;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s;
}

.social-connect a:hover {
    background: var(--gold);
    color: #111;
    transform: translateY(-3px);
}

/* Right Column: Form */
.contact-form-wrapper {
    background: transparent;
    /* Or a darker shade if needed */
}

.form-group {
    margin-bottom: 1.5rem;
}

/* Input Styles for Dark Theme */
#contacto input,
#contacto textarea {
    width: 100%;
    /* Force full width */
    box-sizing: border-box;
    /* Ensure padding doesn't affect width */
    background: transparent;
    /* Clean transparent look */
    border: 1px solid #374151;
    /* Gray-700 */
    color: white;
    padding: 1rem 1.2rem;
    border-radius: 0;
    border: 1px solid #374151;
    border-radius: 8px;
    /* Slight radius */
}

#contacto input:focus,
#contacto textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.1);
    background: #1f2937;
}

#contacto ::placeholder {
    color: #6b7280;
}

.btn-block {
    width: 100%;
}

/* Responsive Contact */
@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-info {
        text-align: center;
    }

    .contact-item {
        justify-content: center;
        text-align: left;
        /* Keep text aligned left relative to icon */
    }

    .contact-details {
        display: inline-block;
        text-align: left;
    }

    .social-connect {
        justify-content: center;
    }
}

/* Footer */
.main-footer {
    border-top: 1px solid var(--border-light);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
    background: #FFFFFF;
}

.footer-info h3 {
    color: #111827;
}

.footer-info p {
    color: var(--text-muted);
}

.social-links a {
    color: var(--text-muted);
}

.social-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid var(--border-light);
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .image-wrapper {
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .main-nav {
        background: rgba(255, 255, 255, 0.98);
        border-left: 1px solid var(--border-light);
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.05);
    }

    .mobile-toggle {
        display: block;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

/* ---------------------------------------------------- */
/* COURSE DETAIL PAGE STYLES */
/* ---------------------------------------------------- */

/* Course Hero */
.course-hero {
    min-height: auto;
    /* Reduced from 90vh */
    padding-bottom: 4rem;
    /* Terminate shortly after text */
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 100px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}


.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(15, 23, 42, 0.95) 30%, rgba(15, 23, 42, 0.7) 100%);
    z-index: 1;
}

.course-hero-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    /* More space for text */
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
    /* Above overlay */
    width: 100%;
}

.course-hero-content {
    color: white;
}

.badge-accent {
    display: inline-block;
    background: var(--gold);
    color: #111;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.course-hero-content h1 {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 1rem;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #cbd5e1;
    margin-bottom: 2rem;
    font-weight: 400;
}

.hero-benefits-list {
    margin-bottom: 2.5rem;
}

.hero-benefits-list li {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.text-gold {
    color: var(--gold);
}

.text-green {
    color: #10b981;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

/* Course Info Bar */
.course-info-bar {
    background: white;
    padding: 2.5rem 0;
    border-bottom: 1px solid var(--border-light);
    position: relative;
    z-index: 10;
    margin-top: -4rem;
    /* Overlap hero */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    border-radius: 0 0 0 0;
    /* Full width */
    max-width: 900px;
    /* Limit width of info bar content to avoid hitting the card if overlaps too much, or just keep it full width but grid adjust */
    margin-left: 0;
    padding-right: 2rem;
    /* Add padding to right to avoid text hitting the overlapping card if screen is tight */
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Changed to 3 columns as Nivel is removed */
    gap: 2rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.info-item i {
    font-size: 2rem;
    color: var(--primary);
    background: rgba(82, 113, 255, 0.1);
    padding: 1rem;
    border-radius: 50%;
}

.info-item .label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
}

.info-item .value {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
}

/* Layout Details */
.section-padding {
    padding: 5rem 0;
}

.details-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    /* 2/3 Content, 1/3 Sidebar */
    gap: 4rem;
}

.content-block {
    margin-bottom: 4rem;
}

.content-block h2,
.content-block h3 {
    margin-bottom: 1.5rem;
    color: #111827;
    font-size: 2rem;
}

.highlight-text {
    position: relative;
    z-index: 1;
}

.highlight-text::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(255, 183, 3, 0.4);
    /* Gold transparent */
    z-index: -1;
}

.rich-text p {
    font-size: 1.1rem;
    color: #4b5563;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* Learning Grid */
.learning-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.learning-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.learning-item i {
    color: var(--gold);
    margin-top: 5px;
}

/* Accordion */
.accordion-wrapper {
    border: 1px solid var(--border-light);
    border-radius: 12px;
    overflow: hidden;
}

.accordion-item {
    border-bottom: 1px solid var(--border-light);
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-header {
    width: 100%;
    background: #fdfdfd;
    border: none;
    padding: 1.5rem;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.3s;
    color: #1f2937;
}

.accordion-header:hover {
    background: #f3f4f6;
}

.accordion-header i {
    transition: transform 0.3s;
}

.accordion-header.active i {
    transform: rotate(180deg);
}

.accordion-header.active {
    background: #eff6ff;
    color: var(--primary);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: white;
}

.accordion-content ul {
    list-style: none;
    padding: 1.5rem;
}

.accordion-content li {
    margin-bottom: 0.8rem;
    padding-left: 1rem;
    position: relative;
    color: #4b5563;
}

.accordion-content p {
    padding: 1.5rem;
    color: #4b5563;
}

/* Sticky Sidebar moved to end of file for consolidation */

@media (max-width: 992px) {
    .details-sidebar {
        margin-top: 0;
        height: auto;
    }

    .sticky-sidebar {
        position: static;
    }
}

.pricing-card {
    padding: 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    /* Stronger shadow for floating effect */
    background: white;
    border: none;
    /* Removed border in hero for cleaner look */
    margin-bottom: 0;
    /* Remove bottom margin in hero */
    max-width: 340px;
    /* Reduced width as requested */
    margin-left: auto;
    /* Align to right if container is wider */
}

.price-header {
    background: #0f172a;
    padding: 2rem;
    text-align: center;
    color: white;
}

.price-label {
    background: var(--gold);
    color: #111;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.price-container {
    margin-top: 1rem;
}

.old-price {
    text-decoration: line-through;
    color: #94a3b8;
    font-size: 1.2rem;
    margin-right: 1rem;
}

.current-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
}

.price-body {
    padding: 2rem;
}

.price-features li {
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: #4b5563;
}

.guarantee-text {
    text-align: center;
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 1rem;
}

.instructor-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    text-align: center;
}

.instructor-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 3px solid white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Instructor Section Full */
.instructor-section {
    background: #f8fafc;
    padding: 5rem 0;
}

.instructor-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    /* Fixed width for image col, rest for text */
    gap: 4rem;
    align-items: center;
    max-width: 1000px;
    /* Constrain width as requested */
    margin: 0 auto;
    text-align: left;
}

.inst-info-col {
    text-align: left;
}

.inst-image-col img {
    border-radius: 20px;
    box-shadow: var(--shadow-hover);
}

.inst-stats {
    display: flex;
    gap: 3rem;
    margin-top: 2rem;
}

.inst-stats strong {
    display: block;
    font-size: 2rem;
    color: var(--primary);
}

/* CTA Section */
.cta-section {
    background: #0f172a;
    color: white;
    padding: 6rem 0;
    text-align: center;
}

.cta-section h2 {
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.cta-section p {
    margin-bottom: 2.5rem;
    font-size: 1.25rem;
    color: #cbd5e1;
}

.mt-2 {
    margin-top: 2rem;
}

/* Responsive Course */
@media (max-width: 900px) {

    .course-hero-container,
    .details-grid,
    .info-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .instructor-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .inst-stats {
        justify-content: center;
    }

    .details-sidebar {
        margin-top: 0;
        /* Reset negative margin on mobile */
        padding-top: 2rem;
    }

    .course-info-bar {
        margin-top: 0;
        padding: 2rem 1rem;
    }

    .info-grid {
        grid-template-columns: 1fr 1fr;
    }

    .course-hero {
        padding-top: 100px;
        text-align: center;
    }

    .hero-actions {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-benefits-list li {
        justify-content: center;
    }

    .details-sidebar {
        order: -1;
        /* Show pricing first on mobile? Or maybe keeping it below is better for UX if there is a sticky CTA button bottom. Let's keep distinct order, maybe pricing first is good or after intro. Let's keep default (below content) for now, but adding a fixed bottom bar is common pro tactic. User didn't ask for it specifically. */
    }
}

/* =========================================
   Footer Clean Style (Refactor)
   ========================================= */
/* Clean Centered Footer */
.main-footer-clean {
    background-color: #050b14;
    /* Deep dark blue/black - updated for contrast */
    color: #fff;
    padding: 5rem 0 3rem;
    position: relative;
    overflow: hidden;
}

.footer-centered-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2.5rem;
}

.footer-logo-clean h3 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: #fff;
    text-transform: uppercase;
    margin: 0;
}

.footer-social-clean {
    display: flex;
    gap: 2rem;
    margin-bottom: 1rem;
}

.footer-social-clean a {
    color: #fff;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.footer-social-clean a:hover {
    color: var(--gold);
    transform: translateY(-3px);
    opacity: 1;
}

.footer-legal-clean {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-legal-clean a {
    color: #94a3b8;
    font-size: 0.95rem;
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}

.footer-legal-clean a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-copyright-clean {
    margin-top: 2rem;
    color: #64748b;
    font-size: 0.85rem;
    max-width: 800px;
}

.footer-copyright-clean p {
    margin-bottom: 1rem;
}

.legal-text-clean {
    font-size: 0.7rem;
    line-height: 1.5;
    opacity: 0.6;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .footer-social-clean {
        gap: 1.5rem;
    }

    .footer-legal-clean {
        flex-direction: column;
        gap: 1rem;
    }
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

/* =========================================
   Instructor Section Refactor (Moved)
   ========================================= */
#instructor {
    margin-top: 3rem;
}

.instructor-card-inner {
    border-top: 1px solid var(--border-light);
    padding-top: 2rem;
}

.inst-inner-grid {
    display: flex;
    gap: 2rem;
    align-items: start;
}

.inst-img-wrapper {
    flex-shrink: 0;
    width: 150px;
    height: 150px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-soft);
}

.inst-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.inst-content-wrapper h4 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
    color: var(--primary);
}

.inst-title {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.inst-bio {
    font-size: 0.95rem;
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 1.2rem;
}

.inst-stats-mini {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.inst-stats-mini span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 6px;
}

.inst-stats-mini i {
    color: var(--gold);
}

.inst-socials {
    display: flex;
    gap: 1rem;
}

.inst-socials a {
    color: var(--text-muted);
    transition: color 0.3s;
}

.inst-socials a:hover {
    color: var(--primary);
}

/* Responsive Footer */
@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .contact-info p,
    .footer-links a {
        justify-content: center;
    }

    .social-icons-footer {
        justify-content: center;
    }

    .inst-inner-grid {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .inst-img-wrapper {
        margin-bottom: 1rem;
    }

    .inst-stats-mini {
        justify-content: center;
    }

    .inst-socials {
        justify-content: center;
    }
}

/* =========================================
   Info Bar Inline (Refactor)
   ========================================= */
.info-inline-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-light);
    flex-wrap: wrap;
}

.info-inline-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    /* Distribute space */
    min-width: 200px;
}

.icon-circle {
    width: 60px;
    height: 60px;
    background-color: #F3F4F6;
    /* Light gray/blue base */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    flex-shrink: 0;
}

/* Specific colors if desired - REVERTED to Theme Defaults as requested */
.icon-circle {
    background-color: #F3F4F6;
    /* Light Gray */
    color: var(--primary);
    /* Navy */
}

.info-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.info-val {
    display: block;
    font-size: 1rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
}

@media (max-width: 600px) {
    .info-inline-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }

    .info-inline-item {
        width: 100%;
    }
}

/* Course Details Sticky Layout */
.details-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 3rem;
    align-items: stretch;
    position: relative;
}

.details-sidebar {
    position: relative;
    z-index: 30;
    margin-top: -550px;
    /* Overlap hero */
    margin-bottom: -550px;
    /* Compensate layout */
    height: calc(100% + 550px);
    /* Extend track length for sticky */
    pointer-events: none;
    /* Allow clicks to pass through transparent part */
}

.details-sidebar>* {
    pointer-events: auto;
    /* Restore events for content */
}

.sticky-sidebar {
    position: sticky;
    top: 80px;
    /* Adjust based on header height (~80-90px) + gap */
    transition: top 0.3s ease;
    z-index: 10;
}

@media (max-width: 992px) {
    .details-grid {
        grid-template-columns: 1fr;
    }

    .sticky-sidebar {
        position: static;
        margin-top: 2rem;
    }
}

/* Custom WhatsApp Button Design - Course Page */
.btn-whatsapp-custom {
    display: flex;
    justify-content: center;
    /* Center content mainly */
    align-items: center;
    border: 2px solid #00BB2D;
    /* Custom Green requested */
    border-radius: 12px;
    /* Reduced radius as requested */
    padding: 0.5rem 1rem;
    background: #FFFFFF;
    text-decoration: none;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 0;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    gap: 15px;
    /* Space between text group and icon */
}

.whatsapp-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Center text stack */
    line-height: 1;
}

.whatsapp-small {
    font-size: 1rem;
    /* Slightly larger */
    color: #00BB2D;
    font-weight: 500;
    margin-bottom: 0;
    letter-spacing: -0.3px;
}

.whatsapp-large {
    font-size: 1.6rem;
    color: #00BB2D;
    font-weight: 900;
    letter-spacing: 0px;
    margin-top: 2px;
}

.whatsapp-icon {
    font-size: 2.5rem;
    color: #00BB2D;
    margin-left: 0;
    /* Handled by gap */
}

/* Hover State */
.btn-whatsapp-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 187, 45, 0.25);
    background-color: #fff;
    border-color: #00A026;
}

.btn-whatsapp-custom:active {
    transform: translateY(0);
}

.features-list-container {
    padding-top: 0 !important;
    margin-top: 10px;
    /* Small gap separate from buttons */
}

.features-list-container h4 {
    margin-top: 0;
}