/*
  Theme: Consultoría Financiera en Argentina
  Design System: Glassmorphism, Curved Grids Elements
  Color Scheme: Tetradic-inspired (Primary Blue, Secondary Orange, Accent Green, Accent Pink)
  Animation Style: Non-linear movements
  Fonts: Archivo Black (Headings), Roboto (Body)
*/

/* CSS Variables */
:root {
    --primary-color: #0A2463; /* Deep Blue */
    --primary-color-dark: #081D50;
    --secondary-color: #FF8C42; /* Vibrant Orange */
    --secondary-color-dark: #E07B3A;
    --accent-color-1: #4CAF50; /* Green */
    --accent-color-1-dark: #3E8E41;
    --accent-color-2: #E91E63; /* Pink/Magenta */
    --accent-color-2-dark: #C2185B;

    --neutral-light: #F8F9FA;
    --neutral-medium: #DEE2E6;
    --neutral-card-bg: #FFFFFF; /* Slightly off-white for cards if not glass */
    --neutral-dark: #343A40;
    --neutral-darker: #212529;

    --text-primary: #222222;
    --text-secondary: #555555;
    --text-light: #FFFFFF;
    --text-on-primary: #FFFFFF;
    --text-on-secondary: #FFFFFF; /* For orange buttons */
    --text-on-accent-1: #FFFFFF;
    --text-on-accent-2: #FFFFFF;

    --font-heading: 'Archivo Black', sans-serif;
    --font-body: 'Roboto', sans-serif;

    --border-radius-sm: 0.3rem;
    --border-radius-md: 0.6rem;
    --border-radius-lg: 1rem;

    --shadow-sm: 0 2px 4px rgba(0,0,0,0.07);
    --shadow-md: 0 5px 15px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);

    --glass-bg-light: rgba(255, 255, 255, 0.25);
    --glass-bg-dark: rgba(10, 36, 99, 0.35); /* Darker blueish glass */
    --glass-border-light: rgba(255, 255, 255, 0.35);
    --glass-border-dark: rgba(255, 255, 255, 0.2);
    --glass-blur: 8px;

    --transition-speed: 0.3s;
    --transition-easing: cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* General Body Styles */
body {
    font-family: var(--font-body);
    color: var(--text-secondary);
    background-color: var(--neutral-light);
    line-height: 1.7;
    font-size: 1rem; /* Base font size */
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-weight: 700; /* Archivo Black is already bold */
    line-height: 1.3;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; } /* Section titles */
h3 { font-size: 1.7rem; } /* Card titles, sub-headings */
h4 { font-size: 1.3rem; }
h5 { font-size: 1.1rem; }

@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.5rem; }
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color var(--transition-speed) var(--transition-easing);
}
a:hover {
    color: var(--secondary-color-dark);
    text-decoration: none;
}

/* Section Title Styling */
.section-title {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 5px;
    background-color: var(--secondary-color);
    border-radius: var(--border-radius-sm);
}
.text-white.section-title::after { /* For dark backgrounds */
    background-color: var(--text-light);
}


/* Global Button Styles */
.btn, button, input[type="submit"], input[type="button"] {
    font-family: var(--font-body);
    font-weight: bold;
    padding: 0.75rem 1.75rem;
    border-radius: var(--border-radius-md);
    transition: all var(--transition-speed) var(--transition-easing);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-width: 2px;
    box-shadow: var(--shadow-sm);
    font-size: 0.9rem;
}
.btn:hover, button:hover, input[type="submit"]:hover, input[type="button"]:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-on-primary);
}
.btn-primary:hover {
    background-color: var(--primary-color-dark);
    border-color: var(--primary-color-dark);
    color: var(--text-on-primary);
}
.btn-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--text-on-secondary);
}
.btn-secondary:hover {
    background-color: var(--secondary-color-dark);
    border-color: var(--secondary-color-dark);
    color: var(--text-on-secondary);
}
.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}
.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-on-primary);
}
.btn-lg {
    padding: 1rem 2.25rem;
    font-size: 1rem;
}
.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

/* Modern Form Inputs */
.modern-input {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border-dark);
    color: var(--text-light);
    border-radius: var(--border-radius-sm);
    padding: 0.75rem 1rem;
    transition: all var(--transition-speed) var(--transition-easing);
}
.modern-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}
.modern-input:focus {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(var(--secondary-color), 0.25);
    color: var(--text-light);
}
.form-label.text-light {
    color: rgba(255,255,255,0.9) !important;
}


