@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

:root {
    --primary: #FF5A00;
    --primary-dark: #D94D00;
    --primary-light: #FFB085;
    --secondary: #13263A; /* Azul Oscuro Principal */
    --secondary-dark: #1D3148; /* Azul CTA Final */
    --accent-peach: #FFF4EC;
    --accent-beige: #F7F4EF;
    --accent-beige-soft: #F8F6F2;
    --border-soft: #E9E2D8;
    --text: #13263A;
    --text-light: #5A6A7A;
    --white: #FFFFFF;
    --shadow: 0 10px 15px -3px rgba(19, 38, 58, 0.05), 0 4px 6px -2px rgba(19, 38, 58, 0.02);
    --shadow-lg: 0 20px 25px -5px rgba(19, 38, 58, 0.08), 0 10px 10px -5px rgba(19, 38, 58, 0.04);
    --shadow-primary: 0 10px 30px -5px rgba(255, 90, 0, 0.3);
    --radius: 12px;
    --radius-lg: 30px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 90, 0, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(255, 90, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 90, 0, 0);
    }
}

/* Top Bar */
.top-bar {
    background: var(--primary);
    color: var(--white);
    padding: 0.5rem 5%;
    font-size: 0.85rem;
    position: relative;
    width: 100%;
    z-index: 1001;
}

.top-bar-content {
    display: flex;
    justify-content: center; /* Centrado como en el ejemplo */
    align-items: center;
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
}

.top-social {
    position: absolute;
    right: 0;
    display: flex;
    gap: 1rem;
}

.top-social a {
    color: var(--white);
    transition: var(--transition);
}

.top-social a:hover {
    opacity: 0.8;
}

/* Navbar */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10%;
    height: 100px;
    position: sticky;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

nav.scrolled {
    height: 70px;
    box-shadow: var(--shadow);
}

.logo {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 10px 0;
}

.logo img {
    height: 100%;
    max-height: 140px; /* Tamaño máximo cuando no hay scroll */
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

nav.scrolled .logo img {
    max-height: 50px;
}

nav.scrolled .btn {
    padding: 0.4rem 1.4rem;
    font-size: 0.85rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary);
}

.btn {
    padding: 0.4rem 1.4rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 0.85rem;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-login {
    background: transparent;
    color: var(--secondary);
    padding: 0.4rem 1.4rem;
    font-size: 0.85rem;
    border: 1.5px solid var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.btn-login:hover {
    background: #fff5f0;
    border-color: var(--primary);
    color: var(--primary);
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: var(--shadow-primary);
    position: relative;
    overflow: hidden;
}

.btn-cta {
    animation: pulse 2s infinite;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-cta {
    font-weight: 700;
    padding: 0.8rem 2.5rem;
    font-size: 1.1rem;
}

/* Hero Section */
.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    padding: 4rem 5%;
    background: linear-gradient(135deg, var(--accent-beige) 0%, #F2EEE8 100%);
    gap: 4rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 90, 0, 0.04) 0%, transparent 70%);
    top: -200px;
    right: -100px;
    border-radius: 50%;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(19, 38, 58, 0.03) 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
    border-radius: 50%;
    z-index: 0;
}

.hero-content {
    flex: 1.2;
    max-width: 650px;
    text-align: center; /* Centramos para un botÃ³n Ãºnico elegante */
}

@media (max-width: 992px) {
    .hero-content {
        text-align: center;
    }
}

.hero-badge {
    background: #fff5f0;
    color: var(--primary);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 1.5rem;
    border: 1px solid var(--primary-light);
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--secondary); /* Azul oscuro para autoridad */
    font-weight: 800;
}

.hero-content h1 span {
    color: var(--primary);
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    line-height: 1.6;
    text-align: center;
}

@media (max-width: 992px) {
    .hero-content p {
        text-align: center;
    }
}

.cta-group {
    display: flex;
    justify-content: center; /* Centrado bajo el parrafo */
    align-items: center;
    margin-top: 1rem;
}

.btn-outline-white {
    background: transparent;
    border: 1.5px solid var(--primary);
    color: var(--primary);
    padding: 0.8rem 2.2rem;
}

.btn-outline-white:hover {
    background: rgba(255, 90, 0, 0.05);
    transform: translateY(-2px);
}

.hero-image-premium {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-image-premium img {
    width: 100%;
    max-width: 550px;
    border-radius: 30px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.1);
    z-index: 1;
}

.hero-floating-card {
    position: absolute;
    bottom: 40px;
    left: -20px;
    background: white;
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 2;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero-floating-card i {
    font-size: 2rem;
    color: #ff9500;
}

.hero-floating-card strong {
    display: block;
    font-size: 1rem;
    color: var(--secondary);
}

.hero-floating-card span {
    font-size: 0.8rem;
    color: var(--text-light);
}

@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        padding-top: 120px;
        text-align: center;
        gap: 3rem;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .hero-floating-card {
        left: 50%;
        transform: translateX(-50%);
        bottom: 20px;
        padding: 0.7rem 1.2rem;
        border-radius: 12px;
        min-width: 210px;
        box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    }
    .hero-floating-card i {
        font-size: 1.2rem;
    }
    .hero-floating-card strong {
        font-size: 0.8rem;
    }
    .hero-floating-card span {
        font-size: 0.65rem;
    }
}

/* Comprehensive Course Block */
.course-block {
    padding: 60px 5%;
    background: linear-gradient(to bottom, var(--white), var(--background));
}

/* Perks Section */
.perks-section {
    padding: 100px 5%;
    background: var(--white);
    text-align: center;
    border-bottom: 1px solid var(--border-soft);
    position: relative;
}

