/* =========================================================
   Evaluación y Desarrollo — estilos del sitio estático
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Familjen+Grotesk:wght@400;500;600;700&family=Assistant:wght@300;400;600;700&display=swap');

:root {
  --teal: #0f5467;
  --teal-900: #0b3f4d;
  --accent: #01c6bf;
  --accent-600: #00a9a3;
  --ink: #1d2b30;
  --muted: #5f6b70;
  --soft: #f8f6f3;
  --line: #e3e7e8;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 84, 103, .10);
  --font-head: 'Familjen Grotesk', system-ui, sans-serif;
  --font-body: 'Assistant', system-ui, sans-serif;
  --container: 1180px;
  --header-h: 96px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--teal); line-height: 1.15; margin: 0 0 .6em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 600; }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); font-weight: 400; letter-spacing: .01em; }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); font-weight: 600; }
p { margin: 0 0 1em; }
.hl { color: var(--accent); font-weight: 700; }
.container { width: min(var(--container), 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--teal); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 10px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 4px 18px rgba(0,0,0,.05); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.logo img { width: 210px; height: auto; }
.nav ul { list-style: none; display: flex; gap: 36px; margin: 0; padding: 0; }
.nav a {
  font-family: var(--font-head); font-size: 17px; text-decoration: none; color: var(--teal);
  padding: 6px 0; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent); border-color: var(--accent); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--teal); margin: 6px 0; transition: .25s; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-size: 16px; font-weight: 500;
  padding: 13px 28px; border-radius: 50px; text-decoration: none; cursor: pointer;
  border: 1px solid var(--white); color: var(--white); background: transparent;
  transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--white); color: var(--teal); }
.btn--solid { background: var(--accent); border-color: var(--accent); color: var(--white); }
.btn--solid:hover { background: var(--teal); border-color: var(--teal); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 640px; display: flex; align-items: center; color: var(--white); overflow: hidden; }
.hero--short { min-height: 460px; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,84,103,.92) 0%, rgba(15,84,103,.72) 55%, rgba(15,84,103,.55) 100%); }
.hero .container { position: relative; z-index: 1; }
.hero h1 { color: var(--white); max-width: 15ch; }
.hero__kicker { font-family: var(--font-head); font-size: 1.15rem; color: var(--accent); margin-bottom: 14px; font-weight: 600; }
.hero__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.hero__card { background: var(--white); color: var(--ink); padding: 34px 36px; border-radius: 4px; font-size: 17px; }
.hero__card p:last-child { margin: 0; }

/* ---------- Sections ---------- */
.section { padding: 100px 0; }
.section--soft { background: var(--soft); }
.section--teal { background: var(--teal); color: var(--white); }
.section--teal h2 { color: var(--white); }
.lead { font-size: clamp(1.25rem, 2.4vw, 1.75rem); line-height: 1.5; text-align: center; max-width: 860px; margin: 0 auto; font-weight: 300; }
.section--teal .lead { color: var(--white); }
.center { text-align: center; }
.intro { max-width: 820px; margin: 0 auto 56px; text-align: center; color: var(--muted); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split--reverse .split__media { order: -1; }
.split__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 4px; }
.split h3 { color: var(--teal); }
/* Foto "Nuestro diferencial": mismo recorte que en Wix, con las dos socias centradas */
.split__media--diferencial { overflow: hidden; border-radius: 4px; }
.split__media--diferencial img { transform: scale(1.254); transform-origin: 100% 80.6%; border-radius: 0; }

/* Curva decorativa (como en Wix) */
.curve { position: relative; }
.curve::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 90px;
  background: var(--soft);
  clip-path: ellipse(70% 100% at 50% 100%);
}

/* ---------- Expertise ---------- */
.expertise { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.exp-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 40px 24px; text-align: center; transition: transform .25s, box-shadow .25s;
}
.exp-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.exp-card svg { width: 30px; height: 30px; color: var(--accent); margin-bottom: 16px; }
.exp-card h3 { font-size: 1.1rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; margin: 0; }

