/* 
   YPF Estaciones de Servicio - Estilos principales
   Diseño minimalista con balance asimétrico
   Esquema de color analógico
   Animaciones elásticas
*/

:root {
  /* Colores principales */
  --primary: #0033a0; /* Azul YPF */
  --primary-dark: #002680;
  --primary-light: #3355b8;
  --secondary: #cc0000; /* Rojo YPF */
  --secondary-dark: #a60000;
  --secondary-light: #ff1a1a;
  --accent: #f5a623; /* Naranja/amarillo acento */
  --accent-dark: #d48900;
  --accent-light: #ffc15c;
  
  /* Colores neutrales */
  --dark: #222222;
  --gray-dark: #444444;
  --gray: #888888;
  --gray-light: #cccccc;
  --light: #f5f5f5;
  --white: #ffffff;
  
  /* Fuentes */
  --heading-font: 'Roboto', sans-serif;
  --body-font: 'Lato', sans-serif;
  
  /* Tamaños y espaciados */
  --container-width: 1200px;
  --gutter: 2rem;
  --section-spacing: 5rem;
  --card-border-radius: 8px;
  --button-border-radius: 4px;
  
  /* Sombras */
  --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 15px 30px rgba(0, 0, 0, 0.12);
  
  /* Transiciones */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.5s ease;
  --transition-bounce: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Reset y estilos 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.2;
  margin-bottom: 1rem;
  color: var(--dark);
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 2rem;
}

h4 {
  font-size: 1.5rem;
}

h5 {
  font-size: 1.25rem;
}

h6 {
  font-size: 1rem;
}

p {
  margin-bottom: 1.5rem;
}

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

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

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

ul, ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

/* Utilidades */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

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

.mb-0 {
  margin-bottom: 0;
}

.mb-1 {
  margin-bottom: 0.5rem;
}

.mb-2 {
  margin-bottom: 1rem;
}

.mb-3 {
  margin-bottom: 1.5rem;
}

.mb-4 {
  margin-bottom: 2rem;
}

.mb-5 {
  margin-bottom: 3rem;
}

.mt-0 {
  margin-top: 0;
}

.mt-1 {
  margin-top: 0.5rem;
}

.mt-2 {
  margin-top: 1rem;
}

.mt-3 {
  margin-top: 1.5rem;
}

.mt-4 {
  margin-top: 2rem;
}

.mt-5 {
  margin-top: 3rem;
}

.py-5 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.py-6 {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

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

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

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

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

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

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

.has-background-light {
  background-color: var(--light) !important;
}

.has-background-primary {
  background-color: var(--primary) !important;
}

.has-background-secondary {
  background-color: var(--secondary) !important;
}

.has-background-accent {
  background-color: var(--accent) !important;
}

.has-background-dark {
  background-color: var(--dark) !important;
}

.is-hidden {
  display: none !important;
}

.is-visible {
  display: block !important;
}

.is-flex {
  display: flex !important;
}

.is-flex-center {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

.is-flex-column {
  flex-direction: column !important;
}

.is-flex-wrap {
  flex-wrap: wrap !important;
}

.is-justify-start {
  justify-content: flex-start !important;
}

.is-justify-end {
  justify-content: flex-end !important;
}

.is-justify-center {
  justify-content: center !important;
}

.is-justify-between {
  justify-content: space-between !important;
}

.is-justify-around {
  justify-content: space-around !important;
}

.is-align-start {
  align-items: flex-start !important;
}

.is-align-end {
  align-items: flex-end !important;
}

.is-align-center {
  align-items: center !important;
}

.is-align-stretch {
  align-items: stretch !important;
}

/* Botones */
.button,
button,
input[type="submit"] {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-family: var(--heading-font);
  font-weight: 500;
  font-size: 1rem;
  text-align: center;
  text-decoration: none;
  background-color: var(--primary);
  color: var(--white);
  border: none;
  border-radius: var(--button-border-radius);
  cursor: pointer;
  transition: all var(--transition-medium) var(--transition-bounce);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.button:hover,
button:hover,
input[type="submit"]:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: var(--shadow-md);
  background-color: var(--primary-dark);
}

.button:active,
button:active,
input[type="submit"]:active {
  transform: translateY(1px);
  box-shadow: var(--shadow-sm);
}

.button:focus,
button:focus,
input[type="submit"]:focus {
  outline: none;
}

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

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

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

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

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

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

.button.is-light {
  background-color: var(--white);
  color: var(--primary);
  border: 1px solid var(--primary);
}

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

.button.is-large {
  padding: 1rem 2rem;
  font-size: 1.2rem;
}

.button.is-small {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.button.is-fullwidth {
  display: block;
  width: 100%;
}

.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

/* Leer más enlaces */
.read-more {
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  position: relative;
  padding-bottom: 2px;
  transition: color var(--transition-medium);
}

.read-more::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width var(--transition-medium);
}

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

.read-more:hover::after {
  width: 100%;
}

.read-more::before {
  content: '→';
  margin-left: 0.5rem;
  transition: transform var(--transition-medium);
  display: inline-block;
}

.read-more:hover::before {
  transform: translateX(4px);
}

/* Header y navegación */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-medium);
}

