/*
  Theme: YPF Argentina - Estaciones de Servicio
  Design System: Minimalistic with Curved Grids elements
  Color Scheme: Gradient
  Animation Style: Elastic Animations
  Fonts: Playfair Display (Headings), Source Sans Pro (Body)
*/

/* CSS Variables */
:root {
    /* Fonts */
    --font-primary: 'Playfair Display', serif;
    --font-secondary: 'Source Sans Pro', sans-serif;

    /* Base Colors */
    --color-text: #333333;
    --color-text-light: #FFFFFF;
    --color-text-muted: #6c757d; /* Softer grey */
    --color-background-light: #FFFFFF;
    --color-background-page: #f8f9fa; /* Light grey for page background */
    --color-border: #dee2e6; /* Softer border */

    /* YPF Gradient Theme (Blue/Light Blue/White/Orange Accent) */
    --ypf-blue-deep: #002D62; /* Deeper, more corporate blue */
    --ypf-blue-medium: #0052CC; /* Standard YPF Blue */
    --ypf-blue-light: #4D88FF; /* Lighter accent blue */
    --ypf-accent-orange: #FF6700; /* Energetic Orange */
    --ypf-accent-yellow: #FCA311; /* Warm Yellow/Orange */

    --color-primary: var(--ypf-blue-medium);
    --color-primary-dark: var(--ypf-blue-deep);
    --color-primary-light: var(--ypf-blue-light);
    --color-accent: var(--ypf-accent-orange);
    --color-accent-dark: #E55C00;
    --color-accent-light: #FF8C42;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--ypf-blue-deep) 0%, var(--ypf-blue-light) 100%);
    --gradient-accent: linear-gradient(135deg, var(--color-accent) 0%, var(--ypf-accent-yellow) 100%);
    --gradient-hero-overlay: linear-gradient(to bottom, rgba(0, 20, 60, 0.6), rgba(0, 45, 98, 0.8));
    --gradient-section-alt: linear-gradient(135deg, #eef2f7 0%, #f8f9fc 100%);

    /* UI Elements */
    --button-text: var(--color-text-light);
    --button-hover-bg: var(--color-primary-dark);
    --card-bg: var(--color-background-light);
    --card-shadow: 0 10px 30px rgba(0, 45, 98, 0.1); /* Subtle blueish shadow */
    --input-border: #ced4da;
    --input-focus-border: var(--color-primary);
    --input-bg: var(--color-background-light);
    --input-text: var(--color-text);
    --input-placeholder: #a0aec0;


    /* Spacing */
    --spacing-xs: 0.5rem;  /* 8px */
    --spacing-sm: 1rem;    /* 16px */
    --spacing-md: 1.5rem;  /* 24px */
    --spacing-lg: 2rem;    /* 32px */
    --spacing-xl: 4rem;    /* 64px */
    --section-padding: var(--spacing-xl) 0;

    /* Transitions & Animations */
    --transition-speed-fast: 0.2s;
    --transition-speed-normal: 0.4s;
    --transition-easing: cubic-bezier(0.68, -0.55, 0.27, 1.55); /* Elastic bounce */

    /* Borders */
    --border-radius-sm: 5px;
    --border-radius-md: 10px;
    --border-radius-lg: 20px; /* For curved elements */
}

/* Base Styles */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px; /* Base font size */
}

body {
    font-family: var(--font-secondary);
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-background-page);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden; /* Prevent horizontal scroll from animations */
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    color: var(--ypf-blue-deep); /* Consistent dark blue for headings */
    line-height: 1.3;
    margin-bottom: var(--spacing-md);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.05);
}

h1 { font-size: 2.8rem; margin-bottom: var(--spacing-lg); }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.7rem; }
h4 { font-size: 1.4rem; }

p {
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-muted);
}

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

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
    padding-left: 0;
}

/* Layout & Helpers */
.container {
    width: 90%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--spacing-sm);
    padding-right: var(--spacing-sm);
}

.text-center {
    text-align: center;
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    position: relative;
    padding-bottom: var(--spacing-sm);
}

.section-title::after { /* Subtle underline accent */
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-accent);
    border-radius: var(--border-radius-sm);
}

