/* ===== VARIABLES ===== */
:root {
  /* Primary Colors */
  --primary-color: #ff3700; /* YPF Red */
  --primary-dark: #c92800;
  --primary-light: #ff6b4a;
  
  /* Complementary Colors */
  --complementary-color: #0066cc; /* YPF Blue */
  --complementary-dark: #004b99;
  --complementary-light: #4d94e6;
  
  /* Neutral Colors */
  --dark: #222222;
  --gray-dark: #444444;
  --gray: #777777;
  --gray-light: #dddddd;
  --light: #f8f8f8;
  --white: #ffffff;
  
  /* Accents */
  --accent-yellow: #ffc800;
  --accent-yellow-dark: #e6b000;
  --success: #28a745;
  --danger: #dc3545;
  
  /* Fonts */
  --heading-font: 'Roboto', sans-serif;
  --body-font: 'Lato', sans-serif;
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-xxl: 5rem;
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ===== RESET & BASE ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--dark);
  background-color: var(--white);
  overflow-x: hidden;
}

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

p {
  margin-bottom: var(--space-md);
}

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

a:hover {
  color: var(--complementary-dark);
}

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

section {
  padding: var(--space-xl) 0;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

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

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

/* ===== BUTTONS ===== */
.btn,
button,
input[type="submit"] {
  display: inline-block;
  font-family: var(--heading-font);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.5;
  text-align: center;
  vertical-align: middle;
  cursor: pointer;
  padding: 0.5rem 1.5rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
  box-shadow: var(--shadow-sm);
}

.btn:hover,
button:hover,
input[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn:active,
button:active,
input[type="submit"]:active {
  transform: translateY(0);
}

.btn-primary,
.btn-primary:visited {
  background-color: var(--primary-color);
  color: var(--white);
}

.btn-primary:hover,
.btn-primary:active {
  background-color: var(--primary-dark);
  color: var(--white);
}

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

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

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

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

/* ===== HEADER & NAVIGATION ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  padding: var(--space-sm) 0;
  transition: all var(--transition-normal);
}

.header.scrolled {
  padding: var(--space-xs) 0;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
}

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

.navbar-brand {
  display: flex;
  align-items: center;
}

.navbar-brand img {
  height: 60px;
  width: auto;
  transition: all var(--transition-normal);
}

.header.scrolled .navbar-brand img {
  height: 50px;
}

.navbar-toggler {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
}

.navbar-nav {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item {
  margin-left: var(--space-md);
}

.nav-link {
  color: var(--dark);
  font-weight: 500;
  padding: var(--space-sm) var(--space-md);
  position: relative;
  transition: color var(--transition-fast);
}

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

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

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

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
  background-repeat: no-repeat;
  margin-top: 80px;
  overflow: hidden;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-xl);
  z-index: 2;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: var(--space-md);
  color: var(--white);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
  font-size: 1.5rem;
  margin-bottom: var(--space-lg);
  color: var(--white);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
}

/* ===== SECTION STYLES ===== */
.section-title {
  position: relative;
  font-size: 2.5rem;
  margin-bottom: var(--space-lg);
  text-align: center;
  color: var(--dark);
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: var(--primary-color);
  margin: var(--space-sm) auto 0;
  border-radius: 2px;
}

.section-description {
  max-width: 800px;
  margin: 0 auto var(--space-xl);
  text-align: center;
  font-size: 1.2rem;
  color: var(--gray);
}

/* ===== SERVICES SECTION ===== */
.services-section {
  background-color: var(--light);
  position: relative;
  overflow: hidden;
}

.services-section::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background-color: rgba(255, 55, 0, 0.05);
  border-radius: 50%;
  z-index: 1;
}

.services-section::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 300px;
  height: 300px;
  background-color: rgba(0, 102, 204, 0.05);
  border-radius: 50%;
  z-index: 1;
}