.header.scrolled {
  padding: 0.5rem 0;
  box-shadow: var(--shadow-md);
}

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

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

.navbar-brand img {
  max-height: 2.5rem;
  width: auto;
}

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

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

.navbar-item {
  margin-left: 1.5rem;
  font-weight: 500;
  color: var(--dark);
  position: relative;
  transition: color var(--transition-medium);
}

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

.navbar-item::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width var(--transition-medium);
}

.navbar-item:hover::after {
  width: 100%;
}

.navbar-burger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 2rem;
  height: 2rem;
  background-color: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 10;
}

.navbar-burger span {
  width: 100%;
  height: 2px;
  background-color: var(--dark);
  transition: all var(--transition-medium);
}

/* Hero Section */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  padding: 5rem 0;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.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;
  width: 100%;
}

.hero-content {
  max-width: 800px;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  color: var(--white);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  color: var(--white);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease-out 0.2s;
  animation-fill-mode: both;
}

.hero-text {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  color: var(--white);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease-out 0.4s;
  animation-fill-mode: both;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  animation: fadeInUp 1s ease-out 0.6s;
  animation-fill-mode: both;
}

/* Secciones */
.section {
  padding: var(--section-spacing) 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background-color: var(--accent);
  margin: 1rem auto 0;
}

.section-subtitle {
  text-align: center;
  color: var(--gray);
  font-size: 1.2rem;
  margin-top: -2rem;
  margin-bottom: 3rem;
}

/* Columnas y Grid */
.columns {
  display: flex;
  flex-wrap: wrap;
  margin: -1rem;
}

.column {
  padding: 1rem;
  flex: 1 1 0;
  min-width: 0;
}

.column.is-one-quarter {
  flex: 0 0 25%;
  max-width: 25%;
}

.column.is-one-third {
  flex: 0 0 33.333333%;
  max-width: 33.333333%;
}

.column.is-half {
  flex: 0 0 50%;
  max-width: 50%;
}

.column.is-two-thirds {
  flex: 0 0 66.666667%;
  max-width: 66.666667%;
}

.column.is-three-quarters {
  flex: 0 0 75%;
  max-width: 75%;
}

.column.is-full {
  flex: 0 0 100%;
  max-width: 100%;
}

/* Tarjetas */
.card {
  background-color: var(--white);
  border-radius: var(--card-border-radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

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

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

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

.card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.card-text {
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.card-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--gray-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Widgets estadísticos */
.stat-widget {
  text-align: center;
  padding: 2rem;
  background-color: var(--white);
  border-radius: var(--card-border-radius);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-medium);
}

.stat-widget:hover {
  transform: translateY(-10px);
}

.counter {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
  font-family: var(--heading-font);
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  background-color: var(--accent);
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
}

.timeline-marker {
  position: absolute;
  left: -2.5rem;
  top: 0.25rem;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background-color: var(--primary);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--accent);
}

.timeline-content {
  padding-bottom: 1rem;
}

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

/* Customer Stories / Testimonials */
.customer-story,
.testimonial {
  position: relative;
  background-color: var(--white);
  border-radius: var(--card-border-radius);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-medium);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.customer-story:hover,
.testimonial:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.customer-story::before {
  content: '"';
  font-size: 5rem;
  position: absolute;
  top: -1rem;
  left: 1rem;
  color: var(--primary);
  opacity: 0.1;
}

.media {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.media-left {
  margin-right: 1rem;
}

.media-content {
  flex-grow: 1;
}

.media-left img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary);
}

/* Contacto */
.contact-form {
  background-color: var(--white);
  border-radius: var(--card-border-radius);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

.field {
  margin-bottom: 1.5rem;
}

.label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.control {
  position: relative;
}

.input,
.textarea,
.select select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--gray-light);
  border-radius: var(--button-border-radius);
  font-family: var(--body-font);
  font-size: 1rem;
  transition: border-color var(--transition-medium), box-shadow var(--transition-medium);
}

.input:focus,
.textarea:focus,
.select select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(0, 51, 160, 0.2);
}