/* ---------- Service cards ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.svc-card { display: flex; flex-direction: column; text-decoration: none; background: var(--accent); color: var(--white); transition: transform .25s, box-shadow .25s; }
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.svc-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.svc-card__body { padding: 26px 26px 24px; display: flex; flex-direction: column; flex: 1; }
.svc-card h3 { color: var(--white); font-weight: 400; font-size: 1.35rem; margin-bottom: 22px; }
.svc-card h3 strong { font-weight: 700; }
.svc-card__more { margin-top: auto; font-family: var(--font-head); font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 10px; }
.svc-card__more::after { content: "→"; font-size: 18px; transition: transform .2s; }
.svc-card:hover .svc-card__more::after { transform: translateX(5px); }

/* ---------- Service detail ---------- */
.svc-detail { padding: 90px 0; border-bottom: 1px solid var(--line); }
.svc-detail:nth-of-type(even) { background: var(--soft); }
.svc-detail h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.svc-detail h2 strong { font-weight: 700; color: var(--accent); }
.svc-detail ul { padding-left: 0; list-style: none; margin: 0 0 1.4em; }
.svc-detail li { position: relative; padding-left: 26px; margin-bottom: 12px; font-size: 17px; }
.svc-detail li::before { content: ""; position: absolute; left: 0; top: .6em; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.svc-detail li strong { color: var(--teal); }
.svc-detail .note { font-family: var(--font-head); font-size: 1.25rem; color: var(--teal); }
.svc-detail .split { align-items: start; }
.svc-detail .split__media { position: sticky; top: calc(var(--header-h) + 30px); }
.tag { display: inline-block; font-family: var(--font-head); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-600); margin-bottom: 10px; font-weight: 600; }

/* ---------- CV banner ---------- */
.cv-banner { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: center; }
.cv-banner img { border-radius: 4px; width: 100%; }
.cv-banner h2 strong { color: var(--accent); font-weight: 700; }

/* ---------- Team ---------- */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.value { background: var(--white); border-radius: var(--radius); padding: 36px 30px; border-top: 4px solid var(--accent); box-shadow: var(--shadow); }
.value h3 { font-size: 1.3rem; }
.value p { color: var(--muted); margin: 0; font-size: 17px; }

.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.member img { width: 100%; height: auto; aspect-ratio: 6 / 5; object-fit: cover; object-position: 50% 0; border-radius: 4px; margin-bottom: 22px; }
/* Encuadres individuales (replican el recorte original de Wix) */
.member--mtjimenez img { object-position: 50% 0; }
.member--dvarschavsky img { object-position: 50% 66%; }
.member--vojeda img { object-position: 50% 0; }
.member__role { font-size: 15px; color: var(--muted); margin: 0; }
.member h3 { margin: 2px 0 14px; }
.member p { font-size: 16px; color: var(--ink); }
.member__links { display: flex; gap: 14px; margin-top: 10px; }
.member__links a { color: var(--accent); display: inline-flex; }
.member__links svg { width: 26px; height: 26px; }

