
:root {
    /* Identidad Fencil */
    --primary-color: #8B002D;    /* Rojo Vino Oscuro (Cuerpo del logo) */
    --secondary-color: #5E001E;  /* Vino más oscuro para contrastes/hovers */
    --accent-color: #FFD700;     /* Amarillo Oro (Estrellas y detalles) */
    
    /* Neutros y Fondos */
    --text-dark: #2D2D2D;
    --text-light: #6c757d;
    --bg-light: #FDFDFD;
    --white: #ffffff;
    
    /* Elevación y Efectos */
    --shadow-sm: 0 2px 8px rgba(139, 0, 45, 0.08);
    --shadow-md: 0 4px 16px rgba(139, 0, 45, 0.12);
    --shadow-lg: 0 8px 32px rgba(139, 0, 45, 0.16);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Work Sans', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}




/* Hero Section */
.hero-section {
    position: relative;
    overflow: hidden;
}

.carousel-item {
    height: 600px;
    position: relative;
}

.carousel-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.carousel-item .container {
    position: relative;
    z-index: 1;
    height: 100%;
}

.carousel-item .row {
    height: 100%;
}

.hero-content {
    padding: 33px 0 0 0;
    color: var(--white);
}

.hero-title {
    font-size: 56px;
    font-weight: 900;
    margin-bottom: 16px;
    line-height: 1.2;
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 16px;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease 0.2s;
    animation-fill-mode: backwards;
}

.hero-buttons {
    animation: fadeInUp 0.8s ease 0.4s;
    animation-fill-mode: backwards;
}

.hero-image {
    animation: fadeInRight 1s ease 0.3s;
    animation-fill-mode: backwards;
    margin-bottom: 39px;
}

.hero-image img {
    border-radius: 6px;
    box-shadow: var(--shadow-lg);
    max-height: 360px;
    object-fit: cover;
    width: 100%;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 33px;
    height: 33px;
    padding: 12px;
    backdrop-filter: blur(10px);
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 6px;
}

/* Stats Section */
.stats-section {
    padding: 60px 0;
    background: var(--bg-light);
}

.stat-item {
    text-align: center;
    padding: 24px;
}

.stat-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--white);
    transition: var(--transition);
}

.stat-item:hover .stat-icon {
    transform: scale(1.1) rotate(5deg);
}

.stat-number {
    font-size: 48px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.stat-label {
    color: var(--text-light);
    font-size: 16px;
    font-weight: 500;
}

/* Ad Banner */
.ad-banner {
    padding: 10px 0;
    background: var(--white);
}

.ad-placeholder {
    background: var(--bg-light);
    border: 2px dashed #dee2e6;
    border-radius: 12px;
    padding: 60px 20px;
    text-align: center;
    color: var(--text-light);
}

.ad-placeholder i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

/* Courses Section */
.courses-section {
    padding: 10px 0;
    background: var(--white);
}

.section-header {
    margin-bottom: 60px;
}

.section-title {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-light);
}

/* Course Carousel */
.course-carousel-wrapper {
    position: relative;
    padding: 0 60px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: var(--white);
    box-shadow: var(--shadow-md);
    color: var(--primary-color);
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

.carousel-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: 0;
}

.next-btn {
    right: 0;
}

.courses-carousel {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px 0;
    scrollbar-width: none;
}

.courses-carousel::-webkit-scrollbar {
    display: none;
}

/* Course Card */
.course-card {
    flex: 0 0 320px;
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.course-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 2;
}

.course-badge.hot {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.course-badge.new {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.course-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

.course-card:hover .course-image img {
    transform: scale(1.1);
}

.course-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.course-card:hover .course-overlay {
    opacity: 1;
}

.course-content {
    padding: 24px;
}

.course-category {
    color: var(--primary-color);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}
.course-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-dark);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.course-title a{
    text-decoration: none;
    color: var(--text-dark);
}
.course-instructor {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.course-instructor img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.course-instructor span {
    font-size: 14px;
    color: var(--text-light);
}

.course-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e9ecef;
}

.rating, .students {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.rating i {
    color: #ffc107;
}

.rating span:first-of-type {
    font-weight: 700;
    color: var(--text-dark);
}

.reviews {
    color: var(--text-light);
}

.students i {
    color: var(--primary-color);
}

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

.course-price {
    display: flex;
    align-items: center;
    gap: 12px;
}

.old-price {
    color: var(--text-light);
    text-decoration: line-through;
    font-size: 14px;
}

.new-price {
    font-size: 24px;
    font-weight: 900;
    color: var(--primary-color);
}

.btn-wishlist {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #e9ecef;
    background: var(--white);
    color: var(--text-light);
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-wishlist:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: scale(1.1);
}

/* Parallax Section */
.parallax-section {
    position: relative;
    height: 500px;
    background-image: url('https://images.unsplash.com/photo-1523240795612-9a054b0db644?w=1600');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
}

.parallax-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(109, 6, 54, 0.9) 0%, rgba(182, 3, 86, 0.9) 100%);
}