/* Header & Navbar */
.navbar {
    padding-top: 1rem;
    padding-bottom: 1rem;
    transition: background-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}
.glass-effect-header {
    background: var(--glass-bg-light);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-bottom: 1px solid var(--glass-border-light);
    box-shadow: var(--shadow-sm);
}
.navbar-brand {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--primary-color) !important;
}
.nav-link {
    font-family: var(--font-body);
    font-weight: 700;
    color: var(--text-primary) !important;
    margin-left: 0.5rem;
    margin-right: 0.5rem;
    padding: 0.5rem 1rem !important;
    border-radius: var(--border-radius-sm);
    transition: color var(--transition-speed) ease, background-color var(--transition-speed) ease;
}
.nav-link:hover, .nav-link.active {
    color: var(--secondary-color) !important;
    /* background-color: rgba(var(--primary-color), 0.1); */
}
.navbar-toggler {
    border-color: rgba(var(--primary-color), 0.5);
}
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(10, 36, 99, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}


/* Hero Section */
.hero-section {
    min-height: 85vh; /* Reduced from 100vh */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
    padding: 6rem 0; /* Added padding */
}
.hero-section .background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(10, 36, 99, 0.7), rgba(20, 50, 120, 0.5)); /* Dark blue overlay */
    z-index: 1;
}
.hero-section .container {
    position: relative;
    z-index: 2;
}
.hero-title {
    font-family: var(--font-heading);
    color: var(--text-light) !important; /* IMPORTANT: Hero text white */
    font-size: 3.5rem;
    font-weight: bold;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}
.hero-subtitle {
    font-family: var(--font-body);
    color: var(--text-light) !important; /* IMPORTANT: Hero text white */
    font-size: 1.3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2rem;
    line-height: 1.8;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.3);
}
.hero-cta {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--text-on-secondary);
    padding: 0.8rem 2.5rem;
    font-size: 1.1rem;
}
.hero-cta:hover {
    background-color: var(--secondary-color-dark);
    border-color: var(--secondary-color-dark);
    color: var(--text-on-secondary);
}

@media (max-width: 768px) {
    .hero-section { min-height: 70vh; padding: 4rem 0; }
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.1rem; }
}

/* General Section Styling */
section {
    padding: 4rem 0; /* Reduced default padding */
}
section:nth-of-type(even).bg-light-textured { /* Example for textured bg */
    background-color: #f1f5f9; /* A very light gray, slightly different from default */
}


/* Glassmorphism Effect Sections */
.glass-effect-section, .glass-effect-light, .glass-effect-dark {
    background: var(--glass-bg-light);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border-light);
    border-radius: var(--border-radius-lg);
    padding: 2rem; /* Padding for glass elements */
    box-shadow: var(--shadow-md);
}
.glass-effect-dark {
    background: var(--glass-bg-dark);
    border: 1px solid var(--glass-border-dark);
    color: var(--text-light);
}
.glass-effect-dark .section-title, .glass-effect-dark h1, .glass-effect-dark h2, .glass-effect-dark h3, .glass-effect-dark h4, .glass-effect-dark p {
    color: var(--text-light);
}
.glass-effect-dark .section-title::after {
    background-color: var(--secondary-color);
}


/* Parallax Backgrounds */
.parallax-bg {
    background-attachment: fixed; /* Simple parallax */
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}
.parallax-bg .background-overlay-darker { /* For contact form bg */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.65); /* Darker overlay */
    z-index: 1;
}
.parallax-bg .container {
    position: relative;
    z-index: 2;
}


/* Mission Section */
#mission img {
    border-radius: var(--border-radius-lg);
}

/* Statistics Section */
.stat-card {
    background-color: var(--neutral-card-bg);
    border-radius: var(--border-radius-md);
    transition: transform var(--transition-speed) var(--transition-easing), box-shadow var(--transition-speed) var(--transition-easing);
}
.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}
.stat-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}
.stat-label {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}
.progress {
    height: 12px !important;
    border-radius: var(--border-radius-sm);
    background-color: var(--neutral-medium);
}
.progress-bar {
    border-radius: var(--border-radius-sm);
    background-color: var(--accent-color-1); /* Green as default progress */
}
.progress-bar.bg-success { background-color: var(--accent-color-1) !important; }
.progress-bar.bg-info { background-color: var(--accent-color-1) !important; } /* Using accent-1 for consistency */
.progress-bar.bg-warning { background-color: var(--secondary-color) !important; }


