/* ==========================================================================
   Crow Software Design — Hoja de estilos principal
   Paleta basada en el logo real: navy + verde sobre fondo claro
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-alt: #f4f7fb;
  --surface: #ffffff;
  --surface-hover: #f7fafc;
  --border: #e3e8f0;
  --navy: #0e1e38;
  --navy-soft: #29385a;
  --text: #16233d;
  --text-muted: #56607a;
  --text-faint: #8892a6;
  --accent: #0f8a44;
  --accent-dark: #0b6b35;
  --accent-soft: #e6f5eb;
  --accent-gradient: linear-gradient(135deg, #12a352 0%, #0b6b35 100%);
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 16px 40px rgba(14, 30, 56, 0.08);
  --shadow-sm: 0 4px 14px rgba(14, 30, 56, 0.06);
  --max-width: 1180px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Space Grotesk', var(--font-sans);
}

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

html { scroll-behavior: smooth; }

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

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--navy);
}

h1 { font-size: clamp(2.4rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.3rem; }

p.lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 620px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.eyebrow::before {
  content: '';
  width: 18px;
  height: 2px;
  background: var(--accent-gradient);
  border-radius: 2px;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #ffffff;
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(15, 138, 68, 0.28); }

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--navy);
}

.btn-outline:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* ---------- Header / Nav ---------- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--navy);
}

.brand .logo-mark { width: 42px; height: 42px; border-radius: 50%; }

.brand .brand-sub {
  display: block;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.65rem;
  color: var(--accent);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

nav.main-nav ul {
  display: flex;
  gap: 8px;
  align-items: center;
}

nav.main-nav a {
  display: block;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s ease, background 0.2s ease;
}

nav.main-nav a:hover { color: var(--navy); background: var(--bg-alt); }

nav.main-nav a.active { color: #ffffff; background: var(--accent); }

.nav-actions { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span { width: 22px; height: 2px; background: var(--navy); border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 90px 0 90px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -180px;
  right: -160px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(15, 138, 68, 0.10), transparent 65%);
  filter: blur(10px);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -220px;
  left: -160px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(14, 30, 56, 0.06), transparent 65%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero h1 { margin-bottom: 20px; }

.hero .accent-word { color: var(--accent); }

.hero p.lead { margin-bottom: 34px; }

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 44px; }

.hero-stats { display: flex; gap: 36px; flex-wrap: wrap; }

.hero-stats div strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--navy);
}

.hero-stats div span { font-size: 0.85rem; color: var(--text-faint); }

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-visual img {
  width: 100%;
  filter: drop-shadow(0 20px 40px rgba(14, 30, 56, 0.12));
}

.hero-visual .float-chip {
  position: absolute;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-sm);
}

.float-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

.float-chip.chip-1 { top: 6%; left: -2%; }
.float-chip.chip-2 { bottom: 8%; right: -2%; }
.float-chip.chip-2 .dot { background: var(--navy); }

/* ---------- Secciones genéricas ---------- */
section { padding: 90px 0; }

.section-head {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-head.left { margin: 0 0 48px; text-align: left; }

/* ---------- Cards de servicios ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--shadow); }

.card .icon-badge {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent-dark);
}

.card h3 { margin-bottom: 10px; }

.card p { color: var(--text-muted); font-size: 0.96rem; }

.card ul.mini-list { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }

.card ul.mini-list li {
  font-size: 0.88rem;
  color: var(--text-muted);
  padding-left: 18px;
  position: relative;
}

.card ul.mini-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- Franja alterna ---------- */
.alt-bg { background: var(--bg-alt); }

/* ---------- Proceso / pasos ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}

.step {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  background: var(--surface);
}

.step .step-number {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--accent);
  margin-bottom: 12px;
}

.step h4 { margin-bottom: 8px; font-size: 1.05rem; }
.step p { color: var(--text-muted); font-size: 0.9rem; }

/* ---------- Valores / Nosotros ---------- */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 40px 0;
}

.stat-row strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--accent);
}

.stat-row span { color: var(--text-faint); font-size: 0.85rem; }

.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.team-card { text-align: center; }

.team-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  margin: 0 auto 16px;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  color: #ffffff;
}

.team-card h4 { margin-bottom: 4px; }
.team-card span { color: var(--text-faint); font-size: 0.85rem; }

/* ---------- CTA ---------- */
.cta-band {
  background: var(--navy);
  border-radius: 24px;
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(15, 138, 68, 0.35), transparent 60%);
  pointer-events: none;
}

.cta-band h2, .cta-band p { color: #ffffff; position: relative; }
.cta-band h2 { margin-bottom: 8px; }
.cta-band p { color: #c7d0e0; }

/* ---------- Formulario de contacto ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.form-field { margin-bottom: 20px; }

.form-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-muted);
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: border-color 0.2s ease;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--accent);
}

.form-field textarea { resize: vertical; min-height: 130px; }

#form-feedback {
  display: none;
  margin-top: 8px;
  padding: 12px 16px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
}

.contact-info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.contact-info-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.contact-info-item:last-child { border-bottom: none; }

.contact-info-item .icon-badge {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  flex-shrink: 0;
}

.contact-info-item h4 { font-size: 0.95rem; margin-bottom: 4px; }
.contact-info-item p, .contact-info-item a { color: var(--text-muted); font-size: 0.9rem; }
.contact-info-item a:hover { color: var(--accent); }

.map-placeholder {
  margin-top: 24px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  color: var(--text-faint);
  font-size: 0.85rem;
}

/* ---------- Footer ---------- */
footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 28px;
  background: var(--bg-alt);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}

.footer-grid h4 { font-size: 0.9rem; margin-bottom: 16px; color: var(--navy); }

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

.footer-grid a, .footer-grid p { color: var(--text-muted); font-size: 0.9rem; }
.footer-grid a:hover { color: var(--accent); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-faint);
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 12px;
}

.social-links { display: flex; gap: 12px; }

.social-links a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
  color: var(--navy);
}

.social-links a:hover { border-color: var(--accent); color: #ffffff; background: var(--accent); }

/* ---------- Page header (páginas internas) ---------- */
.page-header {
  padding: 64px 0 46px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 420px; margin: 0 auto; }
  .grid-3, .grid-2, .values-grid, .team-grid, .steps, .stat-row { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  nav.main-nav { position: fixed; top: 66px; left: 0; right: 0; background: #ffffff; border-bottom: 1px solid var(--border); flex-direction: column; padding: 16px 24px; transform: translateY(-130%); opacity: 0; transition: transform 0.25s ease, opacity 0.25s ease; }
  nav.main-nav.open { transform: translateY(0); opacity: 1; }
  nav.main-nav ul { flex-direction: column; width: 100%; }
  nav.main-nav a { padding: 12px 16px; }
  .nav-toggle { display: flex; }
  .nav-actions .btn-primary.desktop-only { display: none; }
  .grid-3, .grid-2, .values-grid, .team-grid, .steps, .stat-row, .footer-grid { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; text-align: center; padding: 40px 28px; }
  section { padding: 64px 0; }
  .hero { padding: 80px 0 50px; }
}
