/* ---------- Base & tokens ---------- */
:root {
  --navy-900: #0b1f3a;
  --navy-800: #12294f;
  --navy-700: #1a3a6b;
  --blue-600: #1d4ed8;
  --blue-500: #2f6fed;
  --accent-500: #14b8a6;
  --accent-600: #0d9c8c;
  --bg: #f7f9fc;
  --bg-alt: #eef2f9;
  --card-bg: #ffffff;
  --text: #16213a;
  --text-muted: #52607a;
  --border: #e1e7f1;
  --whatsapp-btn: var(--accent-600);
  --whatsapp-btn-hover: #0b8579;
  --radius: 14px;
  --shadow: 0 10px 30px -12px rgba(11, 31, 58, 0.18);
  --max-width: 1160px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

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

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

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

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; color: var(--navy-900); }
h1 { font-size: clamp(2rem, 4vw + 1rem, 3.2rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 2.4vw + 1rem, 2.4rem); font-weight: 800; letter-spacing: -0.01em; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; color: var(--text-muted); }

a { color: var(--blue-600); text-decoration: none; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .78rem;
  font-weight: 700;
  color: var(--accent-600);
  margin: 0 0 .6em;
}

.section-lead { font-size: 1.05rem; max-width: 60ch; }

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy-900);
  color: #fff;
  padding: 10px 16px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

/* Focus visibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--accent-500);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: .85em 1.6em;
  border-radius: 999px;
  font-weight: 700;
  font-size: .98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--blue-600);
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(29, 78, 216, .55);
}
.btn-primary:hover { background: var(--navy-700); }

.btn-accent {
  background: var(--accent-500);
  color: #fff;
}
.btn-accent:hover { background: var(--accent-600); }

.btn-ghost {
  background: transparent;
  color: var(--navy-800);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--blue-600); color: var(--blue-600); }

.btn-whatsapp {
  background: var(--whatsapp-btn);
  color: #fff;
  width: 100%;
}
.btn-whatsapp:hover { background: var(--whatsapp-btn-hover); }

.icon { width: 1.1em; height: 1.1em; flex: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 249, 252, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.logo {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--navy-900);
}
.logo span { color: var(--accent-600); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--navy-900);
  border-radius: 2px;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.primary-nav ul {
  list-style: none;
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
}
.primary-nav a:not(.btn) {
  color: var(--navy-800);
  font-weight: 600;
  font-size: .95rem;
}
.primary-nav a:not(.btn):hover { color: var(--blue-600); }
.nav-cta { font-size: .9rem; padding: .6em 1.3em; }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 10px 20px 20px;
    display: none;
    gap: 16px;
  }
  .primary-nav.open { display: flex; }
  .primary-nav ul {
    flex-direction: column;
    gap: 14px;
  }
  .nav-cta { align-self: flex-start; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-tinted { background: var(--bg-alt); }
.section-head { max-width: 640px; margin-bottom: 40px; }

/* ---------- Hero ---------- */
.hero {
  padding: clamp(48px, 8vw, 88px) 0 clamp(56px, 8vw, 96px);
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(20, 184, 166, .12), transparent 60%),
    linear-gradient(180deg, #fff 0%, var(--bg) 100%);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
}
.hero-lead { font-size: 1.1rem; max-width: 52ch; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 24px 0 32px;
}
.trust-badges {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: .92rem;
  font-weight: 600;
  color: var(--navy-800);
}
.trust-badges li { display: flex; align-items: center; gap: 10px; }
.trust-badges .icon { color: var(--accent-600); }

.hero-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 5 / 4;
  object-fit: cover;
  width: 100%;
  height: auto;
}

@media (min-width: 900px) {
  .hero-inner { grid-template-columns: 1.1fr .9fr; }
  .trust-badges { flex-direction: row; flex-wrap: wrap; gap: 22px; }
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
.about-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 3 / 2;
  object-fit: cover;
  width: 100%;
  height: auto;
}
.stat-row {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}
.stat-row li { display: flex; flex-direction: column; }
.stat-row strong { font-size: 2rem; font-weight: 800; color: var(--blue-600); line-height: 1; }
.stat-row span { font-size: .88rem; color: var(--text-muted); margin-top: 4px; }