.perks-section::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: #F1E8DD;
    opacity: 0.3;
    filter: blur(80px);
    bottom: -50px;
    right: 5%;
    border-radius: 50%;
    z-index: 0;
}

.perks-section .container {
    position: relative;
    z-index: 1;
}

.perks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 3rem auto 0;
}

.perk-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
    background: #fff9f5;
}

.perk-item i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    display: block;
}

.perk-item h4 {
    font-size: 1.1rem;
    color: var(--secondary);
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.perk-item p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* Credibility Section */
.credibility-section {
    padding: 100px 5%;
    background: var(--accent-peach);
    text-align: center;
    border-top: 1px solid var(--border-soft);
}

.credibility-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 3rem;
    margin-top: 3rem;
}

.cred-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.cred-item span {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}

.cred-item p {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Final CTA */
.final-cta-section {
    padding: 120px 5%;
    background: linear-gradient(135deg, var(--secondary-dark) 0%, #243B55 100%);
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.final-cta-section::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 90, 0, 0.1) 0%, transparent 70%);
    top: -200px;
    right: -100px;
    border-radius: 50%;
}

.final-cta-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.final-cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.final-cta-content p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2.5rem;
}

.final-cta-section .btn:hover {
    background: var(--primary) !important;
    color: var(--white) !important;
    border-color: var(--primary) !important;
}

.course-block {
    padding: 100px 5%;
    background: var(--accent-beige-soft);
}

.courses-flex-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.5rem;
    max-width: 1400px;
    margin: 3rem auto 0;
    padding: 0 1rem;
}

.course-card-premium {
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    width: 310px; /* 15% más grande aprox */
    min-height: 480px;
    text-align: left;
}

.course-card-premium:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.12);
    border-color: var(--primary);
}

.thumb-wrapper {
    position: relative;
    height: 190px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.thumb-wrapper i {
    font-size: 3.5rem;
    color: #cbd5e1;
}

.thumb-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(19, 38, 58, 0.5), transparent);
}