.section-intro {
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: var(--spacing-lg);
    font-size: 1.1rem;
    color: var(--color-text);
}

.content-section {
    padding: var(--section-padding);
}

.alt-bg {
    background: var(--gradient-section-alt);
}

.page-banner, .page-banner-simple {
    padding: var(--spacing-xl) 0;
    text-align: center;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
}

.page-banner .page-title, .page-banner-simple .page-title {
    color: var(--color-text-light); /* White text for banners */
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
    margin-bottom: 0;
}

.page-banner-simple {
    background: var(--gradient-primary);
}

.page-banner::before, .hero-section::before { /* Overlay for banners with images */
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-hero-overlay); /* Default overlay */
    z-index: 1;
}

.page-banner > .container, .hero-section > .container {
    position: relative;
    z-index: 2;
}

/* Buttons - GLOBAL STYLES */
.cta-button, button, input[type="submit"], input[type="button"] {
    display: inline-block;
    font-family: var(--font-secondary);
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--button-text);
    background: var(--gradient-primary);
    border: none;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: transform var(--transition-speed-fast) var(--transition-easing),
                box-shadow var(--transition-speed-fast) ease-in-out,
                background-size var(--transition-speed-normal) ease-in-out;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 82, 204, 0.3);
    background-size: 100% 100%;
}

.cta-button:hover, button:hover, input[type="submit"]:hover, input[type="button"]:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 25px rgba(0, 82, 204, 0.4);
    background: var(--gradient-accent); /* Change gradient on hover for visual feedback */
    color: var(--color-text-light);
    text-decoration: none;
}

.cta-button:active, button:active, input[type="submit"]:active, input[type="button"]:active {
    transform: translateY(0px) scale(1);
    box-shadow: 0 2px 10px rgba(0, 82, 204, 0.2);
}

/* Header & Navigation */
.site-header {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: var(--spacing-sm) 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: background-color var(--transition-speed-normal) ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 50px; /* Adjust as needed */
    width: auto;
}

.main-navigation .nav-list {
    display: flex;
    align-items: center;
}

.main-navigation .nav-list li {
    margin-left: var(--spacing-md);
}

.main-navigation .nav-list a {
    font-family: var(--font-secondary);
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius-sm);
    transition: color var(--transition-speed-fast) ease, background-color var(--transition-speed-fast) ease;
}

.main-navigation .nav-list a:hover,
.main-navigation .nav-list a.active { /* Assuming JS adds .active */
    color: var(--color-text-light);
    background-color: var(--color-accent);
    text-decoration: none;
}

.menu-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.hamburger-icon {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--color-primary);
    position: relative;
    transition: background-color 0s var(--transition-speed-fast); /* Delay hiding the middle bar */
}

.hamburger-icon::before,
.hamburger-icon::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-primary);
    transition: transform var(--transition-speed-normal) var(--transition-easing);
}

.hamburger-icon::before { top: -8px; }
.hamburger-icon::after { bottom: -8px; }

/* Mobile Menu Open State */
.menu-toggle[aria-expanded="true"] .hamburger-icon {
    background-color: transparent; /* Hide middle bar */
}
.menu-toggle[aria-expanded="true"] .hamburger-icon::before {
    transform: translateY(8px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] .hamburger-icon::after {
    transform: translateY(-8px) rotate(-45deg);
}


/* Hero Section */
.hero-section {
    min-height: 80vh; /* Ensure hero is substantial but not excessively tall */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
    color: var(--color-text-light); /* Default text color for hero */
}

.hero-content h1.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: var(--color-text-light); /* STROGO: White text */
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
}

.hero-content p.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: var(--spacing-lg);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: var(--color-text-light); /* STROGO: White text */
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.5);
}

.hero-section .cta-button {
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: 1.1rem;
}

/* Cards - Generic Styles */
.card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius-lg); /* Curved grids feel */
    box-shadow: var(--card-shadow);
    overflow: hidden;
    transition: transform var(--transition-speed-normal) var(--transition-easing),
                box-shadow var(--transition-speed-normal) ease;
    display: flex;
    flex-direction: column;
    /* align-items: center; /* СТРОГО: центрирование содержимого */
    height: 100%; /* Ensure cards in a grid take full height of their row */
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 45, 98, 0.15);
}