/* Services, Projects, Blog Cards */
.card {
    display: flex;
    flex-direction: column;
    align-items: center; /* STRICT: centers .card-image and .card-content if their width is not 100% */
    background-color: var(--neutral-card-bg);
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden; /* Important for child border-radius */
    height: 100%; /* For equal height cards in a row */
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    text-align: center; /* STRICT: center content within the card */
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}
.card .card-image {
    width: 100%;
    height: 220px; /* Consistent height for card images */
    overflow: hidden;
}
.card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.card:hover .card-image img {
    transform: scale(1.08);
}
.card .card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Handles variable content height better */
    width: 100%; /* Ensure it takes full width */
}
.card .card-title {
    font-family: var(--font-heading);
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-size: 1.4rem; /* Slightly smaller for cards */
}
.card .card-text {
    font-family: var(--font-body);
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    flex-grow: 1;
}
.card .btn, .card a[class*="btn"] {
    margin-top: 1rem; /* Ensure space above button */
    align-self: center; /* Explicitly center button */
}

/* Specific card type adjustments if needed */
.project-card .card-image { height: 240px; }
.blog-card .card-image { height: 200px; }


/* Insights Section */
.insight-card {
    background-color: var(--neutral-card-bg);
    height: 100%;
}
.insight-card .insight-title {
    color: var(--primary-color);
    font-size: 1.5rem;
}
.insight-card .insight-text {
    font-size: 0.95rem;
}
.insight-card a.btn-sm { /* Style for "Read more" link in insights */
    font-weight: bold;
    text-transform: uppercase;
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}
.insight-card a.btn-sm:hover {
    background-color: var(--secondary-color);
    color: var(--text-on-secondary);
}

/* Success Stories (Timeline) */
.timeline {
    position: relative;
    padding: 20px 0;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--neutral-medium);
    transform: translateX(-50%);
    border-radius: 2px;
}
.timeline-item {
    position: relative;
    margin-bottom: 50px;
    width: 50%;
}
.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 50px;
    text-align: right;
}
.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 50px;
    text-align: left;
}
.timeline-img {
    position: absolute;
    top: 0;
    width: 20px;
    height: 20px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    z-index: 1;
    border: 3px solid var(--neutral-light);
}
.timeline-item:nth-child(odd) .timeline-img {
    right: -10px;
    transform: translateX(50%);
}
.timeline-item:nth-child(even) .timeline-img {
    left: -10px;
    transform: translateX(-50%);
}
.timeline-content {
    background: var(--neutral-card-bg); /* Can be .glass-effect-light */
    border-radius: var(--border-radius-md);
    padding: 20px;
    box-shadow: var(--shadow-md);
}
.timeline-content h4 {
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}
.timeline-content .text-muted {
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.75rem;
}
.timeline-content img { /* Client logos */
    border-radius: 50%;
    border: 2px solid var(--neutral-medium);
}

@media (max-width: 768px) {
    .timeline::before { left: 20px; }
    .timeline-item {
        width: 100%;
        padding-left: 50px;
        padding-right: 0;
        text-align: left !important; /* Override for mobile */
        left: 0 !important; /* Override for mobile */
    }
    .timeline-item:nth-child(odd) { padding-right: 0; }
    .timeline-item:nth-child(even) { padding-left: 50px; }

    .timeline-img { left: 10px !important; transform: translateX(0) !important; }
    .timeline-item:nth-child(odd) .timeline-img,
    .timeline-item:nth-child(even) .timeline-img {
        left: 10px !important;
        transform: translateX(0) !important;
    }
}


/* Events Calendar Section */
.event-list .event-item {
    background-color: var(--neutral-card-bg);
    border-left: 5px solid var(--primary-color);
}
.event-date {
    text-align: center;
}
.event-date .event-month {
    display: block;
    font-size: 0.9rem;
    color: var(--primary-color);
    text-transform: uppercase;
    font-weight: bold;
}
.event-date .event-day {
    display: block;
    font-size: 2.2rem;
    font-family: var(--font-heading);
    color: var(--secondary-color);
    line-height: 1;
}
.event-date .event-year {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
}
.event-details h4 {
    color: var(--primary-color);
    font-size: 1.4rem;
}
.event-details .text-muted {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}
.event-details .text-muted i {
    margin-right: 5px;
    color: var(--secondary-color);
}

