@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400;12..96,500;12..96,600;12..96,700;12..96,800&display=swap');

:root {
  --color-primary:      #1E3A5F;
  --color-primary-d:    #0B1F44;
  --color-dark:         #111111;
  --color-text:         #1F2937;
  --color-muted:        #6B7280;
  --color-bg:           #F9FAFB;
  --color-light:        #FFFFFF;
  --color-tag:          #FFEA74;
  --color-border:       #E5E7EB;
  --color-primary-tint: rgba(30, 58, 95, 0.08);
  --font-heading: 'Bricolage Grotesque', sans-serif;
  --font-body:    'Bricolage Grotesque', sans-serif;
  --header-h: 60px;
}

@media (min-width: 640px)  { :root { --header-h: 64px; } }
@media (min-width: 1024px) { :root { --header-h: 68px; } }

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

body {
  font-family: var(--font-body);
  background: var(--color-light);
  color: var(--color-text);
  min-height: 100vh;
}

/* ================================
   HEADER
================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-light);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow 0.2s ease;
}
.site-header--scrolled { box-shadow: 0 1px 8px rgba(0,0,0,.06); }

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: var(--header-h);
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 20px;
}

@media (min-width: 640px)  { .site-header__inner { padding: 0 40px; } }
@media (min-width: 1024px) { .site-header__inner { padding: 0 72px; } }
@media (min-width: 1440px) { .site-header__inner { padding: 0 120px; } }

.site-header__logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.logo-text strong {
  color: var(--color-primary);
  font-weight: 800;
  text-shadow: 2px 3px 8px rgba(30, 58, 95, 0.25);
}

/* unused nav/cta/hamburger kept for future use */
.site-header__nav      { display: none; }
.site-header__cta      { display: none; }
.site-header__hamburger { display: none; }

/* Mobile drawer (unused but kept) */
.mobile-overlay { display: none; }

/* ================================
   LAYOUT
================================ */

.page {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 32px 20px 48px;
}

/* Large mobile */
@media (min-width: 480px) {
  .page { padding: 40px 32px 52px; }
}

/* Tablet portrait */
@media (min-width: 640px) {
  .page { padding: 48px 40px 56px; }
}

/* Desktop */
@media (min-width: 1024px) {
  .page {
    display: grid;
    grid-template-columns: 1fr 420px;
    column-gap: 64px;
    padding: 64px 72px;
    align-items: center;
    min-height: min(calc(100vh - var(--header-h)), 860px);
  }
  .col-left  { grid-column: 1; }
  .col-right { grid-column: 2; display: flex; flex-direction: column; gap: 20px; justify-content: center; }
}

/* Large desktop */
@media (min-width: 1280px) {
  .page {
    grid-template-columns: 1fr 460px;
    column-gap: 80px;
    padding: 72px 100px;
  }
}

/* Ultra-wide / 4K */
@media (min-width: 1440px) {
  .page {
    grid-template-columns: 1fr 500px;
    padding: 80px 120px;
  }
}

/* ================================
   HERO
================================ */

.hero-title {
  font-size: clamp(36px, 8vw, 72px);
  font-weight: 900;
  line-height: 1.04;
  color: var(--color-text);
  margin-bottom: 16px;
}

@media (min-width: 768px) { .hero-title { font-size: clamp(36px, 5vw, 72px); } }

.hero-title .gold { color: var(--color-primary); display: block; }

.hero-sub {
  font-size: clamp(15px, 2.5vw, 18px);
  color: var(--color-muted);
  line-height: 1.65;
  margin-bottom: 32px;
  max-width: 520px;
}

@media (min-width: 768px) { .hero-sub { font-size: clamp(15px, 1.6vw, 18px); } }

.hero-sub strong { color: var(--color-primary); font-weight: 700; }

/* ================================
   FEATURES
================================ */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 20px 0;
}

@media (min-width: 1024px) { .features { margin-bottom: 0; } }

.feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 8px;
}

@media (min-width: 480px) { .feature { padding: 0 12px; } }

.feature + .feature { border-left: 1px solid var(--color-border); }

.feat-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--color-tag);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  flex-shrink: 0;
}

.feat-icon svg { width: 30px; height: 30px; color: var(--color-primary); }

@media (min-width: 480px) {
  .feat-icon { width: 66px; height: 66px; }
  .feat-icon svg { width: 33px; height: 33px; }
}

@media (min-width: 1024px) {
  .feat-icon { width: 74px; height: 74px; }
  .feat-icon svg { width: 36px; height: 36px; }
}

.feat-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--color-text);
  line-height: 1.3;
}

@media (min-width: 480px) { .feat-title { font-size: 13px; } }
@media (min-width: 1024px) { .feat-title { font-size: 14px; } }