.select {
  position: relative;
  display: block;
  width: 100%;
}

.select::after {
  content: '▼';
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--gray);
}

.checkbox {
  display: flex;
  align-items: center;
}

.checkbox input {
  margin-right: 0.5rem;
}

.contact-info-block {
  background-color: var(--light);
  padding: 2rem;
  border-radius: var(--card-border-radius);
  margin-bottom: 2rem;
}

.map-container {
  height: 300px;
  border-radius: var(--card-border-radius);
  overflow: hidden;
  margin-top: 1.5rem;
}

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

/* FAQ */
.faq {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--gray-light);
  padding-bottom: 2rem;
}

.faq-question {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
  position: relative;
  padding-right: 2rem;
}

.faq-question::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 0;
  transition: transform var(--transition-medium);
}

.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  padding-top: 1rem;
}

.faq-item.active .faq-answer {
  display: block;
}

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

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

.footer p {
  color: var(--gray-light);
}

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

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

.footer a {
  color: var(--gray-light);
  transition: color var(--transition-medium);
}

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

.social-links {
  display: flex;
  flex-direction: column;
}

.social-links a {
  margin-bottom: 0.75rem;
  display: inline-block;
  transition: transform var(--transition-medium), color var(--transition-medium);
}

.social-links a:hover {
  transform: translateX(5px);
  color: var(--accent);
}

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

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

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

/* Página de éxito */
.success-message {
  text-align: center;
  padding: 3rem;
  background-color: var(--white);
  border-radius: var(--card-border-radius);
  box-shadow: var(--shadow-lg);
  max-width: 800px;
  margin: 0 auto;
}

.success-details {
  background-color: var(--light);
  padding: 1.5rem;
  border-radius: var(--card-border-radius);
  margin: 2rem 0;
}

/* Páginas privacy y terms */
.privacy-page,
.terms-page {
  padding-top: 100px;
}

.content {
  max-width: 800px;
  margin: 0 auto;
}

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

.content h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--primary-dark);
}

.content ul,
.content ol {
  margin-bottom: 1.5rem;
}

.content li {
  margin-bottom: 0.5rem;
}

/* Cookie consent */
#cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.8);
  color: var(--white);
  padding: 15px;
  text-align: center;
  z-index: 9999;
}

#accept-cookies {
  background-color: var(--accent);
  border: none;
  color: var(--white);
  padding: 10px 20px;
  margin: 10px;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color var(--transition-medium);
}

#accept-cookies:hover {
  background-color: var(--accent-dark);
}

/* Media Queries para Responsive */
@media screen and (max-width: 1023px) {
  .column.is-one-quarter,
  .column.is-one-third,
  .column.is-half,
  .column.is-two-thirds,
  .column.is-three-quarters {
    flex: 0 0 50%;
    max-width: 50%;
  }
  
  .hero-title {
    font-size: 3rem;
  }
  
  .hero-subtitle {
    font-size: 1.5rem;
  }
  
  .section {
    padding: 4rem 0;
  }
}

@media screen and (max-width: 768px) {
  .navbar-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--white);
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    z-index: 5;
  }
  
  .navbar-menu.is-active {
    display: flex;
  }
  
  .navbar-end {
    flex-direction: column;
    align-items: center;
  }
  
  .navbar-item {
    margin: 1rem 0;
    font-size: 1.5rem;
  }
  
  .navbar-burger {
    display: flex;
  }
  
  .navbar-burger.is-active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  
  .navbar-burger.is-active span:nth-child(2) {
    opacity: 0;
  }
  
  .navbar-burger.is-active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  
  .column.is-one-quarter,
  .column.is-one-third,
  .column.is-half,
  .column.is-two-thirds,
  .column.is-three-quarters {
    flex: 0 0 100%;
    max-width: 100%;
  }
  
  .hero {
    background-attachment: scroll;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.3rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .buttons {
    flex-direction: column;
  }
  
  .timeline {
    padding-left: 1.5rem;
  }
  
  .timeline-marker {
    left: -2rem;
    width: 1.2rem;
    height: 1.2rem;
  }
}

@media screen and (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .card-image img {
    height: 200px;
  }
  
  .counter {
    font-size: 2.5rem;
  }
}

/* Clases de utilidad adicionales */
.is-asymmetric .columns:nth-child(even) {
  flex-direction: row-reverse;
}

.equal-height {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.equal-height .card-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

/* Para páginas específicas */
.hero.is-fullheight-with-navbar {
  min-height: calc(100vh - 80px);
  margin-top: 80px;
}

.hero.is-medium {
  min-height: 70vh;
}