/* ==========================================================
   MAKALU SERVICIOS SRL — Design System Base
   Tokens de marca, reset y componentes compartidos.
   Este archivo se carga en TODAS las páginas del sitio.

   TEMAS: el color de acento es tematizable por vertical.
   - Home / Oil & Gas → verde (default, definido acá)
   - Fleet            → azul (override en fleet.css)
   ========================================================== */

:root {
  /* Fondos */
  --bg-0: #04090e;                     /* negro azulado profundo (base) */
  --bg-1: #071019;                     /* paneles / secciones */
  --bg-card: rgba(10, 22, 30, 0.72);   /* tarjetas translúcidas */
  --bg-card-hover: rgba(14, 30, 40, 0.85);

  /* Acento de marca (default: verde MAKALU) */
  --accent: #3fb56f;
  --accent-bright: #52d488;
  --accent-soft: rgba(63, 181, 111, 0.14);
  --accent-glow: rgba(63, 181, 111, 0.35);
  --on-accent: #04140b;                /* texto sobre botones sólidos */

  /* Texto */
  --text-main: #f2f7f4;
  --text-muted: #9db4ab;
  --text-dim: #64796f;

  /* Bordes */
  --border: rgba(255, 255, 255, 0.10);
  --border-accent: rgba(63, 181, 111, 0.45);

  /* Tipografía */
  --font-display: 'Sora', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  /* Métricas */
  --radius: 18px;
  --radius-sm: 12px;
  --container: 1200px;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background-color: var(--bg-0);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

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

.accent { color: var(--accent-bright); }

/* Etiqueta espaciada estilo industrial (VACA MUERTA, footer, etc.) */
.kicker {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent-bright);
}

/* ---------- Logo MAKALU (imagen oficial) ---------- */
.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-decoration: none;
}

.brand-logo {
  display: block;
  height: 48px;
  width: auto;
}

/* ---------- Botón INGRESAR / CTA ---------- */
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 14px 34px;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .3s ease, background .3s ease, box-shadow .3s ease, transform .3s ease;
}

.btn-outline .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-bright);
  flex-shrink: 0;
}

.btn-outline .arrow {
  transition: transform .3s ease;
}

.btn-outline:visited { color: var(--text-main); }

.btn-outline:hover {
  border-color: var(--border-accent);
  background: var(--accent-soft);
  box-shadow: 0 0 32px var(--accent-glow);
  transform: translateY(-2px);
}

.btn-outline:hover .arrow { transform: translateX(5px); }

/* Variante sólida (CTAs principales dentro de las verticales) */
.btn-solid {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--on-accent);
  background: linear-gradient(135deg, var(--accent), var(--accent-bright));
  border: none;
  border-radius: 50px;
  padding: 15px 36px;
  text-decoration: none;
  cursor: pointer;
  transition: box-shadow .3s ease, transform .3s ease;
}

.btn-solid:visited { color: var(--on-accent); }

.btn-solid:hover {
  box-shadow: 0 10px 36px var(--accent-glow);
  transform: translateY(-2px);
}

/* ---------- Franja de valores (home + verticales) ---------- */
.values {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 40px;
  padding: 44px 24px 12px;
}

.value-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

.value-item svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
  flex-shrink: 0;
}

/* ---------- Animación de entrada (activada por main.js) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s ease, transform .8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Footer compartido ----------
   Mismo footer en Home, Fleet y Oil & Gas: marca + Links Útiles +
   contacto, y una barra inferior negra de crédito de la agencia. */
.site-footer {
  border-top: 1px solid var(--border);
}

.footer-main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 56px 24px 40px;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  text-align: left;
}

/* Home: sin columna de Contacto (cada vertical tiene el suyo propio) */
.footer-main--no-contact {
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  max-width: 800px;
}

.footer-logo {
  display: block;
  height: 42px;
  width: auto;
}

.footer-brand p {
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--text-muted);
  max-width: 300px;
  line-height: 1.6;
}

.footer-heading {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin-bottom: 16px;
}

.footer-linklist {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-linklist a {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color .25s ease;
}

.footer-linklist a:visited { color: var(--text-muted); }
.footer-linklist a:hover { color: var(--accent-bright); }

.footer-bottom {
  border-top: 1px solid var(--border);
  background: #000;
  padding: 16px 24px;
  text-align: center;
}

.footer-bottom a {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 400;
  color: var(--text-dim);
  text-decoration: none;
  transition: color .25s ease;
}

.footer-bottom a strong {
  color: #fff;
  font-weight: 700;
}

.footer-bottom a:visited { color: var(--text-dim); }
.footer-bottom a:visited strong { color: #fff; }
.footer-bottom a:hover { color: var(--accent-bright); }
.footer-bottom a:hover strong { color: var(--accent-bright); }

@media (max-width: 700px) {
  .footer-main {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 44px 20px 32px;
    text-align: center;
  }
  .footer-brand p { max-width: 100%; margin-left: auto; margin-right: auto; }
  .footer-logo { margin: 0 auto; }
}

@media (max-width: 860px) {
  .values { gap: 12px 22px; padding: 36px 20px 8px; }
  .value-item {
    font-size: 11px;
    letter-spacing: 2px;
    white-space: normal;
    text-align: left;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .btn-solid, .btn-outline {
    font-size: 12.5px;
    letter-spacing: 1.5px;
    padding: 14px 26px;
    gap: 8px;
  }
}
