/* ==========================================================================
   SOUTH LOGISTIC TANK S.A. — Landing page
   Hoja de estilos principal
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. VARIABLES Y RESET
-------------------------------------------------------------------------- */
:root {
  /* Paleta de marca */
  --color-yellow: #e6c61e;
  --color-yellow-dark: #c9ab13;
  --color-petrol: #154a58;
  --color-petrol-dark: #0e343e;
  --color-black: #1a1a1a;
  --color-white: #ffffff;
  --color-gray-light: #f5f6f7;
  --color-gray-mid: #e3e6e8;
  --color-text: #2b2f31;
  --color-text-muted: #5c6469;

  /* Tipografía */
  --font-heading: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Layout */
  --container-w: 1220px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 10px rgba(21, 74, 88, 0.06);
  --shadow-md: 0 12px 30px rgba(21, 74, 88, 0.10);
  --header-h: 84px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-petrol-dark);
  line-height: 1.2;
  margin: 0 0 0.6em;
  font-weight: 700;
}

p { margin: 0 0 1em; color: var(--color-text-muted); }
ul { padding: 0; margin: 0; list-style: none; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

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

/* --------------------------------------------------------------------------
   2. UTILIDADES
-------------------------------------------------------------------------- */
.section { padding: 110px 0; }
.section-alt { background: var(--color-gray-light); }
.section-dark {
  position: relative;
  background: url('../assets/img/truck-night.jpg') center/cover no-repeat;
  color: var(--color-white);
  overflow: hidden;
}
.section-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(14,52,62,0.94), rgba(21,74,88,0.90));
}
.section-dark > .container { position: relative; z-index: 1; }
.section-dark h2, .section-dark h3 { color: var(--color-white); }
.section-dark p { color: rgba(255,255,255,0.72); }

.section-head {
  max-width: 700px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.section-head p { font-size: 1.08rem; }

.tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-petrol);
  background: rgba(21, 74, 88, 0.08);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.tag-light { background: rgba(230, 198, 30, 0.16); color: var(--color-yellow); }

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 15px 30px;
  border-radius: 100px;
  border: 2px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: 10px 20px; font-size: 0.85rem; }
.btn-lg { padding: 17px 34px; font-size: 1rem; }
.btn-block { width: 100%; }

.btn-primary {
  background: var(--color-yellow);
  color: var(--color-petrol-dark);
  box-shadow: 0 8px 20px rgba(230, 198, 30, 0.32);
}
.btn-primary:hover { background: var(--color-yellow-dark); }

.btn-outline-light {
  border-color: rgba(255,255,255,0.5);
  color: var(--color-white);
}
.btn-outline-light:hover { background: rgba(255,255,255,0.1); border-color: var(--color-white); }

.btn-whatsapp {
  background: #1c5c47;
  color: var(--color-white);
  margin-top: 28px;
}
.btn-whatsapp:hover { background: #164a39; }

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* --------------------------------------------------------------------------
   3. HEADER
-------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  display: flex;
  align-items: center;
  z-index: 500;
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease, height 0.3s ease;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 4px 20px rgba(21,74,88,0.08);
  height: 72px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.logo-mark-img { height: 36px; width: auto; display: block; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text strong {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  letter-spacing: 0.03em;
  color: var(--color-white);
  transition: color 0.3s ease;
}
.logo-text small {
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  transition: color 0.3s ease;
}
.site-header.scrolled .logo-text strong { color: var(--color-petrol-dark); }
.site-header.scrolled .logo-text small { color: var(--color-text-muted); }

.main-nav ul { display: flex; gap: 34px; }
.main-nav a {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 600;
  color: rgba(255,255,255,0.88);
  transition: color 0.2s ease;
  position: relative;
}
.main-nav a:hover { color: var(--color-yellow); }
.site-header.scrolled .main-nav a { color: var(--color-petrol-dark); }
.site-header.scrolled .main-nav a:hover { color: var(--color-petrol); }

.header-actions { display: flex; align-items: center; gap: 22px; }
.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  transition: color 0.3s ease;
}
.site-header.scrolled .header-phone { color: var(--color-text); }

.header-phone-icon {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  flex-shrink: 0;
  color: rgba(255,255,255,0.9);
  transition: color 0.3s ease;
}
.site-header.scrolled .header-phone-icon { color: var(--color-text); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  flex-shrink: 0;
  background: none;
  border: none;
  z-index: 600;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 26px;
  background: var(--color-white);
  transition: 0.3s ease;
}
.site-header.scrolled .nav-toggle span,
.nav-toggle.active span { background: var(--color-petrol-dark); }
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   4. HERO
-------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--header-h);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url('../assets/img/hero-truck-sunset.jpg') center 38% / cover no-repeat;
  filter: saturate(0.85) brightness(0.92);
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg,
    rgba(9,32,38,0.99) 0%,
    rgba(9,32,38,0.98) 42%,
    rgba(14,52,62,0.82) 60%,
    rgba(21,74,88,0.35) 80%,
    rgba(21,74,88,0.12) 100%);
}