.course-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.course-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.course-desc {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 2rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.mockup-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.mockup-card i {
    font-size: 3rem;
    color: var(--primary-light);
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

@media (max-width: 1200px) {
    .mockup-card {
        flex: 0 1 calc(30% - 1rem);
    }
}

@media (max-width: 992px) {
    .mockup-card {
        flex: 0 1 calc(45% - 1rem);
    }
}

@media (max-width: 600px) {
    .mockup-card {
        flex: 0 1 100%;
    }
}

.course-main {
    flex: 1.5;
}

.course-header-branding h2 {
    font-size: 3.5rem;
    color: var(--secondary);
    margin-bottom: 0.5rem;
    line-height: 1.1;
}

.course-tagline {
    font-size: 1.3rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 2rem;
}

.course-perks {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.perk {
    background: var(--white);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid var(--background);
}

.perk i { color: var(--primary); }

.course-description-full {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    max-width: 700px;
    line-height: 1.8;
}

.bonuses-box {
    background: var(--surface);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    border: 2px dashed var(--primary-light);
    position: relative;
}

.bonuses-box h4 {
    color: var(--primary);
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.bonus-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.bonus-list li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.95rem;
    font-weight: 500;
}

.bonus-list li i { color: var(--primary); }

/* Integrated Mini Program */
.course-program-integrated {
    margin-top: 3.5rem;
}

.course-program-integrated h4, 
.course-tools-integrated h4 {
    font-size: 1.4rem;
    color: var(--secondary);
    margin-bottom: 2rem;
    text-align: center;
}

.grid-mini {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
}

.card-mini {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--background);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: var(--transition);
}

.card-mini:hover {
    transform: translateY(-5px);
    border-color: var(--primary-light);
}

.icon-small {
    width: 45px;
    height: 45px;
    background: var(--primary-light);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.card-mini:nth-child(2) .icon-small { background: var(--secondary); }
.card-mini:nth-child(3) .icon-small { background: var(--accent-orange); }
.card-mini:nth-child(4) .icon-small { background: var(--accent-blue); }

.card-mini h5 {
    font-size: 0.95rem;
    font-weight: 700;
}

/* Integrated Tools List */
.course-tools-integrated {
    margin-top: 3.5rem;
    padding-top: 3rem;
    border-top: 1px solid var(--background);
}

.course-tools-integrated h4 {
    font-size: 1.4rem;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.mini-tool-desc {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.resource-grid-mini {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.8rem;
}

.resource-tag {
    background: var(--surface);
    padding: 0.7rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    border: 1px solid var(--primary-light);
    transition: var(--transition);
}

.resource-tag:hover {
    background: var(--white);
    transform: translateX(5px);
    box-shadow: var(--shadow);
}

.resource-tag i {
    color: var(--primary);
    font-size: 1rem;
}

/* Pricing Card */
.course-pricing-card {
    flex: 1;
    background: var(--white);
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    text-align: center;
    border: 1px solid var(--primary-light);
    position: sticky;
    top: 100px;
}

.pricing-badge {
    background: var(--accent-yellow);
    color: var(--text);
    display: inline-block;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.course-pricing-card h3 {
    margin-bottom: 1.5rem;
    color: var(--secondary);
}

.pricing-visual img {
    width: 100%;
    border-radius: var(--radius);
    margin-bottom: 2rem;
}

.price-box {
    margin-bottom: 0.5rem;
}

.price-box .currency {
    font-size: 1.5rem;
    font-weight: 600;
    vertical-align: top;
    color: var(--text-light);
    margin-right: 0.2rem;
}

.price-box .amount {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary);
}

.price-note {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.full-width {
    width: 100%;
    margin-bottom: 1.5rem;
}

.payment-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-light);
}

.payment-trust i { font-size: 1.2rem; }

@media (max-width: 992px) {
    .course-container {
        flex-direction: column;
    }
    .bonus-list {
        grid-template-columns: 1fr;
    }
    .course-pricing-card {
        position: static;
        width: 100%;
        padding: 2.5rem 1.5rem;
    }
    .course-header-branding h2 {
        font-size: 2.2rem;
    }
    .price-box .amount {
        font-size: 2.5rem;
    }
}

/* Sections General */
section {
    padding: 100px 5%;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-title p {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Modules Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(253, 75, 127, 0.1);
}

.card:nth-child(even) {
    background: var(--surface);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.card .icon {
    width: 60px;
    height: 60px;
    background: var(--primary-light);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.card:nth-child(2) .icon { background: var(--secondary); }
.card:nth-child(3) .icon { background: var(--accent-orange); }
.card:nth-child(4) .icon { background: var(--accent-blue); }

.card h3 {
    margin-bottom: 1rem;
}

/* Resources Section */
.resources {
    background: var(--surface);
}

.resource-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.resource-item {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 1rem;
    border-left: 5px solid var(--primary);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.resource-item:hover {
    transform: scale(1.03);
    background: var(--surface);
}

.resource-item:nth-child(odd) {
    border-left-color: var(--secondary);
}

.resource-item i {
    color: var(--primary);
    font-size: 1.2rem;
}

/* Pricing Section */
.pricing {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    text-align: center;
}

.pricing-card {
    background: var(--white);
    color: var(--text);
    max-width: 400px;
    margin: 0 auto;
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.price {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.pricing-card ul {
    list-style: none;
    text-align: left;
    margin-bottom: 2rem;
}

.pricing-card ul li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    nav {
        height: 75px; /* MÃƒÆ’Ã‚Â¡s compacto aÃƒÆ’Ã‚Âºn */
        padding: 0 4%;
    }

    .logo img {
        height: 55px; /* Logo mÃƒÆ’Ã‚Â¡s pequeÃƒÆ’Ã‚Â±o */
    }

    nav .btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    .nav-links {
        display: none;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        height: auto;
        padding: 100px 5% 40px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 0.95rem;
    }

    .hero-image {
        margin-top: 2rem;
        order: -1;
    }

    .hero-image img {
        width: 100%;
        max-width: 350px;
    }

    .cta-group {
        justify-content: center;
        gap: 1.5rem;
    }

    .btn {
        padding: 0.7rem 1.3rem;
        font-size: 0.9rem;
    }

    .btn-primary {
        padding: 0.9rem 1.8rem;
        font-size: 0.95rem;
    }

    /* Perks mÃƒÆ’Ã‚Â¡s pequeÃƒÆ’Ã‚Â±os y eficientes */
    @media (max-width: 768px) {
    
    
    
    
    .header-button-group button {
        width: 100%;
        margin: 0 !important;
        justify-content: center;
        padding: 0.6rem 1rem !important; /* MÃƒÂ¡s fino */
        font-size: 0.85rem !important; /* MÃƒÂ¡s pequeÃƒÂ±o */
        border-radius: 10px !important;
        min-height: 40px; /* TamaÃƒÂ±o consistente pero no gigante */
    }
    
    .section-header-flex h2 {
        font-size: 1.2rem !important; /* TÃƒÂ­tulo mÃƒÂ¡s acorde al mÃƒÂ³vil */
    }
}
    .course-perks {
        gap: 0.8rem;
        justify-content: center;
        margin-bottom: 2rem;
    }

    .perk {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
        border-radius: 30px;
    }
}

/* Booking Block */
/* Booking Block */
.booking-block {
    padding: 60px 5%;
    background: var(--white);
}

.booking-container {
    display: flex;
    align-items: center;
    gap: 5rem;
    max-width: 1250px;
    margin: 0 auto;
    background: #eaffff; /* Celeste corporativo tenue */
    padding: 5rem;
    border-radius: 40px;
    border: 1.5px solid rgba(22, 121, 148, 0.2); /* Borde elegante en azul */
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.05); 
    position: relative;
    overflow: hidden;
}

/* DecoraciÃƒÆ’Ã‚Â³n para mÃƒÆ’Ã‚Â¡s "vida" */
.booking-container::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(22, 121, 148, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.booking-visual {
    flex: 1;
    position: relative;
    z-index: 1;
}

.booking-visual img {
    width: 100%;
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
    transition: var(--transition);
    border: 8px solid var(--white);
}

.booking-visual:hover img {
    transform: translateY(-10px) rotate(-1deg);
    box-shadow: 0 30px 50px rgba(0,0,0,0.15);
}

.booking-info {
    flex: 1.2;
    position: relative;
    z-index: 1;
}

.booking-info h2 {
    font-size: 3rem; /* TÃƒÆ’Ã‚Â­tulo mÃƒÆ’Ã‚Â¡s impactante */
    color: var(--primary); /* TÃƒÆ’Ã‚Â­tulo ahora en Rosado */
    margin-bottom: 2rem;
    line-height: 1.1;
    font-weight: 800;
}

.booking-info p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.booking-benefits {
    list-style: none;
    margin-bottom: 3rem;
}

.booking-benefits li {
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    font-weight: 600;
    color: var(--text);
    padding: 0.8rem 1.2rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    border: 1px solid rgba(253, 75, 127, 0.15); /* Borde rosado suave */
    transition: var(--transition);
}

.booking-benefits li:hover {
    background: rgba(253, 75, 127, 0.05); /* Soft pink hover */
    transform: translateX(10px);
    box-shadow: 0 5px 15px rgba(253, 75, 127, 0.1);
}

.booking-benefits li i {
    color: var(--white);
    background: var(--primary); /* Bullet en rosado corporativo */
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.9rem;
    box-shadow: 0 5px 10px rgba(253, 75, 127, 0.3);
}

.btn-teal-solid {
    background: var(--primary); /* BotÃƒÆ’Ã‚Â³n en rosado corporativo */
    color: var(--white);
    padding: 1.5rem 4rem; 
    font-size: 1.1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 10px 20px rgba(253, 75, 127, 0.3);
}

.btn-teal-solid:hover {
    background: var(--primary-dark);
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(253, 75, 127, 0.4);
}

.booking-note {
    margin-top: 1.5rem;
    font-size: 1rem;
    color: var(--text-light);
    opacity: 0.8;
}

@media (max-width: 992px) {
    .booking-block {
        padding: 40px 5%;
    }
    .booking-container {
        flex-direction: column;
        padding: 2.5rem 1.2rem;
        text-align: center;
        gap: 2rem;
        border-radius: 25px;
    }
    .booking-info h2 { 
        font-size: 1.8rem; 
        margin-bottom: 1.2rem;
    }
    .booking-info p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    .booking-benefits {
        margin-bottom: 1.8rem;
    }
    .booking-benefits li { 
        justify-content: flex-start;
        font-size: 0.85rem;
        padding: 0.5rem 0.8rem;
        gap: 0.8rem;
    }
    .booking-benefits li i {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }
    .btn-teal-solid {
        padding: 1rem 2rem; /* ReducciÃƒÆ’Ã‚Â³n a un tamaÃƒÆ’Ã‚Â±o balanceado */
        font-size: 0.95rem;
        letter-spacing: 0.5px;
    }
    .booking-note {
        font-size: 0.85rem;
        margin-top: 1rem;
    }
}

/* Footer - Pink Gradient with White Inner Frame */
.footer {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%); /* Degradado rosado */
    padding: 60px 4% 60px;
    position: relative;
    overflow: hidden;
}

.footer-inner {
    max-width: 1300px;
    margin: 0 auto;
    background: var(--white);
    padding: 60px 5% 40px;
    border-radius: 40px;
    box-shadow: 0 15px 40px rgba(253, 75, 127, 0.15); /* Sombra rosada suave */
    border: 1px solid rgba(253, 75, 127, 0.1);
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 4rem;
    margin-bottom: 50px;
}

.footer-col h3 {
    color: var(--primary);
    font-size: 1.4rem;
    margin-bottom: 2rem;
    font-weight: 800;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-brand p {
    color: var(--text-light);
    line-height: 1.7;
    margin-top: 1.5rem;
    font-size: 0.95rem;
}

.footer-logo {
    height: 75px;
    transition: var(--transition);
}

.footer-links {
    list-style: none;
}

.footer-inner a {
    text-decoration: none !important;
}

.footer-links li {
    margin-bottom: 1.2rem;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.social-links {
    display: flex;
    gap: 1.2rem;
    margin-bottom: 2rem;
}

.social-icon {
    width: 48px;
    height: 48px;
    background: #fdf2f5;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px; /* Cuadraditos con bordes redondeados */
    font-size: 1.35rem;
    transition: var(--transition);
    text-decoration: none !important; /* Elimina la raya abajo como piso */
}

.social-icon[aria-label="Instagram"]:hover { background: #E1306C; color: white; }
.social-icon[aria-label="Facebook"]:hover { background: #1877F2; color: white; }
.social-icon[aria-label="TikTok"]:hover { background: #000000; color: white; }
.social-icon[aria-label="WhatsApp"]:hover { background: #25D366; color: white; }

.social-icon:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.footer-contact {
    color: var(--secondary);
    font-weight: 500;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid #f0f4f8;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-light);
    font-size: 0.85rem;
}

.footer-credits {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.credit-logo {
    height: 35px;
}

/* MODAL & CALENDAR POLISH */
#calendar {
    font-family: 'Montserrat', sans-serif;
    color: var(--text);
}

.fc-toolbar-title {
    font-size: 1.5rem !important;
    font-weight: 800;
    color: var(--secondary);
}

.fc-button-primary {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    text-transform: capitalize !important;
}

.fc-button-primary:hover {
    background-color: var(--primary-dark) !important;
}

.fc-daygrid-day-number {
    font-weight: 600;
    padding: 8px !important;
}

/* Modals */
.dash-card h3 {
    border-bottom: 2px solid #fdf2f5;
    padding-bottom: 1rem;
}

#admin-modal, #patient-modal, #patient-reg-modal, #student-registration-modal, #course-mgmt-modal, #lesson-mgmt-modal, #report-upload-modal {
    max-height: 90vh;
    overflow-y: auto;
    border: none;
    box-shadow: 0 50px 100px rgba(0,0,0,0.2);
    scrollbar-width: thin;
    scrollbar-color: var(--primary-light) transparent;
}

#admin-modal textarea, #patient-modal textarea {
    border: 1.5px solid #edf2f7;
    background: #f8fafc;
    transition: var(--transition);
}

#admin-modal textarea:focus, #patient-modal textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
}

.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Dashboard */
.sidebar {
    width: 280px;
    background: var(--white);
    border-right: 1px solid #e2e8f0;
    padding: 2.5rem 1.5rem;
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    z-index: 100;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #f1f5f9 transparent;
}

.sidebar::-webkit-scrollbar {
    width: 4px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: #f1f5f9;
    border-radius: 10px;
}

.sidebar-logo {
    height: 90px;
    margin-bottom: 2.5rem;
    padding-left: 0.5rem;
    display: flex;
    align-items: center;
}

.user-profile-sidebar {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid #f1f5f9;
}

.sidebar-menu {
    list-style: none;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centrar botones verticalmente */
    margin: 3.5rem 0;
}

.sidebar-menu li {
    margin-bottom: 0.5rem;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.2rem;
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    border-radius: 12px;
    transition: var(--transition);
}

.sidebar-menu a:hover, 
.sidebar-menu li.active a {
    background: #fdf2f5;
    color: var(--primary);
}

.sidebar-menu a i {
    font-size: 1.2rem;
    width: 25px;
    text-align: center;
}

.sidebar-footer {
    padding-top: 1.5rem;
    border-top: 1px solid #f1f5f9;
    margin-top: auto; /* Push to bottom */
}

/* Dashboard Content */
.dashboard-main {
    flex: 1;
    padding: 3rem 5%;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.dashboard-header h1 {
    font-size: 2rem;
    color: var(--text);
}

.dashboard-header .date {
    color: var(--text-light);
    font-weight: 500;
}

.dash-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.dash-card {
    background: var(--white);
    padding: 2.2rem;
    border-radius: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    border: 1px solid #f1f5f9;
}

.dash-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1.8rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--secondary);
}

.dash-card h3 i {
    color: var(--primary);
}

/* List Items in Cards */
.dash-list {
    list-style: none;
}

.dash-item {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1.2rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.dash-item:last-child {
    border-bottom: none;
}

.item-date {
    background: #fdf2f5;
    color: var(--primary);
    padding: 0.6rem;
    border-radius: 10px;
    text-align: center;
    min-width: 65px;
}

.item-date .day { font-size: 1.2rem; font-weight: 800; display: block; }
.item-date .month { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; }

.item-details h5 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.item-details p {
    font-size: 0.85rem;
    color: var(--text-light);
}

.status-badge {
    margin-left: auto;
    font-size: 0.75rem;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-weight: 600;
}

.status-confirmed { 
    background: #dcfce7; 
    color: #166534; 
    border: 1px solid #bbf7d0;
}
.status-pending { 
    background: #fff9db; 
    color: #856404; 
    border: 1px solid #ffeeba;
}
.status-rejected { 
    background: #fee2e2; 
    color: #991b1b; 
    border: 1px solid #fecaca;
}

/* FullCalendar Custom Theme */
.fc {
    font-family: 'Outfit', sans-serif !important;
}

.fc-toolbar-title {
    color: var(--secondary);
    font-weight: 700 !important;
}

.fc-button {
    background: var(--white) !important;
    border: 1px solid #e2e8f0 !important;
    color: var(--text) !important;
    font-weight: 600 !important;
    text-transform: capitalize !important;
    padding: 0.6rem 1rem !important;
    border-radius: 12px !important;
    transition: var(--transition) !important;
}

.fc-button:hover {
    background: #f8fafc !important;
    border-color: var(--primary) !important;
}

.fc-button-active {
    background: var(--primary) !important;
    color: white !important;
    border-color: var(--primary) !important;
}

.fc-event {
    cursor: pointer;
    border-radius: 6px !important;
    padding: 2px 5px !important;
    font-weight: 500 !important;
    font-size: 0.85rem !important;
}

/* Modal Enhancements */
#modal-overlay {
    animation: fadeIn 0.3s ease;
}

#admin-modal, #patient-modal {
    animation: slideUp 0.4s ease;
    border-radius: 30px !important;
    border: none !important;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.course-mini-card {
    margin-bottom: 1.5rem;
}

.course-header-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
}

.course-progress-wrapper {
    height: 10px;
    background: #f1f5f9;
    border-radius: 10px;
    overflow: hidden;
}

.course-progress-bar {
    height: 100%;
    background: var(--primary);
    border-radius: 10px;
    transition: width 1s ease-in-out;
}

/* Reports / Files Dashboard */
.file-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 12px;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.file-item:hover {
    background: #f1f5f9;
    transform: translateX(5px);
}

.file-icon {
    font-size: 1.5rem;
    color: var(--primary-light);
}

.file-info {
    flex: 1;
}

.file-info h5 {
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

.file-info span {
    font-size: 0.75rem;
    color: var(--text-light);
}

.btn-download {
    color: var(--secondary);
    font-size: 1.2rem;
    padding: 0.5rem;
}

/* Mobile Dashboard Adjustments */
@media (max-width: 992px) {
    .dashboard-wrapper {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        padding: 1.5rem;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    
    .sidebar-logo {
        margin-bottom: 0;
        height: 45px;
    }
}

/* --- MODERN FORM GROUPS (Modals) --- */
.form-group-modern {
    margin-bottom: 1rem; /* MÃƒÆ’Ã‚Â¡s compacto verticalmente */
    text-align: left;
    width: 100%;
}

.form-group-modern label {
    display: flex;
    align-items: center;
    font-size: 0.85rem; /* Un poco mÃƒÆ’Ã‚Â¡s pequeÃƒÆ’Ã‚Â±o */
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 0.5rem; 
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group-modern label i {
    margin-right: 0.6rem;
    color: var(--primary);
    font-size: 1rem;
    width: 20px;
}

.form-group-modern input, 
.form-group-modern select, 
.form-group-modern textarea {
    width: 100% !important;
    display: block;
    padding: 1rem 1.2rem; /* Mantengo el tamaÃƒÆ’Ã‚Â±o pero un poco mÃƒÆ’Ã‚Â¡s ajustado */
    border-radius: 15px;
    border: 2px solid #edf2f7;
    background: #f8fafc;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text);
    transition: var(--transition);
}

.form-group-modern input:focus, 
.form-group-modern select:focus, 
.form-group-modern textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 5px 15px rgba(255, 90, 0, 0.1);
}

.form-group-modern textarea {
    resize: none;
}

.modal-content {
    background: var(--white);
    max-width: 480px; 
    width: 95%;
    border-radius: 30px;
    padding: 2.5rem !important;
    position: relative; /* CRITICAL for the X button */
    animation: modalFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 768px) {
    .modal-content {
        padding: 1.5rem !important;
        border-radius: 20px;
    }
    
    .form-group-modern {
        margin-bottom: 0.8rem;
    }
    
    .form-group-modern input, 
    .form-group-modern select, 
    .form-group-modern textarea {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .form-group-modern label {
        font-size: 0.75rem;
        margin-bottom: 0.3rem;
    }
}

.modal-content .icon-small {
    width: 50px !important;
    height: 50px !important;
    margin-bottom: 1rem !important;
}

.modal-content h3 {
    font-size: 1.5rem !important;
    margin-bottom: 0.2rem !important;
}

/* --- CALENDAR COMPACTION & TABLE --- */

.fc {
    max-height: none !important; /* Eliminada restricciÃƒÆ’Ã‚Â³n de altura global */
}

/* Achicar los recuadros del calendario */
.fc-daygrid-day-frame {
    min-height: 60px !important; /* Altura mínima reducida para escritorio */
}

@media (max-width: 768px) {
    .fc-daygrid-day-frame {
        min-height: 110px !important; /* Más alto en móvil para facilitar el toque */
    }
    .fc-daygrid-day-number {
        font-size: 1.1rem !important;
        padding: 10px !important;
        font-weight: 800;
    }
    .fc-col-header-cell-cushion {
        font-size: 0.9rem !important;
        text-transform: uppercase;
    }
}

/* Días de otros meses en gris y menos pesados */
.fc-day-other {
    background-color: #f9fbff !important;
}

.fc-day-other .fc-daygrid-day-number {
    color: #cbd5e1 !important;
    font-weight: 400 !important;
}

/* Día actual y del mes en curso en negrita */
.fc-daygrid-day-number {
    font-weight: 800;
    color: var(--secondary);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    z-index: 10;
}

.fc-daygrid-day-number:hover {
    color: var(--primary);
}

.fc-event {
    cursor: pointer;
    border-radius: 8px !important;
    margin-bottom: 3px !important;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.2s ease !important;
    overflow: hidden !important;
}

.fc-event-main {
    padding: 6px 10px !important;
    font-weight: 700 !important;
    font-size: 0.8rem !important;
    border-left: 5px solid !important;
    border-left-color: inherit !important; /* Hereda el color del estado */
    background-color: inherit !important; /* Hereda el pastel de JS */
    color: inherit !important; /* Hereda el texto oscuro de JS */
}

.fc-daygrid-block-event {
    background-color: inherit !important;
}

/* Acciones en la tabla premium */
.premium-table .btn-login {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.premium-table .btn-login:hover {
    transform: scale(1.1);
    background: #f8fafc;
}

.fc-daygrid-event {
    white-space: normal !important; /* Permitir un poco mÃƒÆ’Ã‚Â¡s de texto */
}

.fc-v-event {
    background-color: var(--primary);
    border: none !important;
}

.premium-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 1rem;
}

.premium-table th {
    background: #f8fafc;
    color: var(--text-light);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 1rem;
    text-align: left;
    border-bottom: 2px solid #edf2f7;
}

.premium-table td {
    padding: 1rem;
    font-size: 0.9rem;
    color: var(--text);
    border-bottom: 1px solid #f1f5f9;
}

.premium-table tr:last-child td {
    border-bottom: none;
}

.premium-table tr:hover {
    background: #fff5f0;
}

.table-responsive,
#patients-table-container {
    overflow-x: auto;
    width: 100%;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
    #patients-table-container .premium-table {
        min-width: 950px !important; /* Asegura que todas las columnas y botones quepan */
    }
}
/* Modal Close Button (X) */
.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    transition: all 0.2s ease;
    z-index: 10;
}

.modal-close-btn:hover {
    background: var(--primary);
    color: var(--white);
    transform: rotate(90deg);
}
/* --- REPORTS VIEW STYLES --- */
#reports-patient-container {
    gap: 1.5rem;
}

.file-item {
    display: flex;
    align-items: center;
    padding: 1.2rem;
    background: #f8fafc;
    border-radius: 15px;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.file-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    background: var(--white);
}

.file-icon {
    font-size: 1.5rem;
    color: #ef4444;
    margin-right: 1.2rem;
}

.file-info {
    flex: 1;
}

.file-info h5 {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text);
}

.file-info span {
    font-size: 0.75rem;
    color: var(--text-light);
}

.btn-download {
    color: var(--primary);
    background: #fff5f0;
    width: 35px;
    height: 35px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
}

.btn-download:hover {
    background: var(--primary);
    color: var(--white);
}

#reports-view .dash-card {
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
}

#reports-view .dash-card:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 25px rgba(255, 90, 0, 0.1);
}
/* --- DASHBOARD SUMMARY: WIDE REPORTS --- */
#reports-summary-card .file-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

.file-item-summary {
    display: flex;
    align-items: center;
    background: #f8fafc;
    padding: 1.2rem;
    border-radius: 18px;
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
}

.file-item-summary:hover {
    transform: translateY(-3px);
    background: var(--white);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    border-color: var(--primary-light);
}

.file-icon-wrapper {
    width: 50px;
    height: 50px;
    background: #fff5f0;
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-right: 1.2rem;
}

.file-info-main {
    flex: 1;
}

.file-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.file-title-row h5 {
    margin: 0;
    font-size: 1rem;
    color: var(--secondary);
    font-weight: 600;
}

.file-date {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 500;
}

.file-meta-row {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.file-type-tag {
    font-size: 0.7rem;
    background: #e2e8f0;
    color: #475569;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    font-weight: 600;
    text-transform: uppercase;
}

.file-patient-tag {
    font-size: 0.7rem;
    background: #dcfce7;
    color: #166534;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    font-weight: 600;
}
.file-actions-summary {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.file-actions-summary .btn-view-summary {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--white);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}

.file-actions-summary .btn-view-summary:hover {
    background: var(--primary);
    color: var(--white);
    transform: scale(1.1);
}

.file-actions-summary .btn-delete-summary {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--white);
    color: #ef4444;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
    cursor: pointer;
    margin-left: 0.5rem;
}

.file-actions-summary .btn-delete-summary:hover {
    background: #ef4444;
    color: var(--white);
    transform: scale(1.1);
}

@media (max-width: 600px) {
    #reports-summary-card .file-list {
        grid-template-columns: 1fr;
    }
    
    .file-item-summary {
        padding: 1rem;
    }
}

/* --- RESPONSIVE SIDEBAR (MOBILE) --- */
.mobile-only-btn {
    display: none;
    background: white;
    border: 1.5px solid #f1f5f9;
    color: var(--primary);
    padding: 0.6rem;
    border-radius: 12px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.mobile-only-btn:hover {
    background: #fff5f0;
    border-color: var(--primary-light);
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 1000; /* Above sidebar initially */
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

@media (max-width: 1024px) {
    .mobile-only-btn {
        display: flex;
    }

    /* FORCED STABILITY FOR SIDEBAR */
    .sidebar {
        position: fixed !important;
        left: -320px !important;
        top: 0 !important;
        width: 290px !important;
        height: 100vh !important;
        background-color: #ffffff !important; /* Force solid white */
        opacity: 1 !important;
        z-index: 9999 !important; /* Absolute top */
        transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
        box-shadow: 20px 0 60px rgba(0,0,0,0.2) !important;
        padding: 2rem 1.5rem !important;
        display: flex !important;
        flex-direction: column !important;
        overflow-y: auto !important;
        border-right: none !important;
    }

    .sidebar.active {
        left: 0 !important;
    }

    /* Prevent content from shrinking or shifting */
    .dashboard-wrapper {
        display: block !important;
    }

    .dashboard-main {
        width: 100% !important;
        margin-left: 0 !important;
        padding: 1.5rem 0.8rem !important; /* Slightly less padding */
    }

    /* CALENDAR EXPANSION */
    #calendar-view {
        padding: 1.2rem 0.8rem !important; /* More width for calendar */
    }

    #calendar {
        margin-bottom: 2rem !important;
    }

    .fc .fc-toolbar {
        flex-direction: column !important;
        gap: 0.8rem !important;
    }

    .fc .fc-toolbar-title {
        font-size: 1.1rem !important;
    }

    /* REPORTS SUMMARY OPTIMIZATION */
    .file-item-summary {
        padding: 1.2rem !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 1rem !important;
    }

    .file-info-summary {
        width: 100% !important;
    }

    .file-actions-summary {
        width: 100% !important;
        justify-content: flex-end !important;
        margin-top: 0.5rem !important;
        border-top: 1px solid #f1f5f9;
        padding-top: 0.8rem;
    }

    /* BLOCK SYSTEM FOR DASHBOARD CONTENT - REFINED STABILITY */
    #dashboard-content-main {
        display: flex !important;
        flex-direction: column !important;
        gap: 1.2rem !important; 
        width: 100% !important;
        padding-bottom: 2rem;
    }

    #summary-view,
    #calendar-view,
    #weekly-summary-section,
    #reports-view {
        width: 100% !important;
        box-sizing: border-box !important;
        height: auto !important; /* Forces containers to wrap their content */
    }

    /* DEFINTIVE MOBILE STABILITY - ZERO BLEED SYSTEM */
    .dashboard-main,
    .dashboard-main *,
    #dashboard-content-main,
    .dash-card,
    #reports-summary-card {
        box-sizing: border-box !important;
        max-width: 100% !important;
    }

    #dashboard-content-main {
        display: flex !important;
        flex-direction: column !important;
        gap: 1.2rem !important; 
        width: 100% !important;
        padding: 0 !important; /* Managed by parent padding */
        overflow-x: hidden !important;
    }

    #calendar-view,
    #weekly-summary-section,
    #reports-view,
    .dash-card {
        background: white !important;
        border-radius: 20px !important;
        padding: 1.2rem 1rem !important; /* Compact balanced padding */
        box-shadow: 0 8px 30px rgba(0,0,0,0.04) !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* Reports Mobile Item Refinement */
    .file-item-summary {
        width: 100% !important;
        margin: 0 !important;
        padding: 0.8rem 0.5rem !important; /* Less horizontal padding */
        display: flex;
        flex-direction: column;
        gap: 0.6rem;
        border-bottom: 1px solid #f1f5f9;
        overflow: hidden !important;
    }

    /* Fixed height for summary items on PC (moved out or kept safe) */
    @media (min-width: 1025px) {
        .file-item-summary {
            min-height: 60px;
        }
    }

    #calendar {
        min-height: 450px !important; /* Reduced 10% to fit perfectly */
        width: 100% !important;
        margin-bottom: 1rem !important;
    }

    /* Shrink the calendar cells by ~10% */
    .fc .fc-daygrid-day-frame {
        min-height: 80px !important; /* Slightly more compact cells */
    }

/* --- PREMIUM COURSE CARD DESIGN - STABILIZED --- */

.course-card-premium {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.08);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    max-width: 400px; /* AHORA MÃƒÆ’Ã‚ÂS COMPACTA */
    margin: 0; /* CORRIDO A LA IZQUIERDA */
}

