/* ==========================================================================
   Base Styles and Variables
   ========================================================================== */
:root {
    /* Primary Colors - Monochromatic Scheme */
    --primary-50: #e6eaf7;
    --primary-100: #c0caea;
    --primary-200: #97a7dc;
    --primary-300: #6d84cd;
    --primary-400: #4e69c2;
    --primary-500: #2a4fb7;
    --primary-600: #2548b0;
    --primary-700: #1f3fa7;
    --primary-800: #19369f;
    --primary-900: #0e2690;
    
    /* Neutral Colors */
    --neutral-50: #f8f9fa;
    --neutral-100: #e9ecef;
    --neutral-200: #dee2e6;
    --neutral-300: #ced4da;
    --neutral-400: #adb5bd;
    --neutral-500: #6c757d;
    --neutral-600: #495057;
    --neutral-700: #343a40;
    --neutral-800: #212529;
    --neutral-900: #0f172a;
    
    /* Text Colors */
    --text-dark: #212529;
    --text-light: #ffffff;
    --text-muted: #6c757d;
    
    /* Transitions & Animations */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Spacing */
    --section-spacing: 5rem;
    --element-spacing: 1.5rem;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
    
    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    
    /* Z-index */
    --z-header: 100;
    --z-modal: 200;
    --z-toast: 300;
    --z-cookie: 999;
}

/* ==========================================================================
   Typography
   ========================================================================== */
body {
    font-family: 'Rubik', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--neutral-50);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1.25rem;
}

h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

h4 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1.5rem;
}

.text-primary {
    color: var(--primary-500) !important;
}

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

.text-muted {
    color: var(--text-muted) !important;
}

.fw-bold {
    font-weight: 700 !important;
}

.fw-medium {
    font-weight: 500 !important;
}

.section-title {
    position: relative;
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -0.75rem;
    left: 50%;
    width: 60px;
    height: 4px;
    background-color: var(--primary-500);
    transform: translateX(-50%);
    border-radius: 2px;
}

.section-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    color: var(--text-muted);
    font-size: 1.125rem;
}

/* ==========================================================================
   Layout & Containers
   ========================================================================== */
.container {
    position: relative;
    max-width: 1200px;
    width: 100%;
    padding-right: 1rem;
    padding-left: 1rem;
    margin-right: auto;
    margin-left: auto;
}

.section {
    padding: var(--section-spacing) 0;
    position: relative;
}

.section-lg {
    padding: calc(var(--section-spacing) * 1.5) 0;
}

.section-sm {
    padding: calc(var(--section-spacing) * 0.75) 0;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: var(--z-header);
    transition: background-color var(--transition-normal), padding var(--transition-normal);
}

.navbar {
    padding: 1rem 0;
    transition: all var(--transition-normal);
}

.navbar-dark {
    background-color: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
}

.navbar-brand {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-light);
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color var(--transition-fast);
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--text-light);
}

.navbar-toggler {
    border: none;
    padding: 0.25rem;
}

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

/* ==========================================================================
   Buttons & Links
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    font-size: 1rem;
    line-height: 1.5;
    text-align: center;
    vertical-align: middle;
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
    text-decoration: none;
    cursor: pointer;
    user-select: none;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-primary {
    background-color: var(--primary-500);
    border-color: var(--primary-500);
    color: var(--text-light);
}

.btn-primary:hover {
    background-color: var(--primary-600);
    border-color: var(--primary-600);
    color: var(--text-light);
}

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

.btn-outline-primary:hover {
    background-color: var(--primary-500);
    color: var(--text-light);
}

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

.btn-outline-light:hover {
    background-color: var(--text-light);
    color: var(--primary-500);
}

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

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

a {
    color: var(--primary-500);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-600);
}

.read-more {
    display: inline-flex;
    align-items: center;
    font-weight: 500;
    color: var(--primary-500);
    transition: all var(--transition-normal);
}

.read-more:after {
    content: '→';
    margin-left: 0.5rem;
    transition: transform var(--transition-fast);
}

.read-more:hover {
    color: var(--primary-600);
}

.read-more:hover:after {
    transform: translateX(4px);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    color: var(--text-light);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.4));
}

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

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text-light);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 600px;
    color: var(--text-light);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   Vision & Mission Sections
   ========================================================================== */
.vision-section,
.mission-section {
    position: relative;
    overflow: hidden;
}

.vision-image-container,
.mission-image-container {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.vision-image-container img,
.mission-image-container img {
    width: 100%;
    height: auto;
    transition: transform 0.8s ease;
}

.vision-image-container:hover img,
.mission-image-container:hover img {
    transform: scale(1.05);
}

.vision-content,
.mission-content {
    padding: 2rem;
}

.vision-content h3,
.mission-content h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-700);
}

.form-check-input:checked {
    background-color: var(--primary-500);
    border-color: var(--primary-500);
}

/* ==========================================================================
   Services Section & Cards
   ========================================================================== */