.card-image { /* СТРОГО: контейнер для изображения */
    width: 100%;
    height: 250px; /* Fixed height for image containers */
    overflow: hidden;
    display: flex; /* For centering the image itself if it's smaller */
    justify-content: center;
    align-items: center;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* СТРОГО: корректное отображение */
    transition: transform var(--transition-speed-slow) var(--transition-easing);
}

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

.card-content {
    padding: var(--spacing-md);
    flex-grow: 1; /* Allows content to take available space, useful for flex column */
    display: flex;
    flex-direction: column;
    text-align: center; /* СТРОГО: центрирование текста в карточке */
}

.card-content h3 {
    font-size: 1.4rem;
    margin-bottom: var(--spacing-sm);
    color: var(--color-primary-dark);
}

.card-content p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-md);
    flex-grow: 1; /* Pushes elements below (like a read more link) to the bottom */
}

.card-content .read-more-link {
    font-weight: 600;
    color: var(--color-accent);
    text-transform: uppercase;
    font-size: 0.9em;
    letter-spacing: 0.5px;
    display: inline-block;
    margin-top: auto; /* Pushes to the bottom if card-content is flex */
    padding: var(--spacing-xs) 0;
    position: relative;
}

.card-content .read-more-link::after {
    content: ' →';
}

.card-content .read-more-link:hover {
    color: var(--color-accent-dark);
    text-decoration: none;
}

/* History Section - Timeline */
.timeline {
    position: relative;
    max-width: 900px;
    margin: var(--spacing-xl) auto;
}

.timeline::before { /* The central line */
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: var(--gradient-accent);
    transform: translateX(-50%);
    border-radius: var(--border-radius-sm);
}

.timeline-item {
    position: relative;
    margin-bottom: var(--spacing-lg);
    width: 50%;
    padding: var(--spacing-sm) var(--spacing-lg);
}

.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: calc(var(--spacing-lg) + 25px); /* Space for the dot */
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: calc(var(--spacing-lg) + 25px); /* Space for the dot */
    text-align: left;
}

.timeline-item::after { /* The dot on the line */
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--color-accent);
    border: 4px solid var(--color-background-page);
    top: 15px;
    z-index: 1;
    box-shadow: 0 0 10px rgba(255, 103, 0, 0.5);
}

.timeline-item:nth-child(odd)::after {
    right: -10px; /* (20/2) */
    transform: translateX(50%);
}

.timeline-item:nth-child(even)::after {
    left: -10px; /* (20/2) */
    transform: translateX(-50%);
}

.timeline-content {
    background-color: var(--card-bg);
    padding: var(--spacing-md);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--card-shadow);
    position: relative;
}
.timeline-content .card-image { /* Specific for timeline images */
    height: auto; /* Allow natural height */
    max-height: 300px; /* But cap it */
    margin-bottom: var(--spacing-sm);
    border-radius: var(--border-radius-md);
    overflow: hidden;
}
.timeline-content .card-image img {
    border-radius: var(--border-radius-md);
}

.timeline-title {
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
}

/* Insights Section */
.insights-grid, .press-grid, .resources-grid, .gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

/* Gallery Section */
.gallery-item {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    position: relative;
    aspect-ratio: 4 / 3; /* Maintain aspect ratio */
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-speed-slow) var(--transition-easing), filter var(--transition-speed-normal) ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
    filter: brightness(1.1) contrast(1.1);
}

/* Behind the Scenes - Toggles */
.toggles-container {
    max-width: 800px;
    margin: 0 auto;
}

.toggle-item {
    margin-bottom: var(--spacing-md);
    background-color: var(--card-bg);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--card-shadow);
    overflow: hidden;
}

.toggle-button {
    width: 100%;
    background-color: transparent;
    color: var(--color-primary-dark);
    padding: var(--spacing-md);
    text-align: left;
    font-size: 1.2rem;
    font-weight: 600;
    font-family: var(--font-primary);
    border: none;
    border-radius: 0; /* Remove button specific radius if inside card */
    box-shadow: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color var(--transition-speed-fast) ease;
}
.toggle-button:hover {
    background-color: rgba(0, 82, 204, 0.05);
    transform: none; /* Override global button hover transform */
}