.parallax-section .container {
    position: relative;
    z-index: 1;
}

.parallax-title {
    font-family: 'Playfair Display', serif;
    font-size: 56px;
    font-weight: 900;
    color: var(--white);
    margin-bottom: 20px;
}

.parallax-text {
    font-size: 20px;
    color: var(--white);
    margin-bottom: 32px;
    opacity: 0.95;
}

/* Testimonials Section */
.testimonials-section {
    padding: 100px 0;
    background: var(--bg-light);
    overflow: hidden;
}

.testimonials-carousel-wrapper {
    position: relative;
    margin-top: 40px;
}

.testimonials-track {
    display: flex;
    gap: 24px;
    animation: scroll 40s linear infinite;
}

.testimonials-track:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.testimonial-card {
    flex: 0 0 380px;
    background: var(--white);
    padding: 32px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.testimonial-rating {
    color: #ffc107;
    margin-bottom: 16px;
    font-size: 18px;
}

.testimonial-text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h5 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-dark);
}

.author-info p {
    font-size: 14px;
    color: var(--text-light);
    margin: 0;
}

/* Categories Section */
.categories-section {
    padding: 100px 0;
    background: var(--white);
}

.category-card {
    background: var(--white);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.category-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--white);
    transition: var(--transition);
}

.category-card:hover .category-icon {
    transform: scale(1.1) rotate(10deg);
}

.category-card h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.category-card p {
    color: var(--text-light);
    font-size: 14px;
    margin: 0;
}

/* Footer */
.footer {
    background: var(--secondary-color);
    color: var(--white);
    padding: 66px 0 0;
}

.footer-brand {
    margin-bottom: 24px;
}

.footer-brand .logo-container {
    margin-bottom: 16px;
}
.logo-container {
    width: 100%;
    text-align: center;
}
.logo-container img{
    max-width: 90px;
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 24px;
}

.social-links {
    display: flex;
    gap: 12px;
    text-align: center;
    align-items: center;
    justify-content: center;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.185);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
    text-decoration: none;
}

.social-links a:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    transform: translateY(-4px);
}

.footer-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--white);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

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

.app-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.app-button {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 16px;
    border-radius: 12px;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.app-button:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    transform: translateY(-2px);
}

.app-button i {
    font-size: 28px;
}

.app-button small {
    display: block;
    font-size: 11px;
    opacity: 0.8;
}

.app-button strong {
    display: block;
    font-size: 14px;
}

.footer-bottom {
    margin-top: 60px;
    padding: 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

/* Mobile Menu Styles */
@media (max-width: 991px) {
    .navbar-collapse {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 85%;
        max-width: 400px;
        background: var(--white);
        box-shadow: -4px 0 16px rgba(0, 0, 0, 0.1);
        transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        z-index: 1050;
        overflow-y: auto;
        padding: 80px 0 40px;
    }

    .navbar-collapse.show {
        right: 0;
    }

    .navbar-collapse.collapsing {
        right: -100%;
        transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    }

    .navbar-nav {
        padding: 0 24px;
    }

    .navbar-actions {
        flex-direction: column;
        padding: 0 24px;
        margin-top: 24px;
    }

    .search-box {
        width: 100%;
        margin-right: 0;
        margin-bottom: 16px;
    }

    .search-box input {
        width: 100%;
    }

    .navbar-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .mega-menu {
        position: static !important;
        transform: none !important;
        box-shadow: none;
        padding: 0;
        margin-top: 0;
    }

    .mega-menu .row {
        margin: 0;
    }

    .mega-menu .col-md-3 {
        padding: 0;
    }

    .navbar-toggler {
        border: none;
        padding: 8px;
        z-index: 1051;
    }

    .navbar-toggler:focus {
        box-shadow: none;
    }

    /* Hero adjustments */
    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .carousel-item {
        height: auto;
        min-height: 500px;
    }

    .hero-image {
        margin-top: 32px;
    }

    /* Stats */
    .stat-number {
        font-size: 36px;
    }

    /* Parallax */
    .parallax-section {
        background-attachment: scroll;
        height: 400px;
    }

    .parallax-title {
        font-size: 36px;
    }

    .parallax-text {
        font-size: 16px;
    }

    /* Section titles */
    .section-title {
        font-size: 32px;
    }

    /* Course carousel */
    .course-carousel-wrapper {
        padding: 0;
    }

    .carousel-btn {
        display: none;
    }
}

/* Tablet */
@media (max-width: 768px) {
    .hero-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .stat-item {
        margin-bottom: 24px;
    }
}

/* Small mobile */
@media (max-width: 576px) {
    .navbar-collapse {
        width: 90%;
    }

    .promo-content {
        font-size: 12px;
        flex-wrap: wrap;
    }

    .course-card {
        flex: 0 0 280px;
    }

    .testimonial-card {
        flex: 0 0 300px;
    }
}

/* Animations */
[data-aos] {
    pointer-events: auto;
}

.aos-animate {
    pointer-events: auto;
}
