:root {
  --navy: #0E2A47;
  --navy-2: #163A5F;
  --green: #1F8A5B;
  --green-light: #6CC08B;
  --gold: #E0A93B;
  --ink: #1B2733;
  --muted: #5A6B7B;
  --bg: #FFFFFF;
  --tint: #F3F8F5;
  --line: #E2EAE6;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(14, 42, 71, .08);
  --font-head: "Fraunces", Georgia, serif;
  --font-body: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-head); color: var(--navy); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.2rem; }
h1 em { font-style: italic; color: var(--green); }
p { margin: 0 0 1em; }

.container { width: min(1160px, 100% - 32px); margin-inline: auto; }
.eyebrow {
  font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--green); margin-bottom: .8rem;
  display: inline-flex; align-items: center; gap: .6rem;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--gold); border-radius: 2px; }
.muted { color: var(--muted); }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .9rem 1.5rem; border-radius: 999px; border: 2px solid var(--green);
  background: var(--green); color: #fff; font-weight: 600; font-size: .98rem;
  transition: transform .2s, background .2s, box-shadow .2s; cursor: pointer; font-family: inherit;
}
.btn:hover { background: #18734B; border-color: #18734B; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(31,138,91,.25); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; border-color: var(--navy); box-shadow: none; }
.btn-small { padding: .55rem 1.1rem; font-size: .9rem; }
.btn-full { width: 100%; }

/* Encabezado */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.9); backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(14,42,71,.05); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: .7rem; color: var(--navy); }
.brand-mark { width: 46px; height: 46px; color: var(--navy); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.45rem; }
.brand-sub { font-size: .62rem; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; color: var(--green); margin-top: .3rem; }
.brand-light, .brand-light .brand-mark { color: #fff; }
.brand-light .brand-sub { color: var(--green-light); }

.menu { display: flex; align-items: center; gap: 1.6rem; white-space: nowrap; }
.menu a:not(.btn) { font-weight: 500; font-size: .95rem; color: var(--ink); position: relative; }
.menu a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -4px; width: 0; height: 2px;
  background: var(--green); transition: width .2s;
}
.menu a:not(.btn):hover::after { width: 100%; }
.lang { display: inline-flex; border: 1.5px solid var(--line); border-radius: 999px; padding: 3px; }
.menu .lang a { font-size: .78rem; font-weight: 700; letter-spacing: .06em; padding: .3rem .65rem; border-radius: 999px; color: var(--muted); border: 0; }
.menu .lang a::after { display: none; }
.menu .lang a:hover { color: var(--navy); }
.menu .lang a[aria-current="true"] { background: var(--navy); color: #fff; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: .25s; }

/* Hero */
.hero {
  padding: clamp(3rem, 7vw, 6rem) 0 clamp(4rem, 8vw, 7rem);
  background:
    radial-gradient(800px 400px at 90% 10%, rgba(108,192,139,.18), transparent 60%),
    radial-gradient(600px 300px at 0% 100%, rgba(224,169,59,.10), transparent 60%);
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 36rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.8rem 0; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; }
.hero-points li { font-size: .9rem; font-weight: 600; color: var(--navy); display: flex; align-items: center; gap: .45rem; }
.hero-points li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green-light); }

