/* YPF Estaciones - Main Stylesheet */

:root {
  /* Color Variables */
  --primary-color: #0066cc;
  --primary-dark: #004d99;
  --primary-light: #3399ff;
  --secondary-color: #ff9900;
  --secondary-dark: #cc7a00;
  --secondary-light: #ffcc66;
  --dark-color: #333333;
  --dark-medium: #555555;
  --light-color: #f8f8f8;
  --white-color: #ffffff;
  --gray-color: #e0e0e0;
  --gray-light: #f0f0f0;
  --gray-dark: #666666;
  --success-color: #28a745;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --info-color: #17a2b8;

  /* Typography Variables */
  --heading-font: 'Oswald', sans-serif;
  --body-font: 'Nunito', sans-serif;
  
  /* Spacing Variables */
  --section-spacing: 4rem;
  --content-spacing: 2rem;
  
  /* Animation Variables */
  --animation-speed: 0.3s;
  --bounce-effect: cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

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

body {
  font-family: var(--body-font);
  color: var(--dark-color);
  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;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1.5rem;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--animation-speed) var(--bounce-effect);
}

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

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

/* Button Styles */
.button {
  transition: all var(--animation-speed) var(--bounce-effect);
  font-weight: 600;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.button:active {
  transform: translateY(1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.button.is-primary {
  background-color: var(--primary-color);
}

.button.is-primary:hover {
  background-color: var(--primary-dark);
}

.button.is-rounded {
  border-radius: 25px;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Utilities */
.has-shadow {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.has-text-shadow {
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.is-centered {
  margin: 0 auto;
}

/* Header & Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: var(--white-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.header.scrolled {
  padding: 0.5rem 0;
}

.navbar {
  padding: 0.5rem 0;
}

.navbar-item {
  font-family: var(--heading-font);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color var(--animation-speed) var(--bounce-effect);
}

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

.navbar-brand img {
  max-height: 50px;
  transition: all var(--animation-speed) var(--bounce-effect);
}

.navbar-burger {
  height: 3.25rem;
  width: 3.25rem;
}

.navbar-burger span {
  height: 2px;
  width: 20px;
}

/* Hero Section */
.hero {
  position: relative;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  margin-top: 4rem;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5));
  z-index: 1;
}

.hero-body {
  position: relative;
  z-index: 2;
  padding: 5rem 1.5rem;
}

.hero .title,
.hero .subtitle,
.hero p {
  color: var(--white-color) !important;
}

.hero .title {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  animation: fadeInDown 1.2s var(--bounce-effect);
}

.hero .subtitle {
  font-size: 2rem;
  margin-bottom: 2rem;
  animation: fadeInDown 1.4s var(--bounce-effect);
}

.hero p {
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto 2.5rem;
  animation: fadeInUp 1.6s var(--bounce-effect);
}

.hero .buttons {
  animation: fadeInUp 1.8s var(--bounce-effect);
}

/* About Section */
.about-section {
  padding: var(--section-spacing) 0;
}

.about-section .image {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform var(--animation-speed) var(--bounce-effect);
}

.about-section .image:hover {
  transform: translateY(-10px);
}

.about-section .content {
  padding: 1rem 0;
}

/* Services Section */
.services-section {
  padding: var(--section-spacing) 0;
  background-color: var(--light-color);
}

.services-section .card {
  height: 100%;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s var(--bounce-effect), box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.services-section .card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.services-section .card-image {
  overflow: hidden;
}

.services-section .card-image img {
  transition: transform 0.5s ease;
  object-fit: cover;
  width: 100%;
  height: 100%;
}

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

.services-section .card-content {
  flex-grow: 1;
  padding: 1.5rem;
}

.services-section .card-content h3 {
  margin-bottom: 1rem;
  color: var(--primary-color);
}

/* Locations Section */
.locations-section {
  padding: var(--section-spacing) 0;
}

.locations-section .image {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.locations-section .buttons {
  margin-top: 2rem;
}

/* Recursos Section */
.recursos-section {
  padding: var(--section-spacing) 0;
}

.recursos-section .box {
  height: 100%;
  border-radius: 10px;
  transition: transform 0.3s var(--bounce-effect), box-shadow 0.3s ease;
}

.recursos-section .box:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.recursos-section .title {
  color: var(--primary-color);
}

/* Process Section */
.process-section {
  padding: var(--section-spacing) 0;
}

.timeline {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 6px;
  background-color: var(--gray-color);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -3px;
  border-radius: 10px;
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  background-color: inherit;
  width: 50%;
}

.timeline-marker {
  position: absolute;
  width: 25px;
  height: 25px;
  right: -17px;
  background-color: var(--primary-color);
  border: 4px solid var(--white-color);
  top: 15px;
  border-radius: 50%;
  z-index: 1;
}

.timeline-content {
  padding: 20px 30px;
  background-color: var(--white-color);
  position: relative;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.timeline-content h3 {
  color: var(--primary-color);
}

/* Methodology Section */
.methodology-section {
  padding: var(--section-spacing) 0;
}

.methodology-section .image {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.methodology-section .title.is-4 {
  color: var(--primary-color);
  margin-top: 1.5rem;
}

/* Blog Section */
.blog-section {
  padding: var(--section-spacing) 0;
}

.blog-section .card {
  height: 100%;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s var(--bounce-effect), box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.blog-section .card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.blog-section .card-image {
  overflow: hidden;
}

.blog-section .card-image img {
  transition: transform 0.5s ease;
  object-fit: cover;
  width: 100%;
  height: 100%;
}

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

.blog-section .card-content {
  flex-grow: 1;
  padding: 1.5rem;
}

.blog-section .card-content h3 {
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.blog-section .card-content .subtitle {
  color: var(--gray-dark);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.blog-section .button.is-small {
  border-radius: 20px;
  font-size: 0.8rem;
  padding: 0.5rem 1rem;
}

/* Success Stories Section */
.success-section {
  padding: var(--section-spacing) 0;
}

.success-section .card {
  height: 100%;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s var(--bounce-effect), box-shadow 0.3s ease;
}

.success-section .card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.success-section .media-left .image {
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--primary-light);
}

.success-section .media-content .title {
  color: var(--primary-color);
}

.success-section .media-content .subtitle {
  color: var(--gray-dark);
  font-size: 0.9rem;
}

/* Contact Section */
.contact-section {
  padding: var(--section-spacing) 0;
}

.contact-section .box {
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-section .label {
  color: var(--dark-medium);
  font-weight: 600;
}

.contact-section .input,
.contact-section .textarea,
.contact-section .select select {
  border-radius: 5px;
  box-shadow: none;
  border: 2px solid var(--gray-color);
  transition: border-color 0.3s ease;
}

.contact-section .input:focus,
.contact-section .textarea:focus,
.contact-section .select select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 1px var(--primary-light);
}

.contact-section .checkbox {
  margin-top: 1rem;
}

.contact-section .button {
  margin-top: 1rem;
}

/* Clientele Section */
.clientele-section {
  padding: var(--section-spacing) 0;
}

.clientele-section .image {
  transition: transform 0.3s var(--bounce-effect);
  filter: grayscale(100%);
  opacity: 0.7;
}

.clientele-section .image:hover {
  transform: translateY(-5px);
  filter: grayscale(0%);
  opacity: 1;
}

/* Footer */
.footer {
  background-color: var(--dark-color);
  color: var(--white-color);
  padding: 3rem 0 2rem;
}

.footer h3 {
  color: var(--white-color);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer p {
  color: var(--gray-light);
  margin-bottom: 1rem;
}

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

.footer ul li {
  margin-bottom: 0.75rem;
}

.footer a {
  color: var(--gray-light);
  transition: color 0.3s ease;
}

.footer a:hover {
  color: var(--primary-light);
}

.footer .social-links a {
  display: inline-block;
  margin-right: 1rem;
  font-weight: 600;
  color: var(--gray-light);
  transition: color 0.3s var(--bounce-effect);
}

.footer .social-links a:hover {
  color: var(--primary-light);
  transform: translateY(-3px);
}

.footer .content {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  margin-top: 2rem;
}

/* Modal Styles */
.modal-content {
  border-radius: 10px;
  overflow: hidden;
}

.modal-content .box {
  padding: 2rem;
}

.modal-close {
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-close:hover {
  background-color: rgba(0, 0, 0, 0.7);
}

/* Success Page */
.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--light-color);
  text-align: center;
}

.success-content {
  max-width: 600px;
  padding: 3rem;
  background-color: var(--white-color);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

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

.success-content .title {
  color: var(--dark-color);
  margin-bottom: 1.5rem;
}

.success-content .button {
  margin-top: 2rem;
}

/* Privacy & Terms Pages */
.content-page {
  padding-top: 100px;
  padding-bottom: 4rem;
}

.content-page .container {
  max-width: 800px;
}

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

.content-page h2 {
  color: var(--primary-dark);
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
}

.content-page p {
  margin-bottom: 1.5rem;
}

/* Cookie Consent */
#cookie-consent {
  transition: opacity 0.5s ease;
}

#accept-cookies {
  transition: background-color 0.3s var(--bounce-effect);
}

#accept-cookies:hover {
  background-color: var(--primary-dark) !important;
  transform: translateY(-3px);
}

/* Animations */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
  .timeline::after {
    left: 31px;
  }
  
  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }
  
  .timeline-marker {
    left: 15px;
    right: auto;
  }
  
  .hero .title {
    font-size: 2.5rem;
  }
  
  .hero .subtitle {
    font-size: 1.5rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  .section {
    padding: 3rem 1rem;
  }
  
  .footer {
    text-align: center;
  }
  
  .footer .column {
    margin-bottom: 2rem;
  }
  
  .social-links {
    justify-content: center;
  }
}

@media screen and (min-width: 769px) and (max-width: 1023px) {
  .hero .title {
    font-size: 3rem;
  }
  
  .hero .subtitle {
    font-size: 1.75rem;
  }
  
  .section {
    padding: 4rem 2rem;
  }
}

@media screen and (min-width: 1408px) {
  .container {
    max-width: 1344px;
  }
}