:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --accent-color: #43e97b;
    --text-dark: #2d3748;
    --text-light: #718096;
    --navbar-height: 70px;
    --sidebar-width: 280px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    overflow-x: hidden;
    padding-top: var(--navbar-height);
}

/* Container adjustments */
.container {
    max-width: 1140px;
}

/* Hero Section - Centrado y Mejorado */
.hero-section {
    position: relative;
    height: calc(100vh - var(--navbar-height));
    min-height: 500px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-carousel .carousel-item {
    height: calc(100vh - var(--navbar-height));
    min-height: 500px;
}

.hero-carousel .carousel-item img {
    object-fit: cover;
    height: 100%;
    width: 100%;
    filter: brightness(0.7);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
    width: 90%;
    max-width: 800px;
    transform: translateY(30px);
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
}

@keyframes fadeInUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.hero-content h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    animation: fadeInUp 1s ease 0.2s forwards;
    opacity: 0;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.3);
    animation: fadeInUp 1s ease 0.4s forwards;
    opacity: 0;
}

.hero-buttons {
    animation: fadeInUp 1s ease 0.6s forwards;
    opacity: 0;
}

.hero-btn {
    padding: 12px 30px;
    font-size: 1rem;
    border-radius: 30px;
    font-weight: 600;
    margin: 8px;
    transition: all 0.3s;
    display: inline-block;
}

.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    color: white;
}

.btn-primary-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.btn-outline-custom {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.btn-outline-custom:hover {
    background: white;
    color: var(--primary-color);
}

/* Stats Counter */
.stats-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 50px 0;
    position: relative;
    z-index: 5;
}

.stat-card {
    text-align: center;
    padding: 15px;
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.95rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Quick Actions Section */
.quick-actions {
    background: #f8f9fa;
    padding: 40px 0;
}

.quick-action-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    height: 100%;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.quick-action-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(102, 126, 234, 0.15);
    color: inherit;
    text-decoration: none;
}

.quick-action-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.5rem;
    color: white;
}

.quick-action-card h4 {
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-dark);
    font-size: 1.1rem;
}

.quick-action-card p {
    color: var(--text-light);
    line-height: 1.5;
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Section Styles */
.section {
    padding: 70px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.section-title p {
    font-size: 1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Loading */
.loading {
    text-align: center;
    padding: 30px;
    color: var(--text-light);
}

.spinner-border {
    width: 2.5rem;
    height: 2.5rem;
}

/* Responsive - Large Desktop */
@media (min-width: 1400px) {
    .container {
        max-width: 1200px;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .hero-content p {
        font-size: 1.2rem;
    }
    
    .section-title h2 {
        font-size: 2.4rem;
    }
}

/* Responsive - Desktop */
@media (min-width: 1200px) and (max-width: 1399px) {
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .section-title h2 {
        font-size: 2.2rem;
    }
}

/* Responsive - Tablet Landscape */
@media (min-width: 992px) and (max-width: 1199px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
}

/* Responsive - Tablet Portrait */
@media (min-width: 768px) and (max-width: 991px) {
    :root {
        --navbar-height: 65px;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-content p {
        font-size: 0.95rem;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .stat-number {
        font-size: 2.2rem;
    }
}

/* Responsive - Mobile Landscape */
@media (min-width: 576px) and (max-width: 767px) {
    :root {
        --navbar-height: 60px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 0.9rem;
    }
    
    .hero-btn {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
    
    .section-title h2 {
        font-size: 1.6rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }
    
    .section {
        padding: 50px 0;
    }
}

/* Responsive - Mobile Portrait */
@media (max-width: 575px) {
    :root {
        --navbar-height: 60px;
        --sidebar-width: 85%;
    }
    
    .hero-section {
        min-height: 450px;
    }
    
    .hero-carousel .carousel-item {
        min-height: 450px;
    }
    
    .hero-content h1 {
        font-size: 1.6rem;
        margin-bottom: 15px;
    }
    
    .hero-content p {
        font-size: 0.85rem;
        margin-bottom: 20px;
    }
    
    .hero-btn {
        padding: 10px 20px;
        font-size: 0.85rem;
        margin: 5px;
    }
    
    .stats-section {
        padding: 40px 0;
    }
    
    .stat-card {
        padding: 12px;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .section-title {
        margin-bottom: 30px;
    }
    
    .section-title h2 {
        font-size: 1.5rem;
    }
    
    .section-title p {
        font-size: 0.9rem;
    }
    
    .quick-action-card {
        padding: 20px;
        margin-bottom: 15px;
    }
}

/* Responsive - Very Small Mobile */
@media (max-width: 380px) {
    .hero-content h1 {
        font-size: 1.4rem;
    }
    
    .hero-content p {
        font-size: 0.8rem;
    }
    
    .section-title h2 {
        font-size: 1.3rem;
    }
    
    .stat-number {
        font-size: 1.6rem;
    }
}