/* ===================================================================
   1. VARIABLES
=================================================================== */
:root {
    /* Color Palette (Triadic a la YPF) */
    --bg-color: #EAF0F6; /* Light, slightly blue-tinted gray for neumorphism */
    --primary-color: #005B9A; /* YPF Blue */
    --secondary-color: #F7C548; /* Warm Gold/Yellow */
    --accent-color: #03A688; /* A teal/green for accents and sustainability */
    
    /* Text Colors */
    --text-color: #495057; /* Dark gray for body */
    --heading-color: #212529; /* Darker for headings */
    --light-text-color: #FFFFFF;

    /* Neumorphism Shadows */
    --light-shadow: rgba(255, 255, 255, 0.9);
    --dark-shadow-color: rgba(163, 177, 198, 0.6);
    --neumorphic-shadow-outset: 8px 8px 16px var(--dark-shadow-color), -8px -8px 16px var(--light-shadow);
    --neumorphic-shadow-inset: inset 8px 8px 16px var(--dark-shadow-color), inset -8px -8px 16px var(--light-shadow);
    --neumorphic-shadow-outset-sm: 4px 4px 8px var(--dark-shadow-color), -4px -4px 8px var(--light-shadow);
    --neumorphic-shadow-inset-sm: inset 4px 4px 8px var(--dark-shadow-color), inset -4px -4px 8px var(--light-shadow);

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

    /* Transitions & Animations */
    --transition-speed: 0.3s;
    --transition-bouncy: cubic-bezier(0.68, -0.55, 0.27, 1.55);
}


/* ===================================================================
   2. GLOBAL STYLES & RESET
=================================================================== */
body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--heading-color);
    font-weight: 700;
    line-height: 1.3;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-speed) ease-in-out;
}

a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.btn-link {
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
    color: var(--primary-color);
    text-decoration: none;
    position: relative;
    padding-bottom: 2px;
}

.btn-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width var(--transition-speed) ease;
}

.btn-link:hover::after {
    width: 100%;
}


/* ===================================================================
   3. UTILITY & LAYOUT CLASSES
=================================================================== */
.section-padding {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-align: center;
    color: var(--heading-color);
}

.section-intro {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    margin-bottom: 40px;
}

.bg-light-neumorphic {
    background-color: #dde3ea; /* A slightly different shade for variation */
}

/* ===================================================================
   4. ANIMATIONS
=================================================================== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s var(--transition-bouncy);
}

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


/* ===================================================================
   5. COMPONENT STYLES
=================================================================== */

/* --- Header --- */
.header .navbar {
    background-color: var(--bg-color);
    box-shadow: var(--neumorphic-shadow-outset-sm);
    padding: 1rem 0;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--primary-color) !important;
}

.navbar-toggler {
    border: none;
    padding: 0.5rem 0.75rem;
    box-shadow: var(--neumorphic-shadow-outset-sm);
    transition: all var(--transition-speed) var(--transition-bouncy);
}

.navbar-toggler:focus {
    box-shadow: var(--neumorphic-shadow-inset-sm);
}

.navbar-toggler:active {
    transform: scale(0.95);
    box-shadow: var(--neumorphic-shadow-inset-sm);
}

.nav-link {
    font-weight: 500;
    margin: 0 10px;
    color: var(--text-color) !important;
    transition: color var(--transition-speed) ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color) !important;
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    min-height: 90vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Parallax effect */
}

.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3));
    z-index: 0;
}

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

.hero-title {
    font-size: 4rem;
    color: var(--light-text-color);
    text-transform: uppercase;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--light-text-color);
    max-width: 800px;
    margin: 20px auto 0;
}

/* --- Global Button Styles --- */
.neumorphic-button, .neumorphic-button-cta, button, .btn {
    border: none;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: bold;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    background-color: var(--bg-color);
    color: var(--primary-color);
    box-shadow: var(--neumorphic-shadow-outset);
    transition: all var(--transition-speed) var(--transition-bouncy);
}

.neumorphic-button:hover, .neumorphic-button-cta:hover, button:hover, .btn:hover {
    color: var(--primary-color);
    box-shadow: var(--neumorphic-shadow-outset-sm);
}

.neumorphic-button:active, .neumorphic-button-cta:active, button:active, .btn:active {
    box-shadow: var(--neumorphic-shadow-inset);
    transform: scale(0.98);
}

.neumorphic-button-cta, .btn-primary {
    background-color: var(--primary-color) !important;
    color: var(--light-text-color) !important;
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.2), -4px -4px 10px rgba(255, 255, 255, 0.7), inset 1px 1px 1px rgba(255,255,255,0.4), inset -1px -1px 1px rgba(0,0,0,0.2) !important;
}

.neumorphic-button-cta:hover, .btn-primary:hover {
    color: var(--light-text-color) !important;
    background-color: #006fbb !important;
}

.neumorphic-button-cta:active, .btn-primary:active {
    background-color: #00528c !important;
    box-shadow: inset 4px 4px 10px rgba(0, 0, 0, 0.3), inset -4px -4px 10px rgba(255, 255, 255, 0.1) !important;
}

/* --- Cards --- */
.neumorphic-card, .neumorphic-outset, .neumorphic-outset-deep {
    background-color: var(--bg-color);
    border-radius: 20px;
    box-shadow: var(--neumorphic-shadow-outset);
    transition: all var(--transition-speed) var(--transition-bouncy);
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
}