/* External Resources Section */
#external-resources .list-group-item {
    background-color: var(--neutral-card-bg);
    border: 1px solid var(--neutral-medium);
    transition: box-shadow var(--transition-speed) ease;
}
#external-resources .list-group-item:hover {
    box-shadow: var(--shadow-md);
}
#external-resources .list-group-item h4 a {
    color: var(--primary-color);
    font-family: var(--font-body);
    font-weight: bold;
    font-size: 1.1rem;
}
#external-resources .list-group-item h4 a:hover {
    color: var(--secondary-color);
}

/* Contact Form Section */
.contact-form-container {
    color: var(--text-light); /* For labels if not already set */
}
/* Uses .modern-input and .modern-button (covered by .btn) */


/* Footer */
.glass-effect-footer {
    background: var(--glass-bg-dark); /* Darker glass for footer */
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-top: 1px solid var(--glass-border-dark);
    color: rgba(255,255,255,0.8);
    padding-top: 3rem;
    padding-bottom: 1rem;
}
.footer-title {
    font-family: var(--font-heading);
    color: var(--text-light);
    text-transform: uppercase;
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    letter-spacing: 1px;
}
.footer-text, .footer-link {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}
.footer-link:hover {
    color: var(--secondary-color);
}
.footer-bottom-text {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    border-top: 1px solid rgba(255,255,255,0.15) !important;
}
.footer-social-links a {
    /* Styles for text-based social links if needed beyond .footer-link */
    display: inline-block;
    margin: 0 0.5rem;
}

/* Utility Classes */
.bg-light-textured {
    /* background-image: url('path/to/light_texture.png'); */ /* Optional texture */
    background-color: #f9fafc; /* Slightly off-white */
}

/* Success Page Styling */
.success-page-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
    padding: 2rem;
    background-color: var(--primary-color); /* Example background */
    color: var(--text-light);
}
.success-page-container h1 {
    color: var(--text-light);
    font-size: 3rem;
}
.success-page-container p {
    color: rgba(255,255,255,0.85);
    font-size: 1.2rem;
}
.success-page-container .btn {
    margin-top: 2rem;
}

/* Privacy & Terms Page Content Wrapper */
.legal-page-content {
    padding-top: 120px; /* Adjust based on fixed header height + extra space */
    padding-bottom: 60px; /* Space at the bottom */
    min-height: calc(100vh - 180px); /* Approximate footer height */
}
.legal-page-content h1 {
    margin-bottom: 2rem;
}
.legal-page-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Cookie Popup - Basic styles are in HTML, can be enhanced here if needed */
#cookiePopup {
    /* Additional styles if bootstrap overrides or more complex design is needed */
    font-family: var(--font-body);
}
#cookiePopup p {
    color: #fff;
}
#acceptCookie {
    background-color: var(--secondary-color); /* Using secondary color for accept */
    color: var(--text-on-secondary);
}
#acceptCookie:hover {
    background-color: var(--secondary-color-dark);
}
#cookiePopup a {
    color: var(--secondary-color-light); /* A lighter orange or white */
}
#cookiePopup a:hover {
    color: var(--text-light);
}


/* Animation Keyframes (Example - ScrollReveal will handle most) */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.sr-init { visibility: hidden; } /* For ScrollReveal */

/* Responsive Adjustments for Sections (padding) */
@media (max-width: 991px) {
    section { padding: 3rem 0; }
    .section-title { font-size: 2rem; margin-bottom: 2rem; }
    .section-title::after { width: 80px; height: 4px; }
}
@media (max-width: 767px) {
    section { padding: 2.5rem 0; }
    .section-title { font-size: 1.8rem; margin-bottom: 1.5rem; }
    .section-title::after { width: 60px; height: 3px; }
    .timeline-item:nth-child(odd), .timeline-item:nth-child(even) {
      padding-left: 30px; /* Adjust timeline padding for mobile */
    }
    .timeline-img {
        width: 16px;
        height: 16px;
        border-width: 2px;
    }
    .timeline-item:nth-child(odd) .timeline-img,
    .timeline-item:nth-child(even) .timeline-img {
        left: 12px !important; /* Adjust so it aligns with the new left line */
    }
    .timeline::before {
        left: 20px; /* Ensure line and dots align */
    }
}