.course-card-premium:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-light);
}

.course-card-premium .thumb-wrapper {
    position: relative;
    height: 180px; /* ALTURA REDUCIDA PARA QUE NO SE VEA ENORME */
    overflow: hidden;
    background: #f1f5f9;
}

.course-card-premium .thumb-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* CAMBIADO DE COVER A CONTAIN PARA EVITAR CORTES */
    background: #f8fafc;
    transition: transform 0.6s ease;
}

.course-card-premium .thumb-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.4) 0%, transparent 40%);
    display: flex;
    align-items: flex-end;
    padding: 1rem;
    pointer-events: none;
}

.course-card-premium .badge-lesson {
    background: var(--secondary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    z-index: 2;
    width: fit-content;
    display: inline-block;
}

.course-card-premium .course-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.course-card-premium .course-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 0.8rem;
    line-height: 1.2;
}

.course-card-premium .course-desc {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.course-card-premium .admin-toolbar {
    display: flex;
    gap: 0.8rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f1f5f9;
}

.course-card-premium .btn-admin-action {
    height: 48px; /* MÃƒÆ’Ã‚ÂS GRANDES */
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    cursor: pointer;
    font-size: 1rem; /* MÃƒÆ’Ã‚ÂS GRANDE */
    padding: 0 1rem;
}

.course-card-premium .btn-admin-action:hover {
    background: var(--white);
    border-color: var(--primary);
    color: var(--primary);
}

.course-card-premium .btn-delete-action {
    color: #ef4444;
}

.course-card-premium .main-action-btn {
    width: 100%;
    padding: 1.2rem;
    border-radius: 15px;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
}

/* Grilla Alineada a la Izquierda */
#courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
    justify-content: start; /* CORRIDO A LA IZQUIERDA */
}