.service-card {
  height: 100%;
  background-color: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.card-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

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

.card-content {
  padding: var(--space-lg);
  flex-grow: 1;
  text-align: center;
}

.card-content h3 {
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
  color: var(--dark);
}

.card-content p {
  color: var(--gray-dark);
  margin-bottom: 0;
}

/* ===== MISSION SECTION ===== */
.mission-section {
  position: relative;
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: var(--white);
  padding: var(--space-xxl) 0;
}

.mission-content {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-xl);
  background-color: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(5px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.mission-text {
  font-size: 1.1rem;
  line-height: 1.8;
}

/* ===== STATISTICS SECTION ===== */
.statistics-section {
  background-color: var(--white);
  position: relative;
}

.stat-card {
  background-color: var(--light);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.stat-icon {
  margin-bottom: var(--space-md);
}

.stat-icon img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: var(--space-sm);
  font-family: var(--heading-font);
}

.stat-title {
  font-size: 1.2rem;
  color: var(--gray-dark);
  margin-bottom: var(--space-md);
  font-weight: 500;
}

.progress-bar {
  width: 100%;
  height: 6px;
  background-color: var(--gray-light);
  border-radius: 3px;
  overflow: hidden;
}

.progress {
  height: 100%;
  background-color: var(--primary-color);
  border-radius: 3px;
  transition: width 1.5s ease-in-out;
}

.info-card {
  background-color: var(--light);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  height: 100%;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.info-card:hover {
  box-shadow: var(--shadow-md);
}

.info-card h3 {
  color: var(--complementary-color);
  margin-bottom: var(--space-md);
  font-size: 1.5rem;
}

.info-card p {
  color: var(--gray-dark);
}

/* ===== RESOURCES SECTION ===== */
.resources-section {
  background-color: var(--light);
  position: relative;
}

.resource-card {
  background-color: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.resource-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.resource-card .card-image {
  height: 200px;
}

.resource-card .card-content {
  padding: var(--space-lg);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.resource-card h3 {
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
  color: var(--dark);
}

.resource-card p {
  color: var(--gray-dark);
  margin-bottom: var(--space-lg);
}

.resource-card .btn {
  margin-top: auto;
}

/* ===== PRESS SECTION ===== */
.press-section {
  background-color: var(--white);
}

.press-card {
  background-color: var(--light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.press-card:hover {
  box-shadow: var(--shadow-md);
}

.press-card .card-image {
  height: 200px;
}

.press-card .card-content {
  padding: var(--space-lg);
  flex-grow: 1;
  text-align: center;
}

.press-card .date {
  display: block;
  font-size: 0.9rem;
  color: var(--primary-color);
  margin-bottom: var(--space-sm);
  font-weight: 600;
}

.press-card h3 {
  font-size: 1.4rem;
  margin-bottom: var(--space-md);
  color: var(--dark);
  line-height: 1.4;
}

.press-card p {
  color: var(--gray-dark);
}

/* ===== CLIENTELE SECTION ===== */
.clientele-section {
  background-color: var(--light);
}

.client-card {
  background-color: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.client-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.client-card .card-image {
  height: 180px;
}

.client-card .card-content {
  padding: var(--space-lg);
  flex-grow: 1;
  text-align: center;
}

.client-card h3 {
  font-size: 1.4rem;
  margin-bottom: var(--space-md);
  color: var(--complementary-color);
}

.client-card p {
  color: var(--gray-dark);
}

/* ===== COMMUNITY SECTION ===== */
.community-section {
  position: relative;
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: var(--white);
  padding: var(--space-xxl) 0;
}

.community-card {
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.community-card .card-image {
  height: 300px;
  width: 100%;
}

.community-card .card-content {
  padding: var(--space-lg);
  flex-grow: 1;
  text-align: center;
  color: var(--dark);
}

.community-card h3 {
  font-size: 1.6rem;
  margin-bottom: var(--space-md);
  color: var(--primary-color);
}

.community-card p {
  color: var(--gray-dark);
  margin-bottom: var(--space-md);
}

/* ===== CONTACT SECTION ===== */
.contact-section {
  background-color: var(--white);
  position: relative;
}

.contact-info {
  padding: var(--space-lg);
  background-color: var(--light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  height: 100%;
}

.contact-info h3 {
  font-size: 1.8rem;
  margin-bottom: var(--space-lg);
  color: var(--dark);
}

.info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: var(--space-md);
}

.info-item i {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-right: var(--space-md);
}

.info-item p {
  color: var(--gray-dark);
  margin-bottom: 0;
}

.map-container {
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

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

.contact-form-container {
  padding: var(--space-lg);
  background-color: var(--light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  height: 100%;
}

.contact-form-container h3 {
  font-size: 1.8rem;
  margin-bottom: var(--space-lg);
  color: var(--dark);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-control {
  width: 100%;
  padding: var(--space-md);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-sm);
  background-color: var(--white);
  font-family: var(--body-font);
  font-size: 1rem;
  color: var(--dark);
  transition: all var(--transition-fast);
}

.form-control:focus {
  border-color: var(--complementary-color);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.2);
  outline: none;
}

label {
  display: block;
  margin-bottom: var(--space-sm);
  font-weight: 500;
  color: var(--dark);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* ===== FOOTER ===== */
.footer {
  background-color: var(--dark);
  color: var(--white);
  padding: var(--space-xl) 0 var(--space-md);
}

.footer-info {
  margin-bottom: var(--space-lg);
}

.footer-info img {
  margin-bottom: var(--space-md);
}

.footer-info p {
  color: var(--gray-light);
  margin-bottom: var(--space-md);
}

.footer h4 {
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: var(--space-lg);
  position: relative;
}

.footer h4::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 1.5px;
}

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

.footer-links li {
  margin-bottom: var(--space-sm);
}

.footer-links a {
  color: var(--gray-light);
  transition: all var(--transition-fast);
}

.footer-links a:hover {
  color: var(--white);
  padding-left: var(--space-sm);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.social-links a {
  color: var(--gray-light);
  font-weight: 500;
  transition: all var(--transition-fast);
}

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

.app-download h5 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: var(--space-sm);
}

.app-buttons {
  display: flex;
  gap: var(--space-sm);
}

.copyright {
  text-align: center;
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--gray-light);
  font-size: 0.9rem;
}

/* ===== ADDITIONAL PAGES ===== */
.page-content {
  padding-top: 120px;
  padding-bottom: var(--space-xl);
}

.about-page .hero,
.contact-page .hero {
  height: 60vh;
}

.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-xl) 0;
}

.success-container {
  max-width: 600px;
  margin: 0 auto;
  padding: var(--space-xl);
  background-color: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.success-icon {
  font-size: 5rem;
  color: var(--success);
  margin-bottom: var(--space-lg);
}

.privacy-page,
.terms-page {
  padding-top: 120px;
}

/* ===== COOKIE CONSENT ===== */
#cookieConsent {
  transition: all var(--transition-normal);
}

#acceptCookies:hover {
  background-color: var(--accent-yellow-dark);
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 1199.98px) {
  :root {
    --space-xl: 2.5rem;
    --space-xxl: 4rem;
  }
  
  .hero h1 {
    font-size: 3rem;
  }
  
  .hero p {
    font-size: 1.3rem;
  }
  
  .section-title {
    font-size: 2.2rem;
  }
}

@media (max-width: 991.98px) {
  :root {
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-xxl: 3rem;
  }
  
  .hero {
    height: 90vh;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero p {
    font-size: 1.2rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .stat-number {
    font-size: 2.5rem;
  }
  
  .navbar-toggler {
    display: block;
  }
  
  .navbar-collapse {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: 0;
    background-color: var(--white);
    overflow: hidden;
    transition: height var(--transition-normal);
    box-shadow: var(--shadow-md);
  }
  
  .navbar-collapse.show {
    height: auto;
  }
  
  .navbar-nav {
    flex-direction: column;
    padding: var(--space-md) 0;
  }
  
  .nav-item {
    margin: 0;
  }
  
  .nav-link {
    padding: var(--space-md);
    display: block;
    text-align: center;
  }
}

@media (max-width: 767.98px) {
  :root {
    --space-md: 0.75rem;
    --space-lg: 1.25rem;
    --space-xl: 1.75rem;
    --space-xxl: 2.5rem;
  }
  
  .hero {
    height: 80vh;
    margin-top: 70px;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: var(--space-sm);
  }
  
  .card-image {
    height: 200px;
  }
  
  .community-card .card-image {
    height: 200px;
  }
  
  .info-card,
  .contact-info,
  .contact-form-container {
    margin-bottom: var(--space-lg);
  }
}

@media (max-width: 575.98px) {
  :root {
    --space-md: 0.5rem;
    --space-lg: 1rem;
    --space-xl: 1.5rem;
    --space-xxl: 2rem;
  }
  
  .hero {
    height: 70vh;
  }
  
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 1.6rem;
  }
  
  .card-content {
    padding: var(--space-md);
  }
  
  .card-image {
    height: 180px;
  }
  
  .stat-number {
    font-size: 1.8rem;
  }
}

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

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

@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 1s ease-out forwards;
}

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

.animate-float {
  animation: float 3s ease-in-out infinite;
}

/* Micro-animations */
.btn:hover {
  animation: pulse 0.5s;
}

.nav-link:hover {
  animation: float 0.5s;
}

/* Card hover effects */
.service-card:hover,
.resource-card:hover,
.client-card:hover {
  animation: float 0.5s;
}

/* Special link styles */
.read-more-link {
  color: var(--primary-color);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  transition: all var(--transition-normal);
}

.read-more-link::after {
  content: '→';
  margin-left: var(--space-sm);
  transition: all var(--transition-normal);
}

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

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