/* ══════════════════════════════════════════════════
   INTELCOMERCIAL — Estilos del sitio web
   Paleta: #E37222 (naranja) · #1E3A5F (navy) · #005293 (azul) · #F3F1EE (paper)
   Fuentes: Fraunces (headings) · Inter (body) · IBM Plex Mono (datos)
   ══════════════════════════════════════════════════ */

/* ── Variables ── */
:root {
  --ic-orange: #E37222;
  --ic-navy: #1E3A5F;
  --ic-blue: #005293;
  --ic-paper: #F3F1EE;
  --ic-text: #1A1A1A;
  --ic-text-light: #4B5563;
  --ic-gray: #9CA3AF;
  --ic-border: #E5E7EB;
  --ic-green: #10B981;
  --ic-red: #EF4444;
  --ic-white: #FFFFFF;

  --font-heading: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-data: 'IBM Plex Mono', 'Consolas', monospace;

  --max-width: 1140px;
  --nav-height: 72px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ic-text);
  background: var(--ic-white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--ic-blue); text-decoration: none; }
a:hover { color: var(--ic-navy); }

/* ── Tipografía ── */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--ic-navy);
  line-height: 1.2;
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 1rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1rem; }

.text-orange { color: var(--ic-orange); }
.text-navy { color: var(--ic-navy); }
.text-gray { color: var(--ic-gray); }
.text-light { color: var(--ic-text-light); }
.font-data { font-family: var(--font-data); }

/* ── Layout ── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section--paper {
  background: var(--ic-paper);
}

.section--navy {
  background: var(--ic-navy);
  color: var(--ic-white);
}
.section--navy h2,
.section--navy h3 { color: var(--ic-white); }
.section--navy .text-light { color: #CBD5E1; }

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: var(--ic-white);
  border-bottom: 3px solid var(--ic-orange);
  display: flex;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 1px 8px rgba(0,0,0,0.05);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav__logo img {
  height: 36px;
  width: auto;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav__links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ic-text);
  transition: color 0.2s;
  position: relative;
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--ic-orange);
}

.nav__links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--ic-orange);
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.2rem;
  background: var(--ic-orange);
  color: var(--ic-white) !important;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s, transform 0.15s;
}
.nav__cta:hover {
  background: #C9611B;
  color: var(--ic-white) !important;
  transform: translateY(-1px);
}

/* Hamburger */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ic-navy);
  margin: 5px 0;
  transition: transform 0.3s, opacity 0.3s;
}

/* Spacer for fixed nav */
.nav-spacer { height: var(--nav-height); }

/* ── HERO ── */
.hero {
  padding: 5rem 0 4rem;
  background: var(--ic-white);
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero__title {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  color: var(--ic-navy);
  line-height: 1.1;
  margin-bottom: 1.2rem;
}

.hero__subtitle {
  font-size: 1.1rem;
  color: var(--ic-text-light);
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 520px;
}

/* ── Botones ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.8rem;
  border-radius: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-1px); }

.btn--primary {
  background: var(--ic-orange);
  color: var(--ic-white);
}
.btn--primary:hover {
  background: #C9611B;
  color: var(--ic-white);
  box-shadow: 0 4px 14px rgba(227, 114, 34, 0.35);
}

.btn--secondary {
  background: transparent;
  color: var(--ic-blue);
  border: 2px solid var(--ic-blue);
}
.btn--secondary:hover {
  background: var(--ic-blue);
  color: var(--ic-white);
}

.btn--ghost {
  background: transparent;
  color: var(--ic-navy);
  border: 2px solid var(--ic-border);
}
.btn--ghost:hover {
  border-color: var(--ic-navy);
}

/* ── Cards ── */
.card {
  background: var(--ic-white);
  border-radius: 10px;
  padding: 1.8rem;
  border-top: 3px solid var(--ic-orange);
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.card--blue { border-top-color: var(--ic-blue); }
.card--navy { border-top-color: var(--ic-navy); }

.card__icon {
  font-size: 1.8rem;
  margin-bottom: 0.8rem;
}

.card__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--ic-navy);
  margin-bottom: 0.5rem;
}

.card__text {
  font-size: 0.92rem;
  color: var(--ic-text-light);
  line-height: 1.5;
}