.hero-content { position: relative; z-index: 1; padding: 60px 24px; }
.hero-text { max-width: 700px; }
.hero-text .eyebrow,
.hero-text h1,
.hero-text .hero-subtitle {
  text-shadow: 0 2px 20px rgba(0,0,0,0.28);
}

.eyebrow {
  display: inline-block;
  color: var(--color-yellow);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.hero h1 {
  color: var(--color-white);
  font-size: clamp(2.2rem, 4.4vw, 3.6rem);
  margin-bottom: 24px;
}
.hero-subtitle {
  color: rgba(255,255,255,0.82);
  font-size: 1.15rem;
  max-width: 600px;
  margin-bottom: 38px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 46px; }

.hero-highlights { display: flex; flex-wrap: wrap; gap: 28px; }
.hero-highlights li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   5. CAPACIDADES (Qué hacemos)
-------------------------------------------------------------------------- */
.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.capability-card {
  background: var(--color-white);
  border: 1px solid var(--color-gray-mid);
  border-radius: var(--radius-md);
  padding: 34px 28px;
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}
.capability-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: transparent;
}
.capability-icon {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(230, 198, 30, 0.16);
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
}
.capability-card h3 { font-size: 1.15rem; margin-bottom: 14px; }
.capability-card ul li {
  position: relative;
  padding-left: 18px;
  font-size: 0.92rem;
  color: var(--color-text-muted);
  margin-bottom: 9px;
}
.capability-card ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-yellow);
}

/* --------------------------------------------------------------------------
   5b. FRANJA FOTOGRÁFICA DECORATIVA
-------------------------------------------------------------------------- */
.photo-strip {
  position: relative;
  height: 320px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}
.photo-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(14,52,62,0.28), rgba(21,74,88,0.16));
}
@media (max-width: 860px) {
  .photo-strip { height: 220px; }
}

/* --------------------------------------------------------------------------
   6. ALCANCE FLEXIBLE
-------------------------------------------------------------------------- */
.scope-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.scope-card {
  background: var(--color-white);
  border: 1px solid var(--color-gray-mid);
  border-radius: var(--radius-md);
  padding: 38px 32px;
  position: relative;
}
.scope-card-highlight {
  background: var(--color-petrol);
  border-color: var(--color-petrol);
}
.scope-card-highlight h3, .scope-card-highlight p { color: var(--color-white); }
.scope-card-highlight p { color: rgba(255,255,255,0.78); }

.scope-step {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-yellow-dark);
  background: rgba(230,198,30,0.16);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 18px;
}
.scope-card-highlight .scope-step { color: var(--color-petrol-dark); background: var(--color-yellow); }

.scope-card h3 { font-size: 1.2rem; }
.scope-card p { font-size: 0.96rem; margin-bottom: 0; }

.scope-footnote {
  text-align: center;
  max-width: 720px;
  margin: 44px auto 0;
  font-weight: 500;
  color: var(--color-petrol);
  font-size: 1rem;
}

/* --------------------------------------------------------------------------
   7. CÓMO TRABAJAMOS
-------------------------------------------------------------------------- */
.process-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.process-list li {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--color-gray-mid);
}
.process-list li:last-child { border-bottom: none; }
.process-number {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--color-petrol);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.process-list h3 { font-size: 1.08rem; margin-bottom: 4px; }
.process-list p { margin-bottom: 0; font-size: 0.94rem; }

/* --------------------------------------------------------------------------
   8. DIFERENCIAL
-------------------------------------------------------------------------- */
.diff-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.diff-item {
  background: var(--color-petrol-dark);
  padding: 34px 28px;
}
.diff-icon {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(230, 198, 30, 0.14);
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
}
.diff-item h3 { font-size: 1.02rem; margin-bottom: 10px; }
.diff-item p { font-size: 0.9rem; margin-bottom: 0; }

/* --------------------------------------------------------------------------
   9. SECTORES
-------------------------------------------------------------------------- */
.sectors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  align-items: start;
}
.sector-card {
  background: var(--color-gray-light);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  min-height: 168px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.sector-card h3 { font-size: 1rem; margin-bottom: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--color-petrol);
  background: var(--color-white);
  border: 1px solid var(--color-gray-mid);
  padding: 6px 12px;
  border-radius: 100px;
}
.chips span.chip-soon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-text-muted);
  border-style: dashed;
  background: transparent;
}
.chip-soon .soon-badge {
  font-size: 0.54rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--color-petrol-dark);
  background: var(--color-yellow);
  padding: 1px 6px;
  border-radius: 100px;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   10. CTA FINAL
-------------------------------------------------------------------------- */
.cta-final {
  position: relative;
  background: url('../assets/img/cargo-ship.jpg') center/cover no-repeat;
  padding: 90px 0;
  text-align: center;
  overflow: hidden;
}
.cta-final::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(21,74,88,0.93), rgba(14,52,62,0.9));
}
.cta-final-inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.cta-final h2 { color: var(--color-white); font-size: clamp(1.6rem, 3vw, 2.3rem); }
.cta-final p { color: rgba(255,255,255,0.78); font-size: 1.08rem; margin-bottom: 34px; }

