/* 
  Main CSS for YPF Argentina website
  Using Glassmorphism design system with Adaptive Typography
  Triadic color scheme with micro-animations
*/

:root {
  /* Triadic Color Scheme */
  --primary-color: #0047ab; /* YPF Blue */
  --primary-dark: #003380;
  --primary-light: #3a70c0;
  
  --secondary-color: #ab0047; /* Accent color 1 - magenta */
  --secondary-dark: #800035;
  --secondary-light: #c04370;
  
  --tertiary-color: #47ab00; /* Accent color 2 - green */
  --tertiary-dark: #358000;
  --tertiary-light: #70c04a;
  
  /* Neutral colors */
  --dark: #222222;
  --dark-gray: #333333;
  --medium-gray: #666666;
  --light-gray: #e0e0e0;
  --very-light: #f5f5f5;
  --white: #ffffff;
  
  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.15);
  --glass-border: rgba(255, 255, 255, 0.2);
  --glass-shadow: rgba(0, 0, 0, 0.1);
  --glass-blur: 15px;
  
  /* Typography */
  --heading-font: 'Montserrat', sans-serif;
  --body-font: 'Merriweather', serif;
  
  /* Transitions */
  --transition-fast: 0.3s ease;
  --transition-medium: 0.5s ease;
  --transition-slow: 0.8s ease;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* -------------- Base Styles -------------- */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  color: var(--dark-gray);
  background-color: var(--very-light);
  line-height: 1.6;
  overflow-x: hidden;
}

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

p {
  margin-bottom: 1.5rem;
}

img {
  max-width: 100%;
}

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

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

/* -------------- Utility Classes -------------- */
.section-padding {
  padding: 80px 0;
}

.divider {
  width: 80px;
  height: 3px;
  background: var(--primary-color);
  margin-bottom: 30px;
}

.section-title {
  font-weight: 700;
  font-size: 2.5rem;
  margin-bottom: 20px;
  position: relative;
  text-align: center;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--medium-gray);
  margin-bottom: 40px;
  text-align: center;
}

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

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

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

/* Adaptive Typography */
.adaptive-text {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

/* Glassmorphism Cards */
.glassmorphism-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: 15px;
  box-shadow: 0 8px 32px var(--glass-shadow);
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.glassmorphism-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.glassmorphism-section {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.1));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* -------------- Buttons and Inputs -------------- */
.btn {
  font-family: var(--heading-font);
  font-weight: 600;
  padding: 12px 30px;
  border-radius: 50px;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

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

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 71, 171, 0.3);
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 71, 171, 0.3);
}

.btn-outline-light {
  color: var(--white);
  border-color: var(--white);
}