/* ================================
   MOBILE ORDER — display:contents trick
   Orden: título → descripción → CTA → imagen → features
================================ */

@media (max-width: 1023px) {
  .page      { display: flex; flex-direction: column; }
  .col-left,
  .col-right { display: contents; }

  /* Reorder items within the flat flex flow */
  .hero-title { order: 1; }
  .hero-sub   { order: 2; }
  .cta        { order: 3; display: flex; width: 100%; margin-bottom: 24px; }
  .hero-img   { order: 4; }
  .companies  { order: 5; margin-top: 16px; }
  .features   { order: 6; margin-top: 24px; }
}

/* ================================
   HERO IMAGE
================================ */

.hero-img {
  width: 100%;
  border-radius: 16px;
  display: block;
  object-fit: cover;
}

@media (min-width: 1024px) { .hero-img { border-radius: 20px; } }

/* ================================
   CTA
================================ */

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  gap: 14px;
  background: linear-gradient(180deg, #294875, #1E3A5F);
  border-radius: 16px;
  padding: 20px 24px;
  text-decoration: none;
  transition: filter 0.2s;
}

.cta:hover { filter: brightness(1.06); }

/* CTA phone icon */
.cta svg { width: 36px; height: 36px; flex-shrink: 0; }

@media (min-width: 1024px) {
  .cta { padding: 18px 28px; border-radius: 18px; gap: 16px; }
  .cta svg { width: 30px; height: 30px; }
}

@media (min-width: 1280px) {
  .cta { padding: 20px 32px; }
  .cta svg { width: 32px; height: 32px; }
}

.cta-texts {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.1;
}

.cta-label {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 2.5px;
  color: var(--color-light);
}

@media (min-width: 1024px) { .cta-label { font-size: 13px; } }
@media (min-width: 1280px) { .cta-label { font-size: 14px; } }

.cta-number {
  font-size: clamp(30px, 8vw, 38px);
  font-weight: 900;
  color: var(--color-light);
  letter-spacing: -0.5px;
  white-space: nowrap;
}

@media (min-width: 1024px) { .cta-number { font-size: clamp(20px, 2.5vw, 30px); } }

/* ================================
   COMPANIES TICKER
================================ */

.companies {
  width: 100%;
  overflow: hidden;
}

.companies__track {
  display: flex;
  align-items: center;
  gap: 32px;
  width: max-content;
  animation: ticker 40s linear infinite;
}

@media (min-width: 1024px) {
  .companies:hover .companies__track { animation-play-state: paused; }
}

.company-logo {
  height: 36px;
  width: 100px;
  object-fit: contain;
  flex-shrink: 0;
  filter: grayscale(100%);
  opacity: 0.55;
  transition: opacity 0.2s, filter 0.2s;
}

.company-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ================================
   FOOTER
================================ */

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

.site-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px 20px;
}

@media (min-width: 640px) {
  .site-footer__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    padding: 24px 40px;
  }
}

@media (min-width: 1024px) {
  .site-footer__inner { padding: 24px 72px; }
}

.site-footer__copy {
  font-size: 13px;
  color: var(--color-muted);
  order: 2;
}

@media (min-width: 640px) { .site-footer__copy { order: unset; } }

.site-footer__links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.site-footer__links a {
  font-size: 13px;
  color: var(--color-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.site-footer__links a:hover { color: var(--color-primary); }

/* ================================
   LEGAL PAGES
================================ */

.legal-page {
  max-width: 1440px;
  margin: 0 auto;
  padding: 48px 20px 64px;
}

@media (min-width: 640px)  { .legal-page { padding: 56px 40px 72px; } }
@media (min-width: 1024px) { .legal-page { padding: 64px 72px 80px; } }
@media (min-width: 1440px) { .legal-page { padding: 64px 120px 80px; } }

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-muted);
  text-decoration: none;
  margin-bottom: 24px;
  transition: color 0.2s;
}

.legal-back:hover { color: var(--color-primary); }

.legal-page h1 {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 900;
  color: var(--color-text);
  margin-bottom: 8px;
  line-height: 1.1;
}

.legal-date {
  font-size: 13px;
  color: var(--color-muted);
  margin-bottom: 40px;
}

.legal-page section {
  margin-top: 32px;
  margin-bottom: 32px;
}

.legal-page h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.legal-page p,
.legal-page ul {
  font-size: 15px;
  color: var(--color-text);
  line-height: 1.7;
}

.legal-page ul {
  padding-left: 20px;
  margin-top: 8px;
}

.legal-page ul li { margin-bottom: 6px; }

.legal-page a {
  color: var(--color-primary);
  text-decoration: underline;
}