/* ---------- Contact form ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: start; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form .full { grid-column: 1 / -1; }
.form label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 6px; font-weight: 600; }
.form input, .form textarea {
  width: 100%; font: inherit; font-size: 17px; padding: 13px 14px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--white); color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(1,198,191,.18); }
.form textarea { min-height: 160px; resize: vertical; }
.form .hp { position: absolute; left: -9999px; }
.form .btn { justify-self: start; }
.alert { padding: 14px 18px; border-radius: 8px; margin-bottom: 20px; font-size: 16px; }
.alert--error { background: #fdecec; color: #8a1c1c; }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--soft); padding: 120px 0 40px; margin-top: 0; }
.site-footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 80px; background: var(--white);
  clip-path: ellipse(70% 100% at 50% 0%);
}
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 40px; align-items: start; }
.footer-grid img { width: 190px; }
.footer-grid h4 { font-size: 16px; margin: 0 0 4px; color: var(--teal); }
.footer-grid p { margin: 0 0 16px; font-size: 16px; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { color: var(--accent); }
.social a { display: inline-flex; width: 40px; height: 40px; border-radius: 50%; background: var(--teal-900); color: #fff; align-items: center; justify-content: center; transition: background .2s; }
.social a:hover { background: var(--accent); color: #fff; }
.social svg { width: 18px; height: 18px; }
.copy { margin-top: 40px; font-size: 14px; color: var(--muted); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .services, .expertise, .values, .team { grid-template-columns: repeat(2, 1fr); }
  .hero__grid, .split, .cv-banner, .contact { grid-template-columns: 1fr; gap: 40px; }
  .split--reverse .split__media { order: 0; }
  .svc-detail .split__media { position: static; }
}
@media (max-width: 820px) {
  :root { --header-h: 76px; }
  .logo img { width: 160px; }
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; background: var(--white);
    border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(0,0,0,.06);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .nav.open { max-height: 320px; }
  .nav ul { flex-direction: column; gap: 0; padding: 10px 20px 20px; }
  .nav a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .section { padding: 70px 0; }
  .hero { min-height: 540px; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 17px; }
  .services, .expertise, .values, .team, .form { grid-template-columns: 1fr; }
  .hero__card { padding: 26px 22px; }
}

/* ---------- Chat de WhatsApp ---------- */
.wa { --wa: #25d366; --wa-dark: #128c7e; position: fixed; z-index: 90;
  right: calc(20px + env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; align-items: flex-end; gap: 12px; font-family: var(--font-body); }
.wa svg { width: 100%; height: 100%; display: block; }
.wa__btn { width: 60px; height: 60px; border-radius: 50%; border: 0; padding: 14px; cursor: pointer;
  background: var(--wa); color: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.22); transition: transform .2s, background .2s; }
.wa__btn:hover { transform: scale(1.06); background: var(--wa-dark); }
.wa__btn:focus-visible, .wa button:focus-visible, .wa input:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.wa__aviso { position: relative; background: #fff; color: var(--ink); padding: 12px 34px 12px 16px; border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,.15); font-size: 15px; font-weight: 600; cursor: pointer; animation: wa-in .3s ease; }
.wa__aviso-x { position: absolute; top: 4px; right: 6px; border: 0; background: none; font-size: 18px; line-height: 1; color: var(--muted); cursor: pointer; padding: 4px; }
.wa__panel { width: min(360px, calc(100vw - 40px)); background: #fff; border-radius: 16px; overflow: hidden;
  box-shadow: 0 16px 40px rgba(0,0,0,.22); animation: wa-in .25s ease; }
.wa__head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--teal); color: #fff; }
.wa__head strong { display: block; font-family: var(--font-head); font-size: 16px; }
.wa__head small { display: block; font-size: 13px; opacity: .85; }
.wa__head > div { flex: 1; min-width: 0; }
.wa__avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--wa); padding: 8px; flex: none; }
.wa__close { border: 0; background: none; color: #fff; font-size: 26px; line-height: 1; cursor: pointer; padding: 4px 6px; }
.wa__body { padding: 18px 16px; background: #efeae2; display: flex; flex-direction: column; gap: 12px; max-height: 50vh; overflow-y: auto; }
.wa__msg { align-self: flex-start; background: #fff; padding: 10px 14px; border-radius: 0 12px 12px 12px; font-size: 15px;
  box-shadow: 0 1px 1px rgba(0,0,0,.08); max-width: 90%; }
.wa__opts { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.wa__opt { border: 1px solid var(--wa-dark); background: #fff; color: var(--wa-dark); font: inherit; font-size: 14px; font-weight: 600;
  padding: 9px 14px; border-radius: 18px; cursor: pointer; text-align: right; transition: background .2s, color .2s; }
.wa__opt:hover { background: var(--wa-dark); color: #fff; }
.wa__form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); background: #fff; }
.wa__form input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 20px; padding: 10px 14px; font: inherit; font-size: 15px; }
.wa__form button { width: 42px; height: 42px; flex: none; border: 0; border-radius: 50%; background: var(--wa); color: #fff; padding: 10px; cursor: pointer; }
.wa__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@keyframes wa-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .wa__panel, .wa__aviso { animation: none; } }
@media print { .wa { display: none; } }
