/* Variables de Color - Paleta Ampliada */
:root {
    --primary-color: #0d6efd;
    --primary-dark: #0a58ca;
    --secondary-color: #ffc107;
    --secondary-dark: #e0a800;
    --accent-color: #198754;
    --accent-dark: #157347;
    --highlight-color: #6f42c1;
    --danger-color: #dc3545;
    --info-color: #0dcaf0;
    --dark-color: #212529;
    --dark-blue: #1e3c72;
    --dark-gradient: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    --warning-gradient: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
    --success-gradient: linear-gradient(135deg, #198754 0%, #20c997 100%);
    --purple-gradient: linear-gradient(135deg, #6f42c1 0%, #a569bd 100%);
    --light-color: #f8f9fa;
    --gray-color: #6c757d;
    --white: #ffffff;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.15);
    --shadow-lg: 0 8px 25px rgba(0,0,0,0.2);
}

/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding-top: 56px;
    color: #333;
    background-color: var(--white);
}

/* Navbar con gradiente */
.navbar {
    background: var(--dark-gradient) !important;
    box-shadow: var(--shadow-md);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.6rem;
    color: var(--secondary-color) !important;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255,255,255,0.9);
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--secondary-color) !important;
}

.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: 10px;
}

.dropdown-item {
    padding: 10px 20px;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: var(--dark-gradient);
    color: var(--white) !important;
    padding-left: 25px;
}

/* Hero Section con gradiente animado */
.hero-section {
    background: var(--dark-gradient);
    min-height: 650px;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-section .btn-warning {
    background: var(--warning-gradient);
    border: none;
    color: #000;
    font-weight: 700;
    padding: 12px 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-section .btn-warning:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    color: #000;
}

.hero-section .btn-outline-light {
    border-width: 2px;
    font-weight: 600;
    padding: 12px 30px;
    transition: all 0.3s ease;
}

.hero-section .btn-outline-light:hover {
    background: var(--white);
    color: var(--dark-blue) !important;
    transform: translateY(-3px);
}

/* Stats Counter */
.hero-section .text-warning {
    color: var(--secondary-color) !important;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Service Cards con colores variados */
.service-card {
    border-radius: 15px;
    transition: all 0.4s ease;
    border: 1px solid rgba(0,0,0,0.08);
    background: var(--white);
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-lg) !important;
    border-color: var(--secondary-color);
}

.service-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--warning-gradient);
    color: #000;
}

.service-card:nth-child(2) .service-icon {
    background: var(--success-gradient);
}

.service-card:nth-child(3) .service-icon {
    background: var(--purple-gradient);
}

.service-card .btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.service-card .btn-outline-primary:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Section Titles */
section h2.fw-bold {
    position: relative;
    padding-bottom: 15px;
}

section h2.fw-bold::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--warning-gradient);
    border-radius: 2px;
}

section.bg-light h2.fw-bold::after {
    background: var(--success-gradient);
}

section.bg-dark h2.fw-bold::after {
    background: var(--secondary-color);
}

/* Why Choose Us Section */
.d-flex .text-warning {
    color: var(--secondary-color) !important;
}

/* Testimonials Section */
section.bg-dark {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%) !important;
}

.card.bg-secondary {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%) !important;
    border-radius: 15px;
}

.card.bg-secondary .text-warning i {
    color: var(--secondary-color) !important;
}

/* CTA Section */
section.bg-warning {
    background: var(--warning-gradient) !important;
}

section.bg-warning .btn-dark {
    background: var(--dark-color);
    border: none;
    font-weight: 600;
}

section.bg-warning .btn-outline-dark {
    border-width: 2px;
    font-weight: 600;
}

/* Footer con gradient */
footer.bg-dark {
    background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1a 100%) !important;
}

footer h5, footer h6 {
    color: var(--secondary-color) !important;
    font-weight: 600;
}

footer .text-white-50 {
    transition: color 0.3s ease;
}

footer .text-white-50:hover {
    color: var(--secondary-color) !important;
}

footer .social-links a {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

footer .social-links a:hover {
    background: var(--secondary-color);
    color: #000 !important;
    transform: translateY(-3px);
}

/* Page Header */
.page-header {
    background: var(--dark-gradient);
    margin-top: 56px;
    padding: 80px 0;
    position: relative;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--warning-gradient);
}

/* Blog Cards */
.blog-card {
    border-radius: 15px;
    overflow: hidden;
    border: none;
    box-shadow: var(--shadow-md);
    transition: all 0.4s ease;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg) !important;
}

.blog-card .card-img-top {
    height: 200px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-card:hover .card-img-top {
    transform: scale(1.05);
}

.blog-card .badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 8px 15px;
    font-weight: 600;
}

/* Contact Form */
.contact-form .form-control {
    padding: 14px 18px;
    border-radius: 10px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.contact-form .form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.25rem rgba(255, 193, 7, 0.3);
}

.contact-form .btn-warning {
    background: var(--warning-gradient);
    border: none;
    padding: 14px 40px;
    font-weight: 600;
    border-radius: 10px;
}