/* Course Player & Playlist Refinements */

.lesson-item {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1.2rem;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 0.8rem;
}

.lesson-item:hover {
    background: var(--white);
    transform: translateX(8px);
    border-color: var(--primary-light);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.lesson-item.active {
    background: #fdf2f5;
    border-color: var(--primary);
    box-shadow: 0 8px 20px rgba(253, 75, 127, 0.08);
}

.lesson-item.locked {
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(1);
}

.lesson-item.locked:hover {
    transform: none;
    background: #f8fafc;
    border-color: transparent;
    box-shadow: none;
}

.progress-bar-container {
    background: #f1f5f9;
    border-radius: 100px;
    overflow: hidden;
}

@keyframes progressAnim {
    from { width: 0; }
}

.progress-bar-container div {
    animation: progressAnim 1s ease-out forwards;
}

/* Responsividad para la grilla de cursos */
@media (max-width: 1024px) {
    #courses-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
        gap: 1.5rem !important;
    }
}

@media (max-width: 600px) {
    #courses-grid {
        grid-template-columns: 1fr !important;
    }
    
    #player-container-full .player-grid-responsive {
        grid-template-columns: 1fr !important;
    }

    #player-container-full .playlist-container {
        border-left: none !important;
        border-top: 1px solid #f1f5f9;
        max-height: none !important;
    }
}