.toggle-button::after { /* Arrow icon */
    content: '+';
    font-size: 1.5rem;
    color: var(--color-accent);
    transition: transform var(--transition-speed-normal) var(--transition-easing);
}

.toggle-button[aria-expanded="true"]::after {
    content: '−';
    transform: rotate(180deg);
}

.toggle-content {
    padding: 0 var(--spacing-md) var(--spacing-md) var(--spacing-md);
    display: none; /* JS will toggle this */
}
.toggle-content .card-image {
    margin-bottom: var(--spacing-sm);
    border-radius: var(--border-radius-md);
    overflow: hidden;
}

.toggle-content p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* Press Section */
.press-card .press-date {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-xs);
}

/* External Resources Section */
.resource-card h3 a {
    color: var(--color-primary-dark);
    font-family: var(--font-primary);
}
.resource-card h3 a:hover {
    color: var(--color-accent);
}

/* Contact Form (on Contact Page and potentially elsewhere) */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
    color: var(--color-text);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: var(--spacing-sm);
    border: 1px solid var(--input-border);
    border-radius: var(--border-radius-md);
    font-family: var(--font-secondary);
    font-size: 1rem;
    background-color: var(--input-bg);
    color: var(--input-text);
    transition: border-color var(--transition-speed-fast) ease, box-shadow var(--transition-speed-fast) ease;
}

.form-group input[type="text"]::placeholder,
.form-group input[type="email"]::placeholder,
.form-group textarea::placeholder {
    color: var(--input-placeholder);
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--input-focus-border);
    box-shadow: 0 0 0 0.2rem rgba(0, 82, 204, 0.25);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-submit-button {
    align-self: flex-start; /* Or center, depending on design */
}

/* Contact Page Specifics */
.contact-page-section .contact-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
}

@media (min-width: 992px) {
    .contact-page-section .contact-wrapper {
        grid-template-columns: 2fr 1fr; /* Form takes more space */
    }
}

.contact-info-container .contact-details {
    margin-top: var(--spacing-md);
}

.contact-info-container .contact-details li {
    margin-bottom: var(--spacing-sm);
    font-size: 1rem;
    color: var(--color-text);
}

.contact-info-container .contact-details strong {
    color: var(--color-primary-dark);
    margin-right: var(--spacing-xs);
}

.map-placeholder {
    margin-top: var(--spacing-md);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--card-shadow);
}
.map-placeholder img {
    width: 100%;
    height: auto; /* Adjust height as needed or use aspect-ratio */
    max-height: 300px;
    object-fit: cover;
}
.map-caption {
    font-size: 0.9rem;
    text-align: center;
    padding: var(--spacing-xs);
    background-color: #f0f0f0;
    color: var(--color-text-muted);
}


/* Privacy & Terms Pages */
.text-content {
    padding-top: 100px; /* ВАЖНО: отступ для privacy/terms */
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.text-content h2 {
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
}
.text-content h3 {
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-xs);
}
.text-content ul {
    list-style: disc;
    padding-left: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
}
.text-content ul li {
    margin-bottom: var(--spacing-xs);
}


/* Success Page */
.success-page-section {
    min-height: 100vh; /* ВАЖНО */
    display: flex;
    flex-direction: column;
    align-items: center; /* ВАЖНО */
    justify-content: center; /* ВАЖНО */
    text-align: center;
    padding: var(--spacing-md);
}

.success-page-section .section-title {
    color: var(--color-primary-dark);
}

.success-message {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-md);
    max-width: 600px;
}

.success-icon {
    width: 100px;
    height: 100px;
    margin-bottom: var(--spacing-lg);
    animation: bounceIn var(--transition-speed-slow) var(--transition-easing); /* Animate.css class */
}


/* Footer */
.site-footer {
    background: var(--ypf-blue-deep);
    color: rgba(255, 255, 255, 0.8);
    padding: var(--spacing-xl) 0 var(--spacing-md) 0;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.site-footer h4 {
    font-family: var(--font-primary);
    color: var(--color-text-light);
    font-size: 1.3rem;
    margin-bottom: var(--spacing-md);
    position: relative;
    padding-bottom: var(--spacing-xs);
}
.site-footer h4::after { /* Accent for footer titles */
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--ypf-accent-orange);
    border-radius: var(--border-radius-sm);
}