/* Team Members */
.team-member {
    text-align: center;
    padding: 30px;
    border-radius: 20px;
    background: var(--white);
    box-shadow: var(--shadow-md);
    transition: all 0.4s ease;
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.team-member img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--secondary-color);
    margin-bottom: 20px;
}

.team-member .social-links a {
    width: 35px;
    height: 35px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--light-color);
    border-radius: 50%;
    color: var(--dark-color) !important;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.team-member .social-links a:hover {
    background: var(--primary-color);
    color: var(--white) !important;
}

/* Values Section */
.value-card {
    padding: 25px;
    border-radius: 15px;
    border-left: 5px solid var(--secondary-color);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.value-card:hover {
    background: linear-gradient(135deg, rgba(255,193,7,0.1) 0%, rgba(255,255,255,1) 100%);
    transform: translateX(10px);
    border-left-color: var(--primary-color);
}

.value-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.value-card:nth-child(2) i { color: var(--accent-color); }
.value-card:nth-child(3) i { color: var(--highlight-color); }
.value-card:nth-child(4) i { color: var(--info-color); }

/* Mission & Vision Cards */
.mission-card, .vision-card {
    border-radius: 20px;
    padding: 40px;
    color: var(--white);
}

.mission-card {
    background: var(--success-gradient);
}

.vision-card {
    background: var(--purple-gradient);
}

.mission-card h3, .vision-card h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

/* Blog Post Styles */
.blog-post {
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.blog-post .post-image {
    height: 400px;
    background-size: cover;
    background-position: center;
}

.blog-post .post-meta {
    display: flex;
    gap: 20px;
    color: var(--gray-color);
    font-size: 0.9rem;
}

.blog-post .post-meta i {
    color: var(--secondary-color);
    margin-right: 5px;
}

.blog-post-content {
    padding: 30px;
    line-height: 1.8;
}

.blog-post-content h2 {
    color: var(--dark-color);
    margin: 1.5rem 0 1rem;
}

.blog-post-content p {
    color: #555;
    margin-bottom: 1.5rem;
}

.blog-post-content blockquote {
    border-left: 4px solid var(--secondary-color);
    padding-left: 20px;
    margin: 25px 0;
    font-style: italic;
    color: var(--gray-color);
}

/* Sidebar Widgets */
.sidebar .widget {
    background: var(--white);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: var(--shadow-sm);
}

.sidebar .widget-title {
    font-weight: 600;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--light-color);
    margin-bottom: 20px;
    color: var(--dark-color);
}

.sidebar .search-form .form-control {
    border-radius: 10px 0 0 10px;
}

.sidebar .search-form .btn {
    border-radius: 0 10px 10px 0;
    background: var(--primary-color);
    border: none;
}

.sidebar .category-list a {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    color: #555;
    text-decoration: none;
    border-bottom: 1px dashed #eee;
    transition: color 0.3s ease;
}

.sidebar .category-list a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.sidebar .tag-cloud a {
    display: inline-block;
    padding: 6px 15px;
    margin: 3px;
    background: var(--light-color);
    border-radius: 20px;
    color: #555;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.sidebar .tag-cloud a:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Contact Info Cards */
.contact-info-card {
    text-align: center;
    padding: 30px 20px;
    border-radius: 15px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.contact-info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.contact-info-card i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    background: var(--warning-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-info-card:nth-child(2) i {
    background: var(--success-gradient);
    -webkit-background-clip: text;
}

.contact-info-card:nth-child(3) i {
    background: var(--purple-gradient);
    -webkit-background-clip: text;
}

/* Map Container */
.map-container {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    height: 400px;
}

/* Legal Pages */
.legal-content {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-md);
    line-height: 1.8;
}

.legal-content h3 {
    color: var(--dark-color);
    margin: 2rem 0 1rem;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--secondary-color);
}

.legal-content ul {
    padding-left: 20px;
}

.legal-content li {
    margin-bottom: 10px;
    color: #555;
}

/* Pagination */
.pagination .page-link {
    color: var(--primary-color);
    border-radius: 10px !important;
    margin: 0 3px;
    border: none;
    transition: all 0.3s ease;
}

.pagination .page-link:hover,
.pagination .page-item.active .page-link {
    background: var(--primary-color);
    color: var(--white);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--dark-color) 0%, #1a1a2e 100%);
    color: white;
    padding: 1.5rem 2rem;
    z-index: 9999;
    display: none;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
}

.cookie-banner.show {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-banner .btn {
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 600;
}

.cookie-banner .btn-warning {
    background: var(--secondary-color);
    border: none;
    color: #000;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.pulse {
    animation: pulse 2s infinite;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--warning-gradient);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.3);
    color: #000;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section {
        min-height: auto;
        padding: 80px 0 50px;
        text-align: center;
    }
    
    .hero-section .d-flex {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .hero-section .btn {
        width: 100%;
        max-width: 300px;
        margin-bottom: 10px;
    }
    
    section h2.fw-bold::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .cookie-banner {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    
    .cookie-banner .btn {
        width: 100%;
        max-width: 250px;
    }
}

/* Print Styles */
@media print {
    .navbar, footer, .cookie-banner, .scroll-to-top {
        display: none !important;
    }
    
    body {
        padding-top: 0;
    }
}