.hero-visual { position: relative; aspect-ratio: 1; max-width: 460px; justify-self: center; width: 100%; }
.orb {
  position: absolute; inset: 8%; border-radius: 50%;
  background: linear-gradient(145deg, #fff, var(--tint));
  box-shadow: inset 0 0 0 1px var(--line), 0 30px 60px rgba(14,42,71,.10);
}
.hero-mark { position: absolute; inset: 22%; width: 56%; height: 56%; color: var(--navy); animation: rise 1.2s ease-out both; }
.float-card {
  position: absolute; display: flex; align-items: center; gap: .7rem;
  background: #fff; padding: .7rem 1rem; border-radius: 14px; box-shadow: var(--shadow);
  border: 1px solid var(--line); animation: float 6s ease-in-out infinite;
}
.float-card strong { display: block; font-size: .9rem; color: var(--navy); }
.float-card small { color: var(--muted); font-size: .78rem; }
.fc-icon {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: var(--tint); color: var(--green); font-weight: 700;
}
.fc-1 { top: 6%; left: -4%; }
.fc-2 { top: 46%; right: -6%; animation-delay: -2s; }
.fc-3 { bottom: 4%; left: 6%; animation-delay: -4s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes rise { from { opacity: 0; transform: translateY(20px) scale(.95); } to { opacity: 1; transform: none; } }

/* Secciones */
.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section-tint { background: var(--tint); }
.section-head { max-width: 640px; margin-bottom: 3rem; }
.section-head p:not(.eyebrow) { color: var(--muted); }

.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 3rem; align-items: start; }
.about-copy p { color: var(--muted); font-size: 1.05rem; }
.about-copy strong { color: var(--navy); }
.logo-story {
  display: flex; gap: 1.2rem; align-items: center; margin-top: 1.8rem; padding: 1.3rem 1.4rem;
  border-radius: var(--radius); background: var(--tint); border: 1px solid var(--line);
}
.logo-story-mark { flex: 0 0 64px; width: 64px; height: 64px; color: var(--navy); }
.logo-story p { margin: 0; font-size: .95rem; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.card {
  background: #fff; border-radius: var(--radius); padding: 2rem 1.7rem;
  border: 1px solid var(--line); transition: transform .25s, box-shadow .25s, border-color .25s;
  position: relative; overflow: hidden;
}
.card::after {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--green), var(--gold)); transition: width .35s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card:hover::after { width: 100%; }
.card p { color: var(--muted); margin: 0; font-size: .97rem; }
.card-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--navy); margin-bottom: 1.2rem;
}
.card-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--green-light); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card-icon .fill { fill: var(--gold); stroke: none; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; counter-reset: s; position: relative; }
.steps::before {
  content: ""; position: absolute; top: 28px; left: 6%; right: 6%; height: 2px;
  background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 14px);
}
.step { position: relative; }
.step-num {
  position: relative; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: #fff; border: 2px solid var(--green); color: var(--green);
  font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; margin-bottom: 1.2rem;
}
.step:last-child .step-num { background: var(--green); color: #fff; }
.step p { color: var(--muted); font-size: .97rem; }

.section-dark { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.section-dark::before {
  content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -160px; border-radius: 50%;
  border: 60px solid rgba(108,192,139,.08);
}
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .eyebrow { color: var(--green-light); }
.clients { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; position: relative; }
.client {
  padding: 1.8rem 1.5rem; border-radius: var(--radius);
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
  transition: background .25s;
}
.client:hover { background: rgba(255,255,255,.09); }
.client h3 { font-size: 1.1rem; }
.client p { color: rgba(255,255,255,.72); margin: 0; font-size: .95rem; }

.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.why-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.why-list li {
  display: flex; gap: 1rem; align-items: flex-start; padding: 1.2rem 1.3rem;
  border-radius: var(--radius); border: 1px solid var(--line); background: #fff;
}
.why-list strong { color: var(--navy); }
.why-list p { margin: .2rem 0 0; color: var(--muted); font-size: .95rem; }
.check {
  flex: 0 0 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--green); color: #fff; font-size: .85rem; font-weight: 700;
}

.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 3rem; align-items: start; }
.contact-info { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .9rem; }
.contact-info li { display: flex; align-items: center; gap: .8rem; color: var(--ink); font-weight: 500; }
.contact-info span {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: #fff; color: var(--green); border: 1px solid var(--line);
}
.contact-info a:hover { color: var(--green); }
.contact-form {
  background: #fff; padding: 2rem; border-radius: 20px; box-shadow: var(--shadow); border: 1px solid var(--line);
}
.field { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1.1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { font-size: .88rem; font-weight: 600; color: var(--navy); }
.field input, .field select, .field textarea {
  font: inherit; padding: .8rem .95rem; border-radius: 10px; border: 1.5px solid var(--line);
  background: #FBFDFC; color: var(--ink); transition: border-color .2s, box-shadow .2s; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(31,138,91,.12);
}
.field .invalid { border-color: #C9473A; }
.form-status { margin: .9rem 0 0; font-size: .92rem; font-weight: 600; min-height: 1.2em; }
.form-status.ok { color: var(--green); }
.form-status.err { color: #C9473A; }

/* Pie */
.site-footer { background: #0A2038; color: rgba(255,255,255,.75); padding: 3.5rem 0 1.5rem; }
.footer-grid { display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; flex-wrap: wrap; }
.footer-tag { margin: 1rem 0 0; font-size: .95rem; }
.footer-nav { display: flex; gap: 1.6rem; flex-wrap: wrap; }
.footer-nav a:hover { color: var(--green-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 2.5rem; padding-top: 1.3rem; font-size: .85rem; }
.footer-bottom p { margin: 0; }

/* Animación de aparición */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .float-card, .hero-mark { animation: none; }
  html { scroll-behavior: auto; }
}

/* Responsive */
@media (max-width: 980px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .clients { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 2.2rem; }
  .steps::before { display: none; }
}
@media (max-width: 1040px) {
  .nav-toggle { display: block; }
  .menu {
    position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: .5rem 16px 1.2rem;
    display: none; box-shadow: 0 20px 30px rgba(14,42,71,.08);
  }
  .menu.open { display: flex; }
  .menu a:not(.btn) { padding: .85rem 0; border-bottom: 1px solid var(--line); }
  .menu .btn { margin-top: 1rem; }
  .menu .lang { align-self: flex-start; margin-top: 1rem; }
  .menu .lang a { padding: .45rem .9rem; border-bottom: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 860px) {
  .hero-grid, .about-grid, .why-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 380px; }
}
@media (max-width: 560px) {
  .cards, .clients, .steps { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .contact-form { padding: 1.5rem; }
  .fc-1 { left: 0; } .fc-2 { right: 0; }
  .logo-story { flex-direction: column; align-items: flex-start; }
  .brand-mark { width: 40px; height: 40px; }
  .brand-name { font-size: 1.25rem; }
}