.card {
    display: flex;
    flex-direction: column;
    background-color: var(--neutral-50);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    height: 100%;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.card-image {
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.8s ease;
}

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

.card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.card-text {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   Accolades Section
   ========================================================================== */
.accolade-card {
    text-align: center;
}

.accolade-card .card-image {
    height: 200px;
    margin-bottom: 1rem;
}

.accolade-card .card-image img {
    height: 100%;
    object-fit: contain;
}

.accolade-card .card-title {
    color: var(--primary-700);
}

/* ==========================================================================
   Careers Section
   ========================================================================== */
.careers-section {
    background-color: var(--neutral-100);
}

.careers-image-container {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.careers-image-container img {
    width: 100%;
    height: auto;
    transition: transform 0.8s ease;
}

.careers-content {
    padding: 2rem;
}

.careers-content h3 {
    color: var(--primary-700);
    margin-bottom: 1.5rem;
}

.careers-content ul {
    margin-bottom: 1.5rem;
    padding-left: 1.25rem;
}

.careers-content li {
    margin-bottom: 0.5rem;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-section {
    background-color: var(--neutral-50);
}

.contact-info {
    padding: 2rem;
}

.contact-info h3 {
    color: var(--primary-700);
    margin-bottom: 1.5rem;
}

.contact-form-container {
    background-color: var(--neutral-50);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.contact-form-container h3 {
    color: var(--primary-700);
    margin-bottom: 1.5rem;
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-control,
.form-select {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--neutral-300);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-400);
    box-shadow: 0 0 0 0.25rem rgba(42, 79, 183, 0.25);
}

.form-check-input {
    cursor: pointer;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: var(--neutral-800);
    color: var(--text-light);
    padding: 4rem 0 2rem;
}

.footer h4,
.footer h5 {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.footer p {
    color: var(--neutral-400);
}

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

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--neutral-300);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--text-light);
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.social-links a {
    color: var(--neutral-300);
    transition: color var(--transition-fast);
}

.social-links a:hover {
    color: var(--text-light);
}

.footer .border-top {
    border-color: var(--neutral-700) !important;
}

/* ==========================================================================
   Additional Pages & Sections
   ========================================================================== */
.about-hero-section,
.contact-hero-section,
.privacy-hero-section,
.terms-hero-section {
    height: 50vh;
    display: flex;
    align-items: center;
    position: relative;
    color: var(--text-light);
}

.about-hero-overlay,
.contact-hero-overlay,
.privacy-hero-overlay,
.terms-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.about-hero-overlay::before,
.contact-hero-overlay::before,
.privacy-hero-overlay::before,
.terms-hero-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.4));
}

.about-content-section,
.privacy-content-section,
.terms-content-section {
    padding-top: 100px;
}

.privacy-content,
.terms-content {
    background-color: var(--neutral-50);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

/* Success Page */
.success-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: var(--text-light);
}

.success-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.success-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.4));
}

.success-card {
    background-color: var(--neutral-50);
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    text-align: center;
    position: relative;
    z-index: 1;
    max-width: 600px;
    width: 90%;
}

.success-icon {
    margin-bottom: 2rem;
}

.success-icon img {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

/* ==========================================================================
   Contact Info Cards & Maps
   ========================================================================== */
.contact-info-card {
    background-color: var(--neutral-50);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    height: 100%;
}

.contact-info-card h3 {
    color: var(--primary-700);
    margin-bottom: 1.5rem;
}

.map-container {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    height: 100%;
}

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

.map-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
    color: var(--text-light);
}

/* ==========================================================================
   Team Section
   ========================================================================== */
.team-card {
    text-align: center;
}

.team-card .card-image {
    height: 300px;
    margin-bottom: 1rem;
}

.team-card .card-image img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.team-card .card-title {
    margin-bottom: 0.25rem;
}

.team-card .card-subtitle {
    color: var(--primary-500);
    font-weight: 500;
    margin-bottom: 1rem;
}

/* ==========================================================================
   Cookie Consent
   ========================================================================== */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 15px;
    z-index: var(--z-cookie);
    display: none;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.cookie-content p {
    margin: 0;
    padding: 5px 0;
    flex: 1;
}

.cookie-btn {
    background-color: var(--primary-500);
    color: white;
    border: none;
    padding: 8px 20px;
    cursor: pointer;
    border-radius: var(--radius-md);
    margin-left: 15px;
    transition: background-color var(--transition-fast);
}

.cookie-btn:hover {
    background-color: var(--primary-600);
}

.cookie-link {
    color: white;
    text-decoration: underline;
}

.cookie-link:hover {
    color: var(--neutral-300);
}

/* ==========================================================================
   Animations & Effects
   ========================================================================== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.parallax-section {
    position: relative;
    overflow: hidden;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* ==========================================================================
   Recursos Section
   ========================================================================== */
.recurso-card {
    text-align: center;
}

.recurso-card .card-image {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.recurso-card .card-image img {
    max-height: 100%;
    object-fit: contain;
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */
@media (max-width: 1199.98px) {
    :root {
        --section-spacing: 4rem;
    }
    
    h1 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2.25rem;
    }
}

@media (max-width: 991.98px) {
    :root {
        --section-spacing: 3.5rem;
    }
    
    h1 {
        font-size: 2.75rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero-content h1 {
        font-size: 2.75rem;
    }
    
    .vision-content,
    .mission-content,
    .careers-content {
        padding: 1.5rem 0;
        margin-top: 2rem;
    }
}

@media (max-width: 767.98px) {
    :root {
        --section-spacing: 3rem;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .btn {
        padding: 0.625rem 1.25rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cookie-btn {
        margin-left: 0;
        margin-top: 1rem;
    }
}

@media (max-width: 575.98px) {
    :root {
        --section-spacing: 2.5rem;
    }
    
    h1 {
        font-size: 2.25rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .hero-content h1 {
        font-size: 2.25rem;
    }
    
    .section-title {
        margin-bottom: 2rem;
    }
    
    .contact-form-container,
    .privacy-content,
    .terms-content,
    .success-card {
        padding: 1.5rem;
    }
}