@media (min-width: 900px) {
  .about-grid { grid-template-columns: .9fr 1.1fr; }
}

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.service-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow);
}
.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue-600), var(--accent-500));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-bottom: 18px;
}
.service-icon svg { width: 26px; height: 26px; }
.service-desc { font-size: .95rem; }
.service-card ul {
  margin: 0;
  padding-left: 20px;
  color: var(--text-muted);
  font-size: .94rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.services-note {
  margin-top: 44px;
  padding: 28px;
  background: var(--navy-900);
  border-radius: var(--radius);
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.services-note p { color: #dbe4f5; margin: 0; font-size: 1.02rem; max-width: 46ch; }

@media (min-width: 700px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Como trabajamos ---------- */
.how-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
.pillars {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.pillars li { display: flex; gap: 16px; align-items: flex-start; }
.pillar-icon {
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 10px;
  background: var(--bg-alt);
  color: var(--blue-600);
  display: flex;
  align-items: center;
  justify-content: center;
}
.pillar-icon svg { width: 22px; height: 22px; }
.pillars h3 { margin-bottom: 4px; }
.pillars p { margin: 0; font-size: .94rem; }

.how-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 100%;
  height: auto;
}

@media (min-width: 900px) {
  .how-grid { grid-template-columns: 1.1fr .9fr; }
}

/* ---------- Testimonials ---------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
.testimonial-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin: 0;
  box-shadow: var(--shadow);
}
.testimonial-card blockquote {
  margin: 0 0 20px;
  font-size: 1.02rem;
  color: var(--navy-900);
  font-weight: 500;
}
.testimonial-card figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
}
.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-600), var(--accent-500));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .85rem;
  flex: none;
}
.testimonial-card figcaption strong { display: block; color: var(--navy-900); font-size: .95rem; }
.testimonial-card figcaption span { font-size: .82rem; color: var(--text-muted); }
.testimonials-note { margin-top: 24px; font-size: .82rem; color: var(--text-muted); }

@media (min-width: 700px) {
  .testimonials-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Modalidad ---------- */
.modalidad-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
.modalidad-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 3 / 2;
  object-fit: cover;
  width: 100%;
  height: auto;
}
.modalidad-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 24px;
}
.modalidad-col {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.modalidad-col h3 { color: var(--accent-600); }
.modalidad-col p { font-size: .9rem; margin: 0; }

@media (min-width: 900px) {
  .modalidad-grid { grid-template-columns: .9fr 1.1fr; }
}

/* ---------- Contact ---------- */
.section-contact { background: var(--bg-alt); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
}
.contact-form {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field label,
.form-field legend {
  font-weight: 700;
  font-size: .9rem;
  color: var(--navy-900);
  padding: 0;
}
fieldset.form-field {
  border: none;
  margin: 0;
  padding: 0;
}
.form-field input[type="text"],
.form-field textarea {
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: .8em .9em;
  font-family: inherit;
  font-size: .96rem;
  background: #fff;
  color: var(--text);
  resize: vertical;
}
.form-field input[type="text"]:focus,
.form-field textarea:focus {
  border-color: var(--blue-600);
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}
.radio-option {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: .92rem;
  color: var(--text-muted);
  cursor: pointer;
}
.radio-option input { width: 18px; height: 18px; accent-color: var(--blue-600); flex: none; }

.form-hint {
  min-height: 1.2em;
  font-size: .86rem;
  color: var(--accent-600);
  font-weight: 600;
  margin: 0;
}

.contact-media { position: relative; }
.contact-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 100%;
  height: auto;
}
.whatsapp-direct {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--accent-600);
  font-size: .95rem;
}
.whatsapp-direct:hover { color: var(--accent-500); }

@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 1.15fr .85fr; }
}

/* ---------- Floating WhatsApp ---------- */
.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--whatsapp-btn);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px -8px rgba(11, 31, 58, .45);
  z-index: 90;
  transition: background-color .15s ease, transform .15s ease;
}
.whatsapp-float:hover { background: var(--whatsapp-btn-hover); transform: translateY(-2px); }
.whatsapp-float svg { width: 28px; height: 28px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900);
  color: #cdd8ec;
  padding: 56px 0 34px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
.footer-inner .logo { color: #fff; }
.footer-inner .logo span { color: var(--accent-500); }
.footer-brand p { color: #9fb0cf; font-size: .9rem; margin-top: 10px; }
.footer-col h3 {
  color: #fff;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 10px;
}
.footer-col p { color: #9fb0cf; font-size: .88rem; }
.footer-col a { color: #cdd8ec; }
.footer-col a:hover { color: var(--accent-500); }

@media (min-width: 700px) {
  .footer-inner { grid-template-columns: 1.3fr 1fr 1fr 1fr; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .whatsapp-float { transition: none; }
}
