/* Estilos propios de la landing — independientes del CSS heredado del tema base */

:root {
  /* Paleta oficial — Manual de Identidad Elixir Cargo */
  --color-text: #282828;         /* Escala de grises */
  --color-muted: #706f6e;        /* Gris Marengo */
  --color-bg: #ffffff;
  --color-primary: #5b1749;      /* Violeta Mulberry */
  --color-secondary: #1f5c71;    /* Azul de Prusia */
  --color-border: #b3b8bb;       /* Gris Perla */
  --color-surface: #e1e1e1;      /* Gris Siberia */
  --max-width: 1100px;

  /* Tipografía — Fredoka y Poppins como equivalentes libres de
     Evermore y Caviar Dreams (no disponibles como web font gratuita) */
  --font-heading: 'Fredoka', sans-serif;
  --font-body: 'Poppins', sans-serif;
}

/* Reset mínimo — antes lo daba el reboot de Bootstrap; al quitarlo
   quedaban width:100%+padding desbordando (inputs del formulario) y
   márgenes por defecto del navegador en body/headings/párrafos. */
*, *::before, *::after {
  box-sizing: border-box;
}

h1, h2, h3, h4, p, ul, ol {
  margin: 0;
}

body {
  margin: 0;
  color: var(--color-text);
  background: var(--color-bg);
  font-family: var(--font-body);
  line-height: 1.6;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* Para que el navbar sticky no tape el título de la sección al
   saltar desde un link del menú. */
#servicios,
#por-que-elegirnos,
#como-trabajamos,
#cotizacion {
  scroll-margin-top: 90px;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 600;
}

.site-navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow 0.3s ease;
}

.site-navbar.is-scrolled {
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
}

.site-navbar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  transition: padding 0.3s ease;
}

.site-navbar.is-scrolled .site-navbar-inner {
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}

.site-navbar-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.site-navbar-logo {
  display: block;
  height: 44px;
  width: auto;
  transition: height 0.3s ease;
}

.site-navbar.is-scrolled .site-navbar-logo {
  height: 34px;
}

.site-navbar-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.site-navbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.site-navbar-link {
  text-decoration: none;
  color: var(--color-text);
  font-weight: 500;
}

.site-navbar-link.is-active,
.site-navbar-link:hover {
  color: var(--color-primary);
}

.site-navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.site-navbar-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.site-navbar-toggle.is-active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.site-navbar-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.site-navbar-toggle.is-active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.hero {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 5rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 3rem;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 5%;
  right: 2%;
  width: 420px;
  height: 420px;
  max-width: 50vw;
  max-height: 50vw;
  background: radial-gradient(circle, var(--color-primary) 0%, var(--color-secondary) 40%, transparent 60%);
  opacity: 0.14;
  filter: blur(80px);
  z-index: 0;
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .hero::before {
    animation: hero-blob 14s ease-in-out infinite;
  }
}

@keyframes hero-blob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-40px, 40px) scale(1.2); }
}

.hero-text {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 280px;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary), var(--color-primary));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@media (prefers-reduced-motion: no-preference) {
  .hero h1 {
    animation: hero-gradient 6s ease infinite;
  }
}

@supports not (background-clip: text) {
  .hero h1 {
    color: var(--color-primary);
  }
}

@keyframes hero-gradient {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.hero p {
  color: var(--color-muted);
  font-size: 1.15rem;
  max-width: 60ch;
  margin: 0 0 2rem;
}

.hero-placeholder {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 280px;
  aspect-ratio: 4 / 3;
  /* object-fit: cover;
  object-position: top center; */
}

.placeholder-box {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.25s ease;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 6px;
  text-decoration: none;
  font: inherit;
  font-weight: 600;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #fff;
}

.btn-primary:hover {
  opacity: 0.9;
  box-shadow: 0 10px 26px rgba(91, 23, 73, 0.35);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--color-primary);
  color: var(--color-primary);
}

.btn-outline:hover {
  background: rgba(91, 23, 73, 0.06);
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.9rem;
}

.section {
  max-width: 70ch;
  margin: 0 auto;
  padding: 0 1.5rem 5rem;
}

.section h1, .section h2 {
  margin-top: 2rem;
}

.section-block {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem 5rem;
}

.section-title {
  text-align: center;
  margin: 0 0 3rem;
}

.section-title::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  background: var(--color-primary);
  margin: 0.75rem auto 0;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 2rem;
}

.feature-card {
  text-align: center;
  transform-style: preserve-3d;
}

.feature-card:hover .feature-placeholder {
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
}

.feature-placeholder {
  height: 160px;
  margin-bottom: 1.25rem;
}

.feature-card h3 {
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--color-muted);
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--color-muted);
}

.feature-list li {
  padding: 0.15rem 0;
}

.why-us {
  background: var(--color-surface);
  padding: 4rem 1.5rem 5rem;
}

.why-us-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
  text-align: center;
}

.why-us-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  background: #ffffff;
  border: 1px solid var(--color-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
}