.footer-nav ul li, .footer-social ul li {
    margin-bottom: var(--spacing-xs);
}

.footer-nav ul li a, .footer-social ul li a {
    color: rgba(255, 255, 255, 0.8);
    transition: color var(--transition-speed-fast) ease, padding-left var(--transition-speed-fast) ease;
    display: inline-block; /* For padding effect */
}

.footer-nav ul li a:hover, .footer-social ul li a:hover {
    color: var(--color-text-light);
    text-decoration: none;
    padding-left: var(--spacing-xs); /* Slight indent on hover */
}

.footer-info p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    h1 { font-size: 2.3rem; }
    h2 { font-size: 1.9rem; }

    .hero-content h1.hero-title { font-size: 2.8rem; }
    .hero-content p.hero-subtitle { font-size: 1.1rem; }

    .timeline::before { left: 20px; transform: none; }
    .timeline-item { width: 100%; padding-left: 50px; padding-right: var(--spacing-sm); text-align: left !important; }
    .timeline-item:nth-child(odd), .timeline-item:nth-child(even) { left: 0; }
    .timeline-item::after { left: 20px; transform: translateX(-50%); }
}

@media (max-width: 767px) {
    .main-navigation .menu-toggle {
        display: block; /* Show hamburger */
        z-index: 1001; /* Above nav list */
    }

    .main-navigation .nav-list {
        display: none; /* Hide on mobile by default */
        flex-direction: column;
        position: absolute;
        top: 100%; /* Position below header */
        left: 0;
        width: 100%;
        background-color: var(--color-background-light);
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        padding: var(--spacing-md) 0;
    }

    .main-navigation .nav-list.is-active {
        display: flex; /* Show when active */
    }

    .main-navigation .nav-list li {
        margin-left: 0;
        width: 100%;
        text-align: center;
    }

    .main-navigation .nav-list a {
        display: block;
        padding: var(--spacing-sm);
        width: 100%;
        border-bottom: 1px solid var(--color-border);
    }
    .main-navigation .nav-list li:last-child a {
        border-bottom: none;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.7rem; }
    .hero-content h1.hero-title { font-size: 2.2rem; }

    .insights-grid, .press-grid, .resources-grid, .gallery-grid {
        grid-template-columns: 1fr; /* Single column on small screens */
    }

    .contact-page-section .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .site-footer h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
}


/* Animate.css integration - Example usage for elements animated on scroll */
/* JS will add 'animate__animated' and the specific animation class like 'animate__fadeInUp' */
[data-animation] {
    /*opacity: 0; !* Initially hidden if JS is not fast enough *!*/
}

/* Cookie Consent Popup - from HTML styles, slightly enhanced */
.cookie-consent-popup {
    font-family: var(--font-secondary);
    background-color: rgba(26, 26, 46, 0.9); /* --color-background-dark with alpha */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.cookie-consent-popup p {
    color: var(--color-text-light);
    font-size: 0.9rem;
}

.cookie-consent-popup button {
    background: var(--ypf-blue-medium);
    color: var(--color-text-light);
    box-shadow: none; /* Remove default button shadow */
    transition: background-color var(--transition-speed-fast) ease;
}

.cookie-consent-popup button:hover {
    background: var(--ypf-blue-dark);
    transform: none; /* Simpler hover for cookie buttons */
}

.cookie-consent-popup .close-cookie-btn {
    background-color: var(--color-text-muted);
}
.cookie-consent-popup .close-cookie-btn:hover {
    background-color: #5a6268;
}

/* Parallax placeholder (JS will handle actual effect) */
.parallax-background {
    background-attachment: fixed; /* Simple CSS parallax, might not work well everywhere */
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Glassmorphism example class (apply to elements as needed) */
.glass-effect {
    background: rgba(255, 255, 255, 0.1); /* Light, semi-transparent background */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15); /* Subtle shadow */
}
.menu-toggle{
    display: none!important;
}