.btn-outline-light:hover {
  background-color: var(--white);
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

.btn-lg {
  padding: 15px 35px;
  font-size: 1.1rem;
}

/* Micro-interaction for buttons */
.micro-interaction {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.micro-interaction:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.micro-interaction:active {
  transform: translateY(1px);
}

/* Form inputs */
.form-control, .form-select {
  padding: 12px 20px;
  border-radius: 10px;
  border: 1px solid var(--light-gray);
  font-family: var(--body-font);
  transition: all var(--transition-fast);
  background-color: rgba(255, 255, 255, 0.8);
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(0, 71, 171, 0.25);
}

/* -------------- Header & Navigation -------------- */
.glassmorphism-header {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding: 15px 0;
  transition: all var(--transition-medium);
}

.navbar {
  padding: 0;
}

.navbar-brand img {
  transition: transform var(--transition-fast);
}

.navbar-brand:hover img {
  transform: scale(1.05);
}

.navbar-nav .nav-link {
  font-family: var(--heading-font);
  font-weight: 600;
  color: var(--dark-gray);
  padding: 10px 15px;
  position: relative;
  transition: color var(--transition-fast);
}

.navbar-nav .nav-link:after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: var(--primary-color);
  transition: all var(--transition-fast);
  transform: translateX(-50%);
}

.navbar-nav .nav-link:hover {
  color: var(--primary-color);
}

.navbar-nav .nav-link:hover:after {
  width: 70%;
}

/* Shrink header on scroll */
.navbar-scrolled {
  padding: 5px 0;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* Mobile menu */
.navbar-toggler {
  border: none;
  padding: 0;
}

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

.navbar-toggler-icon {
  width: 24px;
  height: 24px;
}

/* -------------- Hero Section -------------- */
.hero-section {
  height: 100vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  position: relative;
  margin-top: -90px;
  padding-top: 90px;
}

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

.hero-section h1 {
  font-weight: 800;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-section .lead {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* -------------- History Section -------------- */
.history-content h3 {
  color: var(--primary-color);
  margin-bottom: 20px;
}

.history-image {
  overflow: hidden;
  border-radius: 15px;
}

.history-image img {
  transition: transform var(--transition-medium);
  width: 100%;
  height: auto;
  object-fit: cover;
}

.history-image:hover img {
  transform: scale(1.05);
}

.history-stat {
  padding: 30px 20px;
  text-align: center;
}

.history-stat h3 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.progress-container p {
  margin-bottom: 8px;
  font-weight: 600;
}

.progress {
  height: 10px;
  border-radius: 5px;
  background-color: var(--light-gray);
  margin-bottom: 20px;
}

.progress-bar {
  background-color: var(--primary-color);
}

/* -------------- Mission Section -------------- */
#mision {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.mission-card {
  padding: 40px;
  margin-bottom: 30px;
  background: rgba(255, 255, 255, 0.95);
}

.mission-card h3 {
  color: var(--primary-color);
}

.mission-item {
  padding: 30px 20px;
  height: 100%;
}

.mission-item img {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--primary-light);
  padding: 3px;
}

.mission-item h4 {
  color: var(--white);
  margin-bottom: 15px;
}

.mission-item p {
  color: var(--white);
  font-size: 0.95rem;
}

/* -------------- Team Section -------------- */
.team-card {
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card-image {
  overflow: hidden;
  margin-bottom: 20px;
  text-align: center;
  height: 300px;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-medium);
}

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

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

.card-content h4 {
  font-size: 1.3rem;
  margin-bottom: 5px;
}

.card-content p.text-muted {
  font-size: 0.9rem;
  margin-bottom: 15px;
}

/* -------------- Gallery Section -------------- */
.gallery-container {
  margin-bottom: 30px;
}

.gallery-item {
  margin-bottom: 30px;
}

.image-container {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  height: 300px;
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-medium);
}

.image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  padding: 20px;
  color: var(--white);
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--transition-medium);
}

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

.image-container:hover .image-overlay {
  opacity: 1;
  transform: translateY(0);
}

.image-overlay h4 {
  font-size: 1.3rem;
  color: var(--white);
  margin-bottom: 5px;
}

.image-overlay p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* -------------- Links Section -------------- */
.link-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.link-card .card-content {
  padding: 20px;
  text-align: center;
}

.link-card .card-content h4 {
  color: var(--primary-color);
  margin-bottom: 15px;
}

.link-card .card-content a.btn {
  margin-top: auto;
}

/* -------------- News Section -------------- */
.news-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

.news-date {
  font-size: 0.85rem;
  color: var(--medium-gray);
  margin-bottom: 10px;
  font-style: italic;
}

.news-card h4 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.news-card a.btn {
  margin-top: auto;
  align-self: flex-start;
}

/* -------------- Portfolio Section -------------- */
.portfolio-item {
  margin-bottom: 30px;
  overflow: hidden;
}

.portfolio-image {
  overflow: hidden;
  border-radius: 10px;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-medium);
}

.portfolio-item:hover .portfolio-image img {
  transform: scale(1.05);
}

.portfolio-content h4 {
  color: var(--primary-color);
  margin-bottom: 15px;
}

/* -------------- Contact Section -------------- */
.contact-info {
  height: 100%;
}

.contact-info h3, .contact-form h3 {
  color: var(--primary-color);
  margin-bottom: 20px;
}

.contact-list li {
  margin-bottom: 15px;
  display: flex;
  align-items: flex-start;
}