/* --------------------------------------------------------------------------
   11. CONTACTO
-------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 60px;
  align-items: start;
}
.contact-info h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.contact-details { margin: 30px 0; display: flex; flex-direction: column; gap: 16px; }
.contact-details li { display: flex; align-items: center; gap: 12px; font-size: 0.96rem; font-weight: 500; }
.contact-details a:hover { color: var(--color-petrol); text-decoration: underline; }

.contact-form-wrap {
  background: var(--color-gray-light);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-petrol-dark);
  margin-bottom: 7px;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 13px 16px;
  border: 1px solid var(--color-gray-mid);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  color: var(--color-text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-petrol);
  box-shadow: 0 0 0 3px rgba(21,74,88,0.12);
}
.form-field textarea { resize: vertical; min-height: 110px; }

.form-status {
  margin-top: 16px;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
  min-height: 1.2em;
}
.form-status.success { color: #1c5c47; }
.form-status.error { color: #a83232; }

/* --------------------------------------------------------------------------
   12. FOOTER
-------------------------------------------------------------------------- */
.site-footer {
  background: var(--color-petrol-dark);
  color: rgba(255,255,255,0.7);
  padding: 56px 0 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand { display: flex; gap: 14px; align-items: flex-start; }
.footer-logo-img { height: 30px; width: auto; display: block; flex-shrink: 0; margin-top: 4px; }
.footer-brand strong { color: var(--color-white); font-family: var(--font-heading); display: block; margin-bottom: 6px; }
.footer-brand p { font-size: 0.86rem; margin: 0; }
.footer-nav { display: flex; flex-direction: column; gap: 12px; }
.footer-nav a:hover { color: var(--color-yellow); }
.footer-contact { display: flex; flex-direction: column; gap: 12px; }
.footer-contact a:hover { color: var(--color-yellow); }
.footer-legal { padding: 22px 0; font-size: 0.8rem; }

/* --------------------------------------------------------------------------
   13. FLOTANTES (WhatsApp / Volver arriba)
-------------------------------------------------------------------------- */
.whatsapp-float {
  position: fixed;
  right: 26px;
  bottom: 26px;
  width: 58px; height: 58px;
  background: #25D366;
  color: var(--color-white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.42);
  z-index: 400;
  transition: transform 0.2s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }

.back-to-top {
  position: fixed;
  right: 26px;
  bottom: 108px;
  width: 44px; height: 44px;
  background: var(--color-white);
  color: var(--color-petrol);
  border: 1px solid var(--color-gray-mid);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
  z-index: 400;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s ease;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }

/* --------------------------------------------------------------------------
   14. RESPONSIVE
-------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .capabilities-grid { grid-template-columns: repeat(2, 1fr); }
  .diff-grid { grid-template-columns: repeat(2, 1fr); }
  .sectors-grid { grid-template-columns: repeat(2, 1fr); }
  .scope-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

/* Colapso del menú a hamburguesa: dispara antes de que el nav completo
   (logo + 6 links + teléfono + botón) deje de entrar en el header */
@media (max-width: 1240px) {
  .main-nav { display: none; }
  .header-phone { display: none; }
  .header-phone-icon { display: flex; }
  .nav-toggle { display: flex; }

  .main-nav.open {
    display: block;
    position: fixed;
    inset: 0;
    top: var(--header-h);
    background: var(--color-white);
    padding: 30px 24px;
    z-index: 400;
  }
  .main-nav.open ul { flex-direction: column; gap: 4px; }
  .main-nav.open a {
    display: block;
    padding: 16px 4px;
    color: var(--color-petrol-dark);
    border-bottom: 1px solid var(--color-gray-mid);
    font-size: 1.05rem;
  }
}

/* Pantallas de celular reales: el logo completo + botón CTA + hamburguesa
   no entran si no se achican — se prioriza que el toggle siempre sea accesible */
@media (max-width: 480px) {
  .header-inner { gap: 6px; }
  .header-actions { gap: 8px; }
  .logo { gap: 6px; }
  .logo-mark-img { height: 24px; }
  .logo-text small { display: none; }
  .header-phone-icon { display: none; }
  .header-actions .btn-sm { padding: 6px 9px; font-size: 0.68rem; }

  .whatsapp-float { right: 16px; bottom: 16px; width: 50px; height: 50px; }
  .back-to-top { right: 16px; bottom: 76px; width: 40px; height: 40px; }
}

@media (max-width: 860px) {
  .section { padding: 76px 0; }
  .hero { min-height: auto; padding-bottom: 80px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
}

@media (max-width: 640px) {
  .capabilities-grid,
  .diff-grid,
  .sectors-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 26px; }
  .footer-inner { grid-template-columns: 1fr; gap: 26px; }
  .hero-highlights { flex-direction: column; gap: 12px; }
}
