:root {
    --primary-color: #E52B38;
    --primary-hover: #c4222d;
    --secondary-color: #1A1A1A;
    --text-color: #333333;
    --text-light: #666666;
    --bg-color: #ffffff;
    --bg-light: #f8f9fa;
    --border-color: #e5e5e5;
    
    --font-sans: 'Inter', system-ui, sans-serif;
    --font-heading: 'Outfit', system-ui, sans-serif;
    
    --shadow-sm: 0 4px 12px rgba(0,0,0,0.05);
    --shadow-md: 0 12px 32px rgba(0,0,0,0.08);
    --shadow-lg: 0 24px 48px rgba(229, 43, 56, 0.15);
    
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-color);
}

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

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

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--secondary-color);
    line-height: 1.15;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

h1 { font-size: 3.75rem; font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: 2.75rem; font-weight: 700; }
h3 { font-size: 1.5rem; font-weight: 600; }
p { margin-bottom: 1.25rem; color: var(--text-light); font-size: 1.125rem; line-height: 1.7; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 50px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.btn:active {
    transform: scale(0.96);
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

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

.btn-outline:hover {
    border-color: var(--secondary-color);
    background-color: var(--secondary-color);
    color: white;
}

.btn-white {
    background-color: white;
    color: var(--primary-color);
    border: 2px solid white;
}

.btn-white:hover {
    background-color: transparent;
    color: white;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-text {
    color: var(--primary-color);
    font-weight: 600;
}

.btn-text:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.btn-link {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    margin-top: 0.5rem;
    position: relative;
}

.btn-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.btn-link:hover {
    transform: translateX(4px);
}

.btn-link:hover::after {
    width: 100%;
}

/* Header */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

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

.logo img {
    height: 48px;
}

.nav-menu ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-menu a {
    font-weight: 600;
    color: var(--secondary-color);
    position: relative;
    padding-bottom: 0.25rem;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--primary-color);
}

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

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

/* Hero Section */
.hero {
    padding: 6rem 0;
    background: linear-gradient(to right, #ffffff, #fdf4f5);
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background-color: rgba(229, 43, 56, 0.08);
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.875rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

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

.hero-image-wrapper {
    position: relative;
    z-index: 1;
}

.hero-img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    position: relative;
}

.hero-image-wrapper::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    border-radius: var(--radius-lg);
    top: 20px;
    right: -20px;
    z-index: -1;
    opacity: 0.1;
}

.floating-card {
    position: absolute;
    bottom: -20px;
    left: -30px;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: float 4s ease-in-out infinite;
}

.floating-card .icon {
    font-size: 2rem;
    background: rgba(229, 43, 56, 0.1);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.floating-card strong {
    display: block;
    color: var(--secondary-color);
}

.floating-card span {
    font-size: 0.875rem;
    color: var(--text-light);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Modules Section */
.modules-section {
    padding: 6rem 0;
    background-color: var(--bg-light);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem auto;
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.module-card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.module-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.module-img {
    height: 200px;
    overflow: hidden;
}

.module-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.module-card:hover .module-img img {
    transform: scale(1.05);
}

.module-content {
    padding: 2rem;
}

/* CTA Banner */
.cta-banner {
    background-color: var(--primary-color);
    padding: 5rem 0;
    text-align: center;
    color: white;
}

.cta-banner h2 {
    color: white;
    margin-bottom: 1rem;
}

.cta-banner p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
}

/* Footer */
.footer {
    background-color: #000000;
    color: white;
    padding: 5rem 0 2rem 0;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-logo img {
    margin-bottom: 1.5rem;
}

.footer-logo p {
    color: #999;
    max-width: 350px;
    font-size: 1rem;
}

.footer-links h4 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 1rem;
    color: #999;
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-links a {
    color: #999;
    display: inline-block;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--primary-color);
    transform: translateX(4px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #666;
    font-size: 0.875rem;
}

/* Background Pattern */
.bg-pattern {
    position: relative;
}

.bg-pattern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://camaradecomerciosoacha.org.co/wp-content/uploads/2024/05/Frame-8.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.4;
    z-index: 0;
    pointer-events: none;
}

.bg-pattern > * {
    position: relative;
    z-index: 1;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-cta {
        justify-content: center;
    }

    h1 {
        font-size: 2.5rem;
    }
    
    .nav-menu {
        display: none;
    }
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero {
        padding: 4rem 0;
    }
}

/* --- New Sections CSS --- */

/* Benefits Section */
.benefits-section {
    padding: 6rem 0;
    background-color: var(--bg-light);
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.benefits-list {
    list-style: none;
    margin-top: 2rem;
}

.benefits-list li {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: white;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--primary-color);
}

.rounded-img {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

/* Courses Section */
.courses-section {
    padding: 6rem 0;
    background-color: white;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.course-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.course-img {
    position: relative;
    height: 220px;
}

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

.course-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
}

.course-content {
    padding: 2rem;
}

.course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.course-meta {
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 500;
}

.mt-4 { margin-top: 2.5rem; }
.mt-2 { margin-top: 1.5rem; }
.text-center { text-align: center; }

/* Library Section */
.library-section {
    padding: 6rem 0;
    background-color: var(--secondary-color);
    color: white;
}

.library-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.library-text h2 {
    color: white;
}

.library-text p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.library-stats {
    display: flex;
    gap: 3rem;
    margin-bottom: 2rem;
}

.library-stats div {
    display: flex;
    flex-direction: column;
}

.library-stats strong {
    font-size: 2.5rem;
    color: var(--primary-color);
    line-height: 1;
}

.library-stats span {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Events Section */
.events-section {
    padding: 6rem 0;
    background-color: var(--bg-light);
}

.events-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.event-item {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: white;
    padding: 1.5rem 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
    cursor: pointer;
}

.event-item:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: var(--shadow-md);
}

.event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(229, 43, 56, 0.1);
    color: var(--primary-color);
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
}

.event-date strong {
    font-size: 1.75rem;
    line-height: 1;
}

.event-date span {
    font-size: 0.875rem;
    text-transform: uppercase;
    font-weight: 600;
}

.event-details {
    flex: 1;
}

.event-details h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.event-details p {
    margin-bottom: 0;
    font-size: 0.875rem;
}

/* Single Course Page specific */
.page-header {
    background-color: var(--bg-light);
    padding: 4rem 0;
    border-bottom: 1px solid var(--border-color);
}

.course-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    padding: 4rem 0;
}

.course-main .content-box {
    margin-bottom: 3rem;
}

.curriculum-list {
    list-style: none;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.curriculum-list li {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    background: white;
}

.curriculum-list li:last-child { border-bottom: none; }

.sidebar-box {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2rem;
    position: sticky;
    top: 100px;
    box-shadow: var(--shadow-sm);
}

.sidebar-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.sidebar-features {
    list-style: none;
    margin-bottom: 2rem;
}

.sidebar-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.875rem;
    display: flex;
    justify-content: space-between;
}

/* Responsive updates for new sections */
@media (max-width: 992px) {
    .benefits-grid, .library-box, .course-layout {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 768px) {
    .event-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    .event-action {
        width: 100%;
    }
    .event-action .btn {
        width: 100%;
    }
}

/* Auth Pages */
.auth-wrapper {
    width: 100%;
    max-width: 500px;
    padding: 2rem;
    position: relative;
    z-index: 10;
}

.auth-card {
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 3rem 2.5rem;
}

.auth-header img {
    margin-bottom: 0.5rem;
}

.auth-header h2 {
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
}

.auth-tabs {
    display: flex;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.tab-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 1rem;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-light);
    cursor: pointer;
    position: relative;
    transition: var(--transition-fast);
}

.tab-btn:hover {
    color: var(--secondary-color);
}

.tab-btn.active {
    color: var(--primary-color);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--secondary-color);
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: var(--transition-fast);
    background-color: var(--bg-light);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: white;
    box-shadow: 0 0 0 3px rgba(229, 43, 56, 0.1);
}

.input-icon {
    position: relative;
}

.input-icon i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 1.25rem;
}

.input-icon .form-control {
    padding-left: 3rem;
}

.forgot-link {
    font-size: 0.875rem;
    color: var(--primary-color);
    font-weight: 500;
}

.forgot-link:hover {
    text-decoration: underline;
}

.alert {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    line-height: 1.5;
}

.alert-info {
    background: rgba(229, 43, 56, 0.05);
    border: 1px solid rgba(229, 43, 56, 0.2);
    color: var(--secondary-color);
}

.alert i {
    font-size: 1.5rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.alert p {
    margin: 0;
    font-size: 0.875rem;
}

/* Newsletter Section */
.newsletter-section {
    background-color: #ffffff;
    padding: 6rem 0;
}
.newsletter-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.newsletter-img img {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    display: block;
    border-radius: 0;
    box-shadow: none;
    padding: 2rem;
}
.newsletter-text {
    padding-bottom: 0;
}
.newsletter-text h2 {
    font-size: 2.5rem;
}
.newsletter-form {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}
.newsletter-form input {
    flex: 1;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    background-color: var(--bg-light);
}
.newsletter-form input:focus {
    outline: none;
    border-color: var(--primary-color);
}
@media (max-width: 992px) {
    .newsletter-box {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    .newsletter-text {
        padding-bottom: 2rem;
        padding-top: 3rem;
    }
    .newsletter-form {
        flex-direction: column;
    }
}