.contact-list i {
  color: var(--primary-color);
  margin-right: 15px;
  font-size: 1.2rem;
}

.social-links a {
  color: var(--primary-color);
  font-weight: 600;
  transition: color var(--transition-fast);
}

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

.contact-form {
  padding: 30px;
}

/* -------------- Footer Section -------------- */
.glassmorphism-footer {
  background: var(--primary-dark);
  color: var(--white);
  padding: 70px 0 20px;
}

.footer-info p {
  color: rgba(255, 255, 255, 0.8);
}

.footer-links h4, .footer-newsletter h4 {
  color: var(--white);
  margin-bottom: 25px;
  font-size: 1.3rem;
}

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

.footer-links ul li a {
  color: rgba(255, 255, 255, 0.8);
  transition: color var(--transition-fast);
}

.footer-links ul li a:hover {
  color: var(--white);
  padding-left: 5px;
}

.footer-newsletter p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 20px;
}

.footer-newsletter .input-group {
  margin-bottom: 20px;
}

.footer-newsletter .form-control {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.footer-newsletter .btn {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.footer-newsletter .social-links h5 {
  color: var(--white);
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.footer-newsletter .social-links a {
  color: rgba(255, 255, 255, 0.8);
  margin-right: 15px;
  transition: color var(--transition-fast);
}

.footer-newsletter .social-links a:hover {
  color: var(--white);
}

/* -------------- Success Page -------------- */
.success-page {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(120deg, rgba(0, 71, 171, 0.1), rgba(171, 0, 71, 0.05));
}

.success-content {
  max-width: 600px;
  padding: 50px;
}

.success-content h1 {
  color: var(--primary-color);
  margin-bottom: 20px;
}

.success-icon {
  font-size: 6rem;
  color: var(--tertiary-color);
  margin-bottom: 30px;
}

/* -------------- Privacy & Terms Pages -------------- */
.page-content {
  padding-top: 100px;
  min-height: calc(100vh - 300px);
}

.page-content h1 {
  color: var(--primary-color);
  margin-bottom: 30px;
}

.page-content h2 {
  color: var(--primary-dark);
  margin-top: 40px;
  margin-bottom: 20px;
}

/* -------------- Cookie Consent -------------- */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.9);
  color: var(--white);
  padding: 15px 0;
  z-index: 9999;
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
}

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

.cookie-content p {
  margin-bottom: 0;
  margin-right: 20px;
}

#acceptCookies {
  flex-shrink: 0;
}

/* -------------- Parallax Sections -------------- */
.parallax-section {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
}

/* -------------- Responsive Styles -------------- */
@media (max-width: 1199.98px) {
  .section-padding {
    padding: 70px 0;
  }
  
  .section-title {
    font-size: 2.2rem;
  }
}

@media (max-width: 991.98px) {
  .section-padding {
    padding: 60px 0;
  }
  
  .hero-section {
    height: 80vh;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .navbar-nav {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin-top: 15px;
  }
  
  .portfolio-image {
    margin-bottom: 20px;
  }
  
  .contact-info {
    margin-bottom: 30px;
  }
  
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
  
  .cookie-content p {
    margin-right: 0;
    margin-bottom: 15px;
  }
}

@media (max-width: 767.98px) {
  .section-padding {
    padding: 50px 0;
  }
  
  .hero-section {
    height: 70vh;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .mission-card, .contact-form {
    padding: 25px;
  }
  
  .history-stat {
    margin-bottom: 20px;
  }
}

@media (max-width: 575.98px) {
  .section-padding {
    padding: 40px 0;
  }
  
  .btn {
    padding: 10px 25px;
    font-size: 0.9rem;
  }
  
  .btn-lg {
    padding: 12px 30px;
    font-size: 1rem;
  }
  
  .mission-item {
    margin-bottom: 20px;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeIn {
  animation: fadeIn 0.8s ease forwards;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.animate-pulse {
  animation: pulse 2s infinite;
}

/* Read more links */
a.read-more {
  font-weight: 600;
  color: var(--primary-color);
  display: inline-flex;
  align-items: center;
  transition: all var(--transition-fast);
}

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

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

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