:root {
  --navy: #10275f;
  --navy-2: #0d2b5e;
  --orange: #dd8f28;
  --blue: #1c65b0;
  --mist: #eff3f8;
  --border: #d7e0ea;
  --muted: #56617a;
  --radius: 10px;
  --max: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Work Sans", system-ui, sans-serif;
  color: var(--navy-2);
  background: #fff;
  line-height: 1.55;
}

h1, h2, h3, h4 {
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 700;
  margin: 0;
  color: var(--navy-2);
}

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

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

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

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--orange);
  margin-bottom: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--orange);
  color: #fff;
}
.btn-primary:hover { background: #c67c1c; }

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

/* Header */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  cursor: pointer;
}
.brand img { height: 38px; width: 38px; }
.brand-text {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  line-height: 1.1;
  text-align: left;
  color: var(--navy-2);
}
.brand-text span { display: block; }
.brand-text .accent { color: var(--orange); }

nav.main-nav {
  display: flex;
  gap: 28px;
}
nav.main-nav button {
  background: none;
  border: none;
  font-family: "Work Sans", sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--navy-2);
  cursor: pointer;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}
nav.main-nav button:hover { border-bottom-color: var(--orange); }

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 8px 24px 20px;
  border-top: 1px solid var(--border);
}
.mobile-nav button {
  text-align: left;
  background: none;
  border: none;
  padding: 12px 0;
  font-size: 1rem;
  color: var(--navy-2);
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}
.mobile-nav.open { display: flex; }

/* Hero */
section#inicio {
  background: linear-gradient(180deg, var(--mist) 0%, #fff 100%);
  padding: 72px 0 88px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.hero-name {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.05;
  margin-bottom: 10px;
  color: var(--orange);
}
.hero-tagline {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--blue);
  font-size: 1.05rem;
  margin-bottom: 20px;
}
.hero-desc {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 52ch;
  margin-bottom: 22px;
}
.hero-desc strong { color: var(--navy-2); }
.hero-skills-label {
  font-weight: 600;
  margin-bottom: 10px;
}
.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
}
.pill-list li {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy-2);
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-portrait {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 48px -20px rgba(16, 39, 95, 0.35);
  aspect-ratio: 4/5;
  object-fit: cover;
}

/* Section shared */
.section { padding: 88px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); margin: 6px 0 14px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px 28px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.service-card:hover {
  box-shadow: 0 20px 40px -24px rgba(16, 39, 95, 0.3);
  transform: translateY(-4px);
}
.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--mist);
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 1.4rem;
}
.service-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.service-card p { color: var(--muted); font-size: 0.95rem; }

/* Methodology */
section#metodologia { background: var(--mist); }
.method-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.method-step {
  background: #fff;
  border-radius: 14px;
  padding: 28px 22px;
  border: 1px solid var(--border);
}
.method-num {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--orange);
  margin-bottom: 12px;
}
.method-step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.method-step p { color: var(--muted); font-size: 0.92rem; }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 56px;
  align-items: center;
}
.about-photo {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4/5;
  object-fit: cover;
  box-shadow: 0 24px 48px -20px rgba(16, 39, 95, 0.3);
}
.about-content p { color: var(--muted); margin-bottom: 16px; font-size: 1rem; }
.about-content p strong { color: var(--navy-2); }

/* Contact */
section#contacto { background: var(--mist); }
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
}
form.contact-form {
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.field label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
}
.field label .opt { color: var(--muted); font-weight: 400; }
.field input, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-family: inherit;
  font-size: 0.95rem;
  background: #fff;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--orange);
}
.form-note { font-size: 0.82rem; color: var(--muted); margin-top: -6px; }

.direct-contact h3 {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--orange);
  margin-bottom: 18px;
}
.contact-list { display: flex; flex-direction: column; gap: 14px; }
.contact-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: border-color 0.2s ease;
}
.contact-list a:hover { border-color: var(--orange); }
.contact-list .ic {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  flex-shrink: 0;
}

/* Footer */
footer.site-footer {
  background: var(--navy-2);
  color: #cdd7ea;
  padding: 32px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-social { display: flex; gap: 14px; }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease;
}
.footer-social a:hover { background: var(--orange); }
.back-top {
  background: rgba(255,255,255,0.08);
  border: none;
  color: #cdd7ea;
  border-radius: 8px;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 0.85rem;
}
.back-top:hover { background: var(--orange); color: #fff; }

@media (max-width: 900px) {
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-grid { direction: initial; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .method-grid { grid-template-columns: 1fr 1fr; }
  .hero-portrait { order: -1; max-width: 360px; margin: 0 auto; }
  .about-photo { max-width: 360px; margin: 0 auto; }
}

@media (max-width: 680px) {
  nav.main-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .services-grid { grid-template-columns: 1fr; }
  .method-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
}
