/*
  style.css
  Theme: YPF Estaciones en Argentina
  Design System: Retro con Tipografía Adaptativa
  Color Scheme: Complementaria (Azul y Amarillo YPF)
  Animation Style: Movimientos No Lineales
*/

/* 1. CSS Variables (Raíz)
------------------------------------------------------------------- */
:root {
  /* Paleta de Colores Complementaria */
  --brand-blue: #005aaa;
  --brand-blue-dark: #00428a;
  --brand-yellow: #ffc425;
  --brand-yellow-dark: #eab420;
  
  /* Tonos Neutros y de Fondo (Estilo Retro) */
  --retro-bg: #f0ede5; /* Un blanco hueso cálido */
  --retro-bg-light: #f5f5f5; /* Un gris muy claro para secciones */
  --retro-text: #2c3e50; /* Un gris azulado oscuro para el texto principal */
  --dark-gray: #363636;
  --white: #ffffff;

  /* Tipografía */
  --font-header: 'Montserrat', sans-serif;
  --font-body: 'Merriweather', serif;

  /* Radios y Sombras */
  --border-radius: 8px;
  --card-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  --card-shadow-hover: 0 10px 25px rgba(0, 0, 0, 0.12);
}

/* 2. Estilos Globales y Resets
------------------------------------------------------------------- */
html {
  scroll-behavior: smooth;
  background-color: var(--retro-bg);
}

body {
  font-family: var(--font-body);
  color: var(--retro-text);
  font-size: clamp(1rem, 1.5vw, 1.1rem); /* Tipografía adaptativa */
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-header);
  font-weight: 700;
  color: var(--brand-blue);
}

/* Compatibilidad con Bulma */
.title {
  font-family: var(--font-header) !important;
  color: var(--brand-blue) !important;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.05);
}

.subtitle {
  font-family: var(--font-body) !important;
  color: var(--retro-text) !important;
  opacity: 0.9;
}

.section {
  padding: 5rem 1.5rem;
}

/* 3. Componentes Globales (Botones, Inputs, Cards)
------------------------------------------------------------------- */

/* Botones */
.button {
  font-family: var(--font-header);
  font-weight: 700;
  border-radius: 50px; /* Botones redondeados modernos */
  border-width: 2px;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

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

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

.button.is-accent {
  background-color: var(--brand-yellow);
  border-color: var(--brand-yellow);
  color: var(--dark-gray);
}

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

.button.is-link.is-light {
    background-color: transparent;
    color: var(--brand-blue);
    text-decoration: underline;
}

.button.is-link.is-light:hover {
    background-color: rgba(0, 90, 170, 0.05);
    color: var(--brand-blue-dark);
}

/* Formularios */
.input, .textarea, .select select {
  border-radius: var(--border-radius);
  border: 2px solid #ccc;
  box-shadow: none;
  transition: border-color 0.3s, box-shadow 0.3s;
  font-family: var(--font-body);
}

.input:focus, .textarea:focus, .select select:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 0.125em rgba(0, 90, 170, 0.25) !important; /* !important to override bulma */
}

/* Cards */
.card {
  height: 100%;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  background-color: var(--white);
  display: flex;
  flex-direction: column;
}

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

.card .card-image {
  margin: 0;
  padding: 0;
  text-align: center;
}

.card .card-image img {
  width: 100%;
  height: 220px; /* Altura fija para consistencia */
  object-fit: cover;
}

.card .card-content {
  text-align: left;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

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

/* 4. Estilos de Secciones Específicas
------------------------------------------------------------------- */

/* Header y Navbar */
.navbar.is-fixed-top {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 3px solid var(--brand-yellow);
}

.navbar-item, .navbar-link {
  font-family: var(--font-header);
  font-weight: 700;
  color: var(--brand-blue);
  transition: color 0.3s ease;
}

.navbar-item:hover, .navbar-link:hover {
  color: var(--brand-yellow-dark);
  background-color: transparent !important;
}

/* Hero Section */
#hero {
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed; /* Efecto Parallax */
  position: relative;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(0deg, rgba(0, 42, 85, 0.7) 0%, rgba(0, 89, 170, 0.4) 100%);
}

.hero .title, .hero .subtitle {
  color: var(--white) !important;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
}

/* Secciones con fondo claro */
.has-background-light {
    background-color: var(--retro-bg-light) !important;
}

/* Progress Bar */
progress.progress.is-primary::-webkit-progress-bar {
  background-color: #ddd;
}
progress.progress.is-primary::-webkit-progress-value {
  background-color: var(--brand-blue) !important;
  transition: width 2s cubic-bezier(0.25, 0.8, 0.25, 1);
}
progress.progress.is-primary::-moz-progress-bar {
  background-color: var(--brand-blue) !important;
}


/* Testimonials */
#testimonials .box {
    border-left: 5px solid var(--brand-blue);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
}
#testimonials .box strong {
    color: var(--brand-blue);
    font-family: var(--font-header);
}

/* External Resources */
#external-resources .box {
    background-color: #fff;
    border-radius: var(--border-radius);
}

#external-resources ul {
    list-style: none;
    padding-left: 0;
}

#external-resources li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
}
#external-resources li:last-child {
    border-bottom: none;
}

#external-resources a {
    color: var(--brand-blue);
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s;
}

#external-resources a:hover {
    color: var(--brand-yellow-dark);
    text-decoration: underline;
}

/* Footer */
.footer {
  background-color: var(--dark-gray);
  color: var(--retro-bg);
  border-top: 5px solid var(--brand-yellow);
}

.footer .title {
  color: var(--brand-yellow) !important;
}

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

.footer a:hover {
  color: var(--brand-yellow);
  text-decoration: underline;
}

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

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

/* 5. Páginas Específicas (Success, Privacy, Terms)
------------------------------------------------------------------- */

.success-page-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    background-color: var(--retro-bg);
    padding: 2rem;
}

.success-page-container .box {
    max-width: 600px;
    padding: 3rem;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow-hover);
}

.content-page {
    padding-top: 100px; /* Evita que el contenido se solape con la navbar fija */
    padding-bottom: 5rem;
    background-color: var(--white);
}

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

/* 6. Animaciones y Clases de Utilidad
------------------------------------------------------------------- */

/* ScrollReveal Clases Base */
.reveal-up, .reveal-left, .reveal-right, .reveal-fade {
  visibility: hidden;
}

/* Media Queries para Responsividad */
@media screen and (max-width: 768px) {
  .section {
    padding: 3rem 1.5rem;
  }
  
  .title.is-1 {
    font-size: 2.5rem;
  }
  
  .title.is-2 {
    font-size: 2rem;
  }
}