.card:hover, .neumorphic-card:hover {
    transform: translateY(-10px);
    box-shadow: 12px 12px 24px var(--dark-shadow-color), -12px -12px 24px var(--light-shadow);
}

.card-image {
    border-radius: 20px 20px 0 0;
    overflow: hidden;
    height: 200px;
    width: 100%;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Specific for Clientele Slider */
.neumorphic-card-slider {
    text-align: left;
    flex-direction: row;
}
.neumorphic-card-slider .card-image {
    height: 100%;
    border-radius: 20px 0 0 20px;
}

/* --- Progress Indicators --- */
.progress-indicator {
    width: 100%;
    height: 25px;
    background: var(--bg-color);
    border-radius: 15px;
    box-shadow: var(--neumorphic-shadow-inset-sm);
    padding: 4px;
}

.progress-bar-neumorphic {
    height: 100%;
    border-radius: 12px;
    background: linear-gradient(145deg, var(--accent-color), #028e74);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
    color: var(--light-text-color);
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
}

/* --- External Resources Section --- */
.card-link {
    text-decoration: none;
    color: inherit;
}
.card-link:hover .neumorphic-outset {
    transform: translateY(-5px);
    box-shadow: 10px 10px 20px var(--dark-shadow-color), -10px -10px 20px var(--light-shadow);
}
.card-link .neumorphic-outset h5 {
    color: var(--primary-color);
}

/* --- FAQ Accordion --- */
.accordion-neumorphic .accordion-item {
    border: none;
    background-color: transparent;
    border-radius: 15px;
    box-shadow: var(--neumorphic-shadow-outset);
    overflow: hidden; /* Important for border-radius */
}

.accordion-neumorphic .accordion-header {
    border-radius: 15px;
}

.accordion-neumorphic .accordion-button {
    background-color: var(--bg-color);
    color: var(--heading-color);
    font-weight: 500;
    font-family: var(--font-body);
    box-shadow: none;
    border-radius: 15px;
}

.accordion-neumorphic .accordion-button:not(.collapsed) {
    background-color: var(--bg-color);
    box-shadow: var(--neumorphic-shadow-inset-sm);
    color: var(--primary-color);
}

.accordion-neumorphic .accordion-button:focus {
    box-shadow: none;
}

.accordion-neumorphic .accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23005B9A'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-neumorphic .accordion-body {
    padding: 1.5rem;
    background-color: var(--bg-color);
}


/* --- Contact Form --- */
.neumorphic-outset-deep {
    box-shadow: var(--neumorphic-shadow-outset);
}

.form-label {
    font-weight: bold;
    color: var(--heading-color);
    margin-bottom: 0.5rem;
}

.form-control.neumorphic-inset {
    background-color: var(--bg-color);
    border: none;
    height: 50px;
    padding: 0 20px;
    border-radius: 10px;
    box-shadow: var(--neumorphic-shadow-inset);
    color: var(--text-color);
    transition: all var(--transition-speed) ease;
}

.form-control.neumorphic-inset:focus {
    box-shadow: var(--neumorphic-shadow-inset), 0 0 0 2px rgba(0, 91, 154, 0.2);
    outline: none;
}

textarea.form-control.neumorphic-inset {
    height: auto;
    padding: 15px 20px;
}

/* --- Footer --- */
.footer {
    padding: 60px 0 20px 0;
}

.footer .logo-text {
    font-size: 2rem;
}

.footer-heading {
    font-family: var(--font-heading);
    margin-bottom: 15px;
    color: var(--heading-color);
}

.footer ul {
    padding-left: 0;
}

.footer ul li {
    margin-bottom: 10px;
}

.footer ul li a {
    color: var(--text-color);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

.footer ul li a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.footer .border-top {
    border-color: rgba(0,0,0,0.1) !important;
}

/* ===================================================================
   6. PAGE-SPECIFIC STYLES
=================================================================== */

/* --- Static Pages (Privacy, Terms) --- */
.static-page-content {
    padding-top: 120px; /* Offset for sticky header */
    padding-bottom: 80px;
}
.static-page-content h1 {
    margin-bottom: 30px;
}
.static-page-content h2 {
    margin-top: 40px;
    margin-bottom: 15px;
}

/* --- Success Page --- */
.success-page-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    padding: 2rem;
}
.success-content {
    max-width: 600px;
}
.success-content h1 {
    color: var(--accent-color);
    font-size: 3rem;
}

/* ===================================================================
   7. RESPONSIVE MEDIA QUERIES
=================================================================== */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 3rem;
    }
    .section-title {
        font-size: 2rem;
    }
    .neumorphic-card-slider {
        flex-direction: column;
    }
    .neumorphic-card-slider .card-image {
        border-radius: 20px 20px 0 0;
        height: 250px;
    }
    .navbar-collapse {
        background-color: var(--bg-color);
        margin-top: 10px;
        padding: 20px;
        border-radius: 15px;
        box-shadow: var(--neumorphic-shadow-inset);
    }
}

@media (max-width: 767.98px) {
    .section-padding {
        padding: 60px 0;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-subtitle {
        font-size: 1.1rem;
    }
    .footer {
        text-align: center;
    }
    .footer .col-lg-4, .footer .col-lg-2, .footer .col-lg-3 {
        margin-bottom: 30px;
    }
}