/* --- ACCORDION SYSTEM --- */
.accordion-header {
    cursor: pointer;
    transition: background 0.2s;
}

.accordion-header:hover {
    background: #f1f5f9 !important;
}

.accordion-header i.fa-chevron-down {
    transition: transform 0.3s ease;
}

.accordion-header.active i.fa-chevron-down {
    transform: rotate(180deg);
}

.accordion-content {
    display: block; /* Visible by default on PC */
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

@media (max-width: 1024px) {
    .accordion-content {
        display: none; /* Collapsed by default on mobile */
    }
    
    .accordion-content.active {
        display: block;
    }
}

/* --- PURCHASE MODAL STYLES --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease-out;
}

.form-group-premium input:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 4px rgba(253, 75, 127, 0.1);
}

/* --- SISTEMA DE CABECERAS DASHBOARD PREMIUM (ARREGLO FINAL) --- */
.dash-header-premium {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    margin-bottom: 2.5rem !important;
    flex-wrap: nowrap !important;
}

.dash-buttons-group {
    display: flex !important;
    flex-direction: row !important;
    gap: 0.8rem !important;
    align-items: center !important;
}

/* Botones ultra-estÃ©ticos y compactos para PC */
.dash-buttons-group .btn {
    width: auto !important;
    min-width: 120px !important;
    padding: 0.3rem 0.8rem !important;
    font-size: 0.75rem !important;
    height: 32px !important;
    border-radius: 8px !important;
    white-space: nowrap !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05) !important;
    border: 1px solid rgba(0,0,0,0.05) !important;
    transition: all 0.2s ease !important;
}

.dash-buttons-group .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1) !important;
}

@media (max-width: 768px) {
    .dash-header-premium {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 1.2rem !important;
    }
    
    .dash-buttons-group {
        width: 100% !important;
        flex-direction: column !important;
        gap: 0.8rem !important;
    }
    
    .dash-buttons-group .btn {
        width: 100% !important;
        height: 48px !important;
        font-size: 1rem !important;
        padding: 0.8rem !important;
    }
}