/* Grid de cards */
.cards-grid {
  display: grid;
  gap: 1.5rem;
}
.cards-grid--3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.cards-grid--2 { grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); }
.cards-grid--4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* ── Badge ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-data);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.3rem 0.75rem;
  border-radius: 99px;
}
.badge--green { background: #D1FAE5; color: #065F46; }
.badge--orange { background: #FEF3C7; color: #92400E; }
.badge--blue { background: #DBEAFE; color: #1E3A5F; }
.badge--gray { background: #F3F4F6; color: #4B5563; }

/* ── Barras horizontales ── */
.bar-chart { width: 100%; }
.bar-row {
  display: flex;
  align-items: center;
  margin-bottom: 0.65rem;
}
.bar-label {
  width: 180px;
  font-size: 0.88rem;
  font-weight: 500;
  flex-shrink: 0;
}
.bar-track {
  flex: 1;
  height: 28px;
  background: var(--ic-paper);
  border-radius: 4px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  border-radius: 4px;
  display: flex;
  align-items: center;
  padding: 0 0.6rem;
  transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.bar-fill span {
  font-family: var(--font-data);
  font-size: 0.75rem;
  color: var(--ic-white);
  font-weight: 500;
  white-space: nowrap;
}
.bar-fill--orange { background: var(--ic-orange); }
.bar-fill--blue { background: var(--ic-blue); }
.bar-fill--navy { background: var(--ic-navy); }

/* ── Pipeline visual ── */
.pipeline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  margin: 1.5rem 0;
}
.pipeline__step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-family: var(--font-data);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ic-white);
}
.pipeline__step--blue { background: var(--ic-blue); }
.pipeline__step--orange { background: var(--ic-orange); }
.pipeline__step--green { background: var(--ic-green); }
.pipeline__arrow {
  font-size: 1.4rem;
  color: var(--ic-gray);
  padding: 0 0.4rem;
}

/* ── Tabla ── */
.table-wrap {
  overflow-x: auto;
  border-radius: 8px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}
.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--ic-white);
}
.table th {
  text-align: left;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ic-gray);
  padding: 0.8rem 1rem;
  border-bottom: 2px solid var(--ic-border);
  background: #FAFAF8;
}
.table td {
  padding: 0.8rem 1rem;
  font-size: 0.92rem;
  border-bottom: 1px solid #F3F4F6;
  vertical-align: top;
}
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: #FAFAF8; }

/* ── CTA Section ── */
.cta-section {
  text-align: center;
  padding: 4rem 0;
  background: var(--ic-navy);
  color: var(--ic-white);
}
.cta-section h2 { color: var(--ic-white); margin-bottom: 1rem; }
.cta-section p { color: #CBD5E1; margin-bottom: 2rem; font-size: 1.1rem; }

/* ── Footer ── */
.footer {
  background: var(--ic-navy);
  color: #CBD5E1;
  padding: 3rem 0 2rem;
}

.footer .container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
}

.footer__brand {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--ic-white);
  letter-spacing: 0.04em;
  margin-bottom: 0.8rem;
}

.footer__text {
  font-size: 0.88rem;
  line-height: 1.6;
  max-width: 360px;
}

.footer__heading {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ic-white);
  margin-bottom: 0.8rem;
}

.footer__links {
  list-style: none;
}
.footer__links li { margin-bottom: 0.5rem; }
.footer__links a {
  font-size: 0.88rem;
  color: #CBD5E1;
  transition: color 0.2s;
}
.footer__links a:hover { color: var(--ic-orange); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 2rem;
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--ic-gray);
}

.footer__bottom a { color: var(--ic-gray); }
.footer__bottom a:hover { color: var(--ic-orange); }

/* ── Comparativa ── */
.comparison {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  align-items: stretch;
}
.comparison__col {
  padding: 2rem;
}
.comparison__vs {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--ic-gray);
  padding: 0 1.5rem;
}

/* ── Página interior ── */
.page-header {
  padding: 3rem 0;
  background: var(--ic-paper);
  border-bottom: 3px solid var(--ic-orange);
}
.page-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 0.5rem;
}
.page-header p {
  font-size: 1.1rem;
  color: var(--ic-text-light);
  max-width: 600px;
}

/* ── Servicio bloque ── */
.service-block {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--ic-border);
}
.service-block:last-child { border-bottom: none; }

.service-block__number {
  font-family: var(--font-data);
  font-size: 0.78rem;
  color: var(--ic-orange);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.3rem;
}

/* ── Contacto ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info__item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.contact-info__icon {
  width: 44px;
  height: 44px;
  background: var(--ic-paper);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* ── 404 ── */
.error-page {
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.error-page__code {
  font-family: var(--font-data);
  font-size: 8rem;
  font-weight: 700;
  color: var(--ic-paper);
  line-height: 1;
}

/* ── Animaciones ── */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav__links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--ic-white);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 3px solid var(--ic-orange);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }
  .nav__links.open { display: flex; }
  .nav__toggle { display: block; }

  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero__subtitle { margin-left: auto; margin-right: auto; }

  .cards-grid--3, .cards-grid--2 {
    grid-template-columns: 1fr;
  }

  .footer .container {
    grid-template-columns: 1fr;
  }

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

  .pipeline {
    flex-direction: column;
  }
  .pipeline__arrow { transform: rotate(90deg); }

  .comparison {
    grid-template-columns: 1fr;
  }
  .comparison__vs {
    padding: 1rem 0;
  }

  .bar-label { width: 120px; font-size: 0.8rem; }
}

@media (max-width: 480px) {
  .section { padding: 3rem 0; }
  .container { padding: 0 1rem; }
  .hero { padding: 3rem 0 2rem; }
  .btn { padding: 0.7rem 1.4rem; font-size: 0.9rem; }
}

/* ── Print ── */
@media print {
  .nav, .nav-spacer, .nav__toggle { display: none; }
  .section { padding: 1.5rem 0; }
  .card { box-shadow: none; border: 1px solid #ddd; break-inside: avoid; }
  .hero { padding: 1rem 0; }
  .footer { display: none; }
  .btn { display: none; }
}