.why-us-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--color-primary);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.why-us-item p {
  font-weight: 500;
}

.how-it-works {
  padding-bottom: 5rem;
}

.how-it-works-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 3rem;
}

.how-it-works-steps {
  position: relative;
  flex: 1.4;
  min-width: 280px;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.how-it-works-track {
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  height: 2px;
  background: var(--color-secondary);
  transform-origin: left center;
  z-index: 0;
}

.how-it-works-arrowhead {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 10px solid var(--color-secondary);
  transform: translate(-2px, -50%);
  z-index: 0;
  opacity: 0;
}

.how-step {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.how-step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid var(--color-secondary);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.how-step-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-bottom: 0.75rem;
}

.how-step p {
  font-size: 0.9rem;
  color: var(--color-muted);
  max-width: 16ch;
}

.how-it-works-image {
  flex: 1;
  min-width: 260px;
  aspect-ratio: 4 / 3;
  /* object-fit: cover;
  object-position: top center; */
}

.cta {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto 5rem;
  padding: 4.5rem 1.5rem;
  text-align: center;
  background: linear-gradient(180deg, var(--color-surface) 0%, #ffffff 130%);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.07);
}

.cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
}

.cta h2 {
  margin-top: 0;
}

.cta p {
  color: var(--color-muted);
  margin-bottom: 2rem;
}

.quote-form {
  max-width: 640px;
  margin: 0 auto;
  text-align: left;
}

.quote-form-honeypot {
  display: none;
}

.quote-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--color-text);
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(91, 23, 73, 0.15);
}

.field-icon {
  position: relative;
}

.field-icon svg {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--color-muted);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.field-icon input,
.field-icon select {
  padding-left: 2.6rem;
}

.quote-form-full {
  grid-column: 1 / -1;
  resize: vertical;
}

.quote-form .btn {
  border: none;
  cursor: pointer;
  width: 100%;
}

.quote-form-status {
  margin: 1rem 0 0;
  text-align: center;
  color: var(--color-muted);
  min-height: 1.2em;
}

/* Los estados iniciales/finales de .reveal ahora los maneja GSAP
   directamente en scripts.html (gsap.from(...)) — si el script no
   carga por algún motivo, el contenido queda visible igual. */

@media (max-width: 900px) {
  .how-it-works-inner {
    flex-direction: column;
  }

  .how-it-works-steps {
    flex-wrap: wrap;
    justify-content: center;
  }

  .how-it-works-track,
  .how-it-works-arrowhead {
    display: none;
  }

  .how-step {
    flex: 0 0 45%;
  }
}

@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 3rem 1.5rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-text {
    order: 2;
  }

  .hero-placeholder {
    order: 1;
    width: 100%;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .quote-form-grid {
    grid-template-columns: 1fr;
  }

  .quote-form-full {
    grid-column: auto;
  }
}

.site-footer {
  border-top: 1px solid var(--color-border);
  margin-top: auto;
}

.site-footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem;
  color: var(--color-muted);
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .site-navbar-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  }

  .site-navbar-menu.is-open {
    display: flex;
  }

  .site-navbar-menu .site-navbar-link {
    padding: 1rem 1.5rem;
    color: #fff;
  }

  .site-navbar-menu .site-navbar-link.is-active,
  .site-navbar-menu .site-navbar-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
  }

  .site-navbar-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
    padding: 1rem 1.5rem 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
  }

  .site-navbar-actions .btn {
    text-align: center;
  }

  .site-navbar-actions .btn-outline {
    border-color: #fff;
    color: #fff;
  }

  .site-navbar-actions .btn-outline:hover {
    background: rgba(255, 255, 255, 0.14);
  }

  .site-navbar-actions .btn-primary {
    background: #fff;
    color: var(--color-primary);
  }

  .site-navbar-actions .btn-primary:hover {
    opacity: 1;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  }

  .site-navbar-inner {
    position: relative;
  }

  .site-navbar-toggle {
    display: flex;
  }
}

/* Páginas de contenido simple (/contacto/, /como-trabajamos/, 404) —
   antes usaban el grid y el reset tipográfico de Bootstrap. */
.page-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 1.5rem 5rem;
}

.markdown h1 { font-size: 2rem; margin: 0 0 1.5rem; }
.markdown h2 { font-size: 1.5rem; margin: 2rem 0 1rem; }
.markdown h3 { font-size: 1.15rem; margin: 1.5rem 0 0.75rem; }
.markdown p { margin: 0 0 1.25rem; color: var(--color-text); }
.markdown ul,
.markdown ol { margin: 0 0 1.25rem; padding-left: 1.5rem; }
.markdown li { margin-bottom: 0.4rem; }
.markdown a { color: var(--color-primary); }
.markdown a:hover { opacity: 0.85; }
.markdown strong { font-weight: 600; }

.error-page { text-align: center; }
.error-page-gif { margin: 1.5rem 0; }
.error-page-gif small { display: block; color: var(--color-muted); margin-top: 0.5rem; }
.error-page h3 { color: var(--color-muted); margin-bottom: 2rem; }
