/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --white:  #ffffff;
  --soft:   #f4f6fa;
  --ink:    #0f1d3a;   /* azul noche */
  --text:   #3b4660;
  --mute:   #6b7590;
  --line:   #e2e6ee;
  --blue:   #1f4fa3;   /* azul del logo */
  --blue-2: #173e84;
  --blue-50:#eaf0fa;
  --red:    #d7262c;   /* rojo del logo, solo como acento */

  --display: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  --sans:    "Inter", system-ui, sans-serif;

  --gutter: clamp(1rem, 4vw, 2.5rem);
  --maxw: 1200px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(15,29,58,.06), 0 2px 8px rgba(15,29,58,.05);
  --shadow: 0 2px 6px rgba(15,29,58,.05), 0 20px 44px -20px rgba(15,29,58,.22);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 100px; }
body { font-family: var(--sans); font-size: 16.5px; line-height: 1.65; color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
p { text-wrap: pretty; }
h1, h2, h3 { font-family: var(--display); color: var(--ink); font-weight: 700; line-height: 1.12; letter-spacing: -.02em; text-wrap: balance; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 3px solid rgba(31,79,163,.45); outline-offset: 2px; border-radius: 6px; }

/* =============================================================
   3. Utilities
   ============================================================= */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.skip-link { position: fixed; top: -100px; left: 1rem; z-index: 9999; padding: .6rem 1rem; background: var(--ink); color: #fff; border-radius: 8px; }
.skip-link:focus { top: 1rem; }
.text-link { color: var(--blue); font-weight: 600; border-bottom: 1px solid currentColor; }

/* =============================================================
   4. Typography
   ============================================================= */
.eyebrow { display: inline-flex; align-items: center; gap: .6rem; margin-bottom: .9rem; font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--red); }
.section-title { font-size: clamp(1.8rem, 3.6vw, 2.75rem); }
.section-title--sm { font-size: clamp(1.6rem, 3vw, 2.25rem); }
.lead { margin-top: 1rem; font-size: clamp(1.02rem, 1.25vw, 1.12rem); color: var(--text); max-width: 60ch; }
.lead + .lead { margin-top: .8rem; }

/* =============================================================
   5. Components
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .78rem 1.25rem; border-radius: 10px; font-weight: 600; font-size: .95rem; white-space: nowrap;
  transition: background .25s, color .25s, border-color .25s, box-shadow .25s, transform .25s var(--ease-out);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-lg { padding: .95rem 1.5rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 6px 16px -6px rgba(31,79,163,.55); }
.btn-primary:hover { background: var(--blue-2); transform: translateY(-1px); }
.btn-secondary { background: var(--white); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { border-color: var(--blue); color: var(--blue); }
.btn-white { background: #fff; color: var(--blue); }
.btn-white:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -10px rgba(0,0,0,.4); }
.btn-outline-white { border: 1px solid rgba(255,255,255,.5); color: #fff; }
.btn-outline-white:hover { background: rgba(255,255,255,.1); border-color: #fff; }

/* =============================================================
   6. Sections
   ============================================================= */

/* TOPBAR */
.topbar { background: var(--ink); color: #c5cde0; font-size: .84rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; height: 40px; }
.topbar span, .topbar a { display: inline-flex; align-items: center; gap: .4rem; }
.topbar svg { width: 15px; height: 15px; }
.topbar-right { gap: 1.4rem !important; }
.topbar a:hover { color: #fff; }
.topbar-inner > span:first-child { display: none; }
.topbar-right a:first-child { display: none; }

/* NAV */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
@supports (backdrop-filter: blur(10px)) { .nav { background: rgba(255,255,255,.85); backdrop-filter: blur(12px) saturate(160%); -webkit-backdrop-filter: blur(12px) saturate(160%); } }
.nav.is-scrolled { border-color: var(--line); box-shadow: 0 6px 20px -16px rgba(15,29,58,.4); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { display: flex; align-items: center; gap: .75rem; }
.logo img { width: 48px; height: 48px; }
.logo-text { display: grid; line-height: 1.15; }
.logo-text strong { font-family: var(--display); font-weight: 800; font-size: 1.15rem; color: var(--ink); letter-spacing: -.01em; }
.logo-text small { font-size: .72rem; color: var(--mute); letter-spacing: .02em; }
.nav-links {
  position: absolute; left: 0; right: 0; top: 100%; display: flex; flex-direction: column;
  padding: .6rem var(--gutter) 1.4rem; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px -24px rgba(15,29,58,.4);
  transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .3s var(--ease-out), visibility .25s;
}
.nav-links.is-open { transform: none; opacity: 1; visibility: visible; }
.nav-links a { padding: .85rem 0; font-weight: 500; color: var(--ink); border-bottom: 1px solid var(--line); }
.nav-links a[aria-current="page"]:not(.btn) { color: var(--blue); font-weight: 600; }
.nav-links .nav-cta { margin-top: 1rem; border: 0; color: #fff; }
.nav-toggle { width: 44px; height: 44px; display: grid; place-content: center; gap: 6px; border: 1px solid var(--line); border-radius: 10px; }
.nav-toggle span { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .3s var(--ease-out); }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* HERO */
.hero { position: relative; padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 6rem); background: linear-gradient(180deg, var(--soft) 0%, #fff 100%); overflow: clip; }
.hero::before { content: ""; position: absolute; right: -15%; top: -30%; width: 60vw; height: 60vw; border-radius: 50%; background: radial-gradient(circle, rgba(31,79,163,.08), transparent 65%); pointer-events: none; }
.hero-grid { position: relative; display: grid; gap: 3rem; align-items: center; }
.hero-grid > * { min-width: 0; }
.hero-title { font-size: clamp(2.2rem, 5.2vw, 3.9rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.06; }
.hero-title .accent { color: var(--blue); }
.hero-lead { margin-top: 1.3rem; font-size: clamp(1.05rem, 1.4vw, 1.2rem); max-width: 54ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; margin-top: 1.8rem; font-size: .92rem; color: var(--ink); font-weight: 500; }
.hero-trust li { display: inline-flex; align-items: center; gap: .45rem; }
.hero-trust svg { width: 18px; height: 18px; color: #fff; background: var(--blue); border-radius: 50%; padding: 3px; stroke-width: 2.4; }
.hero-media { position: relative; justify-self: center; width: min(100%, 460px); }
.hero-photo { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.hero-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.float-card { position: absolute; display: flex; align-items: center; gap: .8rem; padding: .9rem 1.1rem; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.float-card--years { left: -.6rem; bottom: 12%; }
.float-num { font-family: var(--display); font-weight: 800; font-size: 2.2rem; line-height: 1; color: var(--blue); }
.float-label { font-size: .82rem; line-height: 1.25; color: var(--text); }
.float-card--team { right: -.6rem; top: 8%; font-size: .85rem; line-height: 1.3; }
.float-card--team img { width: 40px; height: 40px; }
.float-card--team strong { color: var(--ink); }

/* CLIENTS */
.clients { border-block: 1px solid var(--line); background: #fff; }
.clients-inner { display: grid; gap: 1.2rem; padding-block: 1.8rem; text-align: center; }
.clients p { font-size: .82rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.clients ul { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1.2rem 3rem; color: #8a93a8; }
.clients li { transition: color .25s; }
.clients li:hover { color: var(--ink); }
.client-only { font-family: var(--display); font-weight: 800; font-size: 1.6rem; letter-spacing: .18em; }
.client-tous { font-family: Georgia, "Times New Roman", serif; font-size: 1.6rem; letter-spacing: .3em; }
.client-ub { font-family: Georgia, "Times New Roman", serif; font-size: 1.15rem; font-style: italic; }
.client-generic { font-family: var(--display); font-weight: 600; font-size: 1rem; }

/* SECTION */
.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section--soft { background: var(--soft); }
.section-head { margin-bottom: clamp(2.2rem, 4vw, 3.2rem); }
.section-head--split { display: grid; gap: 1rem 3rem; align-items: end; }
.section-head--split .lead { margin-top: 0; }
.section-head--center { text-align: center; max-width: 720px; margin-inline: auto; }
.section-head--center .eyebrow { justify-content: center; }

/* SERVICE CARDS */
.svc-grid { display: grid; gap: 1.4rem; }
.svc-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), border-color .3s; }
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.svc-media { aspect-ratio: 16 / 10; overflow: hidden; }
.svc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.svc-card:hover .svc-media img { transform: scale(1.05); }
.svc-body { position: relative; display: flex; flex-direction: column; gap: .5rem; padding: 2.2rem 1.6rem 1.6rem; flex: 1; }
.svc-ico { position: absolute; top: -28px; left: 1.6rem; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; background: var(--blue); color: #fff; box-shadow: 0 10px 20px -10px rgba(31,79,163,.8); }
.svc-ico svg { width: 28px; height: 28px; }
.svc-ico--lg { position: static; margin-bottom: 1.2rem; }
.svc-body h3 { font-size: 1.35rem; }
.svc-body p { font-size: .96rem; flex: 1; }
.svc-more { display: inline-flex; align-items: center; gap: .4rem; margin-top: .6rem; font-weight: 600; color: var(--blue); font-size: .92rem; }
.svc-more svg { width: 17px; height: 17px; transition: transform .3s var(--ease-out); }
.svc-card:hover .svc-more svg { transform: translateX(4px); }

/* FIGURES */
.figures { background: var(--ink); color: #c9d2e6; }
.figures-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem 1.5rem; padding-block: clamp(3rem, 6vw, 4.5rem); }
.fig { border-left: 2px solid var(--red); padding-left: 1.1rem; }
.fig-num { font-family: var(--display); font-weight: 800; font-size: clamp(2.2rem, 4.4vw, 3.2rem); line-height: 1; color: #fff; }
.fig p { margin-top: .5rem; font-size: .92rem; max-width: 26ch; }

/* ADVISOR */
.advisor { display: grid; gap: 2.5rem; align-items: center; }
.advisor > * { min-width: 0; }
.swatch-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; margin: 1.8rem 0 2rem; }
.swatch { display: flex; align-items: center; gap: .6rem; padding: .5rem .6rem; border-radius: 10px; background: #fff; border: 1px solid var(--line); text-align: left; transition: border-color .25s, box-shadow .25s; }
.swatch-chip { flex: none; width: 30px; height: 30px; border-radius: 7px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.swatch-name { font-size: .84rem; font-weight: 500; color: var(--ink); line-height: 1.2; }
.swatch:hover { border-color: #b9c4da; }
.swatch.is-active { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31,79,163,.15); }
.advisor-visual { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); background: #fff; }
.room { width: 100%; height: auto; }
.room-wall { fill: var(--wall); transition: fill .8s var(--ease-out); }
.advisor-tag { position: absolute; left: 1rem; top: 1rem; padding: .35rem .8rem; border-radius: 999px; background: rgba(255,255,255,.92); font-size: .8rem; font-weight: 600; color: var(--ink); box-shadow: var(--shadow-sm); }

/* STEPS */
.steps { display: grid; gap: 1.2rem; }
.step { position: relative; padding: 1.8rem 1.6rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.step-n { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--blue-50); color: var(--blue); font-family: var(--display); font-weight: 800; margin-bottom: 1.1rem; }
.step h3 { font-size: 1.15rem; margin-bottom: .35rem; }
.step p { font-size: .95rem; }

/* WHY */
.why { display: grid; gap: 3rem; align-items: center; }
.why > * { min-width: 0; }
.why-media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.why-media img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.why-list { display: grid; gap: 1.4rem; margin-top: 2rem; }
.why-list li { display: flex; gap: 1rem; }
.why-ico { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: #fff; color: var(--blue); box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.why-ico svg { width: 22px; height: 22px; }
.why-list h3 { font-size: 1.05rem; margin-bottom: .15rem; }
.why-list p { font-size: .95rem; }

/* CTA */
.cta-band { background: var(--blue); background-image: radial-gradient(circle at 90% 0%, rgba(255,255,255,.14), transparent 45%), linear-gradient(135deg, var(--blue) 0%, var(--blue-2) 100%); color: #dfe7f7; }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.6rem 3rem; padding-block: clamp(3rem, 6vw, 4.5rem); }
.cta-band h2 { color: #fff; font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
.cta-band p { margin-top: .5rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .8rem; }

/* PAGE HERO (subpages) */
.page-hero { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2.5rem, 5vw, 3.5rem); background: linear-gradient(180deg, var(--soft), #fff); border-bottom: 1px solid var(--line); }
.crumbs { display: flex; gap: .5rem; margin-bottom: 1.4rem; font-size: .85rem; color: var(--mute); }
.crumbs a:hover { color: var(--blue); }
.page-title { font-size: clamp(2rem, 4.8vw, 3.4rem); font-weight: 800; letter-spacing: -.03em; max-width: 22ch; }

/* ABOUT */
.about { display: grid; gap: 3rem; align-items: center; }
.about > * { min-width: 0; }
.about-media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.about-media img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.about-figs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.about-figs strong { display: block; font-family: var(--display); font-weight: 800; font-size: 1.9rem; color: var(--blue); line-height: 1; }
.about-figs span { font-size: .85rem; color: var(--mute); }
.mv-grid { display: grid; gap: 1.2rem; }
.mv { padding: 2rem 1.8rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.mv-ico { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 12px; background: var(--blue-50); color: var(--blue); margin-bottom: 1.2rem; }
.mv-ico svg { width: 24px; height: 24px; }
.mv h2 { font-size: 1.25rem; margin-bottom: .5rem; }

/* SERVICES PAGE */
.svc-tabs { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: -1.4rem; position: relative; z-index: 1; }
.svc-tabs a { display: inline-flex; align-items: center; gap: .5rem; padding: .7rem 1.1rem; border-radius: 10px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); font-weight: 600; color: var(--ink); transition: border-color .25s, color .25s; }
.svc-tabs a:hover { border-color: var(--blue); color: var(--blue); }
.svc-tabs svg { width: 20px; height: 20px; color: var(--blue); }
.svc-detail-grid { display: grid; gap: 2.5rem; align-items: center; }
.svc-detail-grid > * { min-width: 0; }
.svc-detail-media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.svc-detail-media img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; }
.check-list { display: grid; gap: .7rem; margin: 1.6rem 0 2rem; }
.check-list li { display: flex; align-items: flex-start; gap: .6rem; font-weight: 500; color: var(--ink); }
.check-list svg { flex: none; width: 22px; height: 22px; padding: 3px; margin-top: .1rem; border-radius: 50%; background: var(--blue-50); color: var(--blue); stroke-width: 2.4; }
.svc-detail .btn { white-space: normal; }

/* PROJECTS */
.proj-grid { display: grid; gap: 1.6rem; }
.proj { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .35s var(--ease-out), box-shadow .35s; }
.proj:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.proj-media { aspect-ratio: 4 / 3.6; overflow: hidden; }
.proj-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.proj:hover .proj-media img { transform: scale(1.04); }
.proj-media--brand { display: grid; place-items: center; background: linear-gradient(135deg, var(--ink), var(--blue)); }
.proj-media--brand span { font-family: Georgia, "Times New Roman", serif; font-style: italic; font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.15; text-align: center; color: #fff; }
.proj-body { padding: 1.4rem 1.5rem 1.6rem; }
.tag { display: inline-block; padding: .25rem .7rem; border-radius: 999px; background: var(--blue-50); color: var(--blue); font-size: .75rem; font-weight: 600; }
.proj h2 { font-size: 1.3rem; margin: .6rem 0 .25rem; }
.proj p { font-size: .95rem; }
.gallery { display: grid; gap: 1.2rem; }
.gallery figure { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.gallery img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.gallery figcaption { position: absolute; left: 1rem; bottom: 1rem; padding: .35rem .8rem; border-radius: 999px; background: rgba(255,255,255,.94); font-size: .82rem; font-weight: 600; color: var(--ink); }

/* CONTACT */
.contact-grid { display: grid; gap: 2.5rem; align-items: start; }
.contact-grid > * { min-width: 0; }
.contact-cards { display: grid; gap: .9rem; }
.contact-card { display: flex; gap: 1rem; align-items: flex-start; padding: 1.2rem 1.3rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.contact-ico { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--blue-50); color: var(--blue); }
.contact-ico svg { width: 22px; height: 22px; }
.contact-card h2 { font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); margin-bottom: .2rem; font-family: var(--sans); }
.contact-card a, .contact-card span { display: block; font-weight: 600; color: var(--ink); word-break: break-word; }
.contact-card a:hover { color: var(--blue); }
.form { display: grid; gap: 1rem; padding: clamp(1.4rem, 3vw, 2.2rem); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.form-title { font-size: 1.5rem; }
.form-sub { margin-top: -.6rem; color: var(--mute); font-size: .95rem; }
.form label, .form legend { display: grid; gap: .35rem; font-weight: 600; font-size: .88rem; color: var(--ink); }
.form fieldset { border: 0; }
.form input, .form textarea { font: inherit; font-weight: 400; color: var(--ink); padding: .8rem .95rem; border: 1px solid var(--line); border-radius: 10px; background: var(--soft); resize: vertical; transition: border-color .2s, box-shadow .2s, background .2s; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 3px rgba(31,79,163,.15); }
.form input.is-invalid { border-color: var(--red); }
.form-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .3rem; }
.chip-check { position: relative; }
.chip-check input { position: absolute; opacity: 0; pointer-events: none; }
.chip-check span { display: inline-block; padding: .5rem .95rem; border: 1px solid var(--line); border-radius: 999px; font-weight: 500; cursor: pointer; background: #fff; transition: all .2s; }
.chip-check input:checked + span { background: var(--blue); border-color: var(--blue); color: #fff; }
.chip-check input:focus-visible + span { box-shadow: 0 0 0 3px rgba(31,79,163,.25); }
.form-error { min-height: 1.3em; color: var(--red); font-weight: 600; font-size: .9rem; }
.form-note { font-size: .86rem; color: var(--mute); }
.form-note a { color: var(--blue); font-weight: 600; }

/* FOOTER */
.footer { background: var(--ink); color: #aab4cb; font-size: .93rem; }
.footer-grid { display: grid; gap: 2.2rem; padding-block: 3.5rem 2.5rem; }
.footer-brand { display: flex; gap: 1rem; align-items: flex-start; }
.footer-brand img { width: 72px; height: 72px; flex: none; background: #fff; border-radius: 50%; }
.footer-brand strong { color: #fff; font-family: var(--display); }
.footer-title { color: #fff; font-weight: 600; margin-bottom: .8rem; font-family: var(--display); }
.footer ul { display: grid; gap: .45rem; }
.footer a:hover { color: #fff; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; padding-block: 1.3rem; border-top: 1px solid rgba(255,255,255,.1); font-size: .82rem; color: #7f8aa5; }

.wa-float { position: fixed; right: 1rem; bottom: 1rem; z-index: 40; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 10px 24px -8px rgba(37,211,102,.6); transition: transform .3s var(--ease-out); }
.wa-float:hover { transform: scale(1.06); }

/* View transitions between pages */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; }

/* =============================================================
   7. Effects
   ============================================================= */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* =============================================================
   8. Responsive
   ============================================================= */
@media (min-width: 540px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .swatch-row { grid-template-columns: repeat(3, 1fr); }
  .contact-cards { grid-template-columns: repeat(2, 1fr); }
  .topbar-right a:first-child { display: inline-flex; }
}
@media (min-width: 720px) {
  .svc-grid { grid-template-columns: repeat(3, 1fr); }
  .figures-grid { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .mv-grid { grid-template-columns: repeat(3, 1fr); }
  .proj-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .section-head--split { grid-template-columns: 1.1fr 1fr; }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.3fr; }
  .topbar-inner > span:first-child { display: inline-flex; }
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.15fr 1fr; gap: 4rem; }
  .float-card--years { left: -1.6rem; } .float-card--team { right: -1.6rem; }
  .advisor { grid-template-columns: 1fr 1.1fr; gap: 4rem; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .why { grid-template-columns: 1fr 1.1fr; gap: 5rem; }
  .about { grid-template-columns: 1.2fr 1fr; gap: 5rem; }
  .svc-detail-grid { grid-template-columns: 1fr 1.15fr; gap: 4.5rem; }
  .svc-detail--alt .svc-detail-media { order: 2; }
  .contact-grid { grid-template-columns: 1fr 1.1fr; gap: 3.5rem; }
  .contact-cards { grid-template-columns: 1fr; }
  .nav-toggle { display: none; }
  .nav-links { position: static; flex-direction: row; align-items: center; gap: 2rem; padding: 0; background: none; border: 0; box-shadow: none; transform: none; opacity: 1; visibility: visible; }
  .nav-links a { padding: .3rem 0; border: 0; font-size: .95rem; position: relative; }
  .nav-links a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--blue); transform: scaleX(0); transition: transform .3s var(--ease-out); }
  .nav-links a:not(.btn):hover::after, .nav-links a[aria-current="page"]:not(.btn)::after { transform: scaleX(1); }
  .nav-links .nav-cta { margin: 0 0 0 .5rem; padding: .7rem 1.15rem; }
}
@media (min-width: 1280px) {
  .wa-float { right: 1.6rem; bottom: 1.6rem; }
}

/* =============================================================
   9. Reduced motion — only intrusive effects
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* =============================================================
   10. Color layer — brand blue/red + paint palette accents
   ============================================================= */
:root {
  --sun:  #f4b63f;   /* amarillo ocre */
  --teal: #1f9a8a;   /* verde azulado */
  --stripe: linear-gradient(90deg, #6fa3ff 0 25%, var(--red) 25% 50%, var(--sun) 50% 75%, var(--teal) 75% 100%);
}

/* Hero in brand blue */
.hero { background: linear-gradient(135deg, #2458b3 0%, var(--blue) 45%, var(--blue-2) 100%); color: #dbe5f7; }
.hero::before { background: radial-gradient(circle, rgba(255,255,255,.14), transparent 65%); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: var(--stripe); }
.hero .eyebrow { color: #fff; }
.hero .eyebrow::before { background: var(--sun); }
.hero-title { color: #fff; }
.hero-title .accent { color: var(--sun); }
.hero-lead { color: #dbe5f7; }
.hero .btn-primary { background: var(--red); box-shadow: 0 8px 20px -8px rgba(0,0,0,.45); }
.hero .btn-primary:hover { background: #b91f25; }
.hero .btn-secondary { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.45); box-shadow: none; }
.hero .btn-secondary:hover { background: #fff; color: var(--blue); border-color: #fff; }
.hero-trust { color: #fff; }
.hero-trust svg { background: var(--sun); color: var(--ink); }
.hero-photo { box-shadow: 0 30px 60px -25px rgba(0,0,0,.55); outline: 6px solid rgba(255,255,255,.12); outline-offset: 0; }
.float-card--years .float-num { color: var(--red); }

/* Page headers in blue */
.page-hero { position: relative; background: linear-gradient(135deg, #2458b3 0%, var(--blue) 50%, var(--blue-2) 100%); border-bottom: 0; color: #dbe5f7; }
.page-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--stripe); }
.page-hero .page-title { color: #fff; }
.page-hero .eyebrow { color: #fff; }
.page-hero .eyebrow::before { background: var(--sun); }
.page-hero .lead { color: #dbe5f7; }
.crumbs { color: #b9c8e6; }
.crumbs a:hover { color: #fff; }
.svc-tabs { margin-top: 1.6rem; }

/* Colourful icons per item */
.svc-card:nth-child(2) .svc-ico { background: var(--red); box-shadow: 0 10px 20px -10px rgba(215,38,44,.8); }
.svc-card:nth-child(3) .svc-ico { background: var(--teal); box-shadow: 0 10px 20px -10px rgba(31,154,138,.8); }
.svc-card { border-top: 4px solid var(--blue); }
.svc-card:nth-child(2) { border-top-color: var(--red); }
.svc-card:nth-child(3) { border-top-color: var(--teal); }
.svc-card:nth-child(2) .svc-more { color: var(--red); }
.svc-card:nth-child(3) .svc-more { color: var(--teal); }
#reformas .svc-ico--lg { background: var(--red); }
#mantenimiento .svc-ico--lg { background: var(--teal); }
.svc-tabs a:nth-child(2) svg { color: var(--red); }
.svc-tabs a:nth-child(3) svg { color: var(--teal); }

/* Services section tinted */
.page-home .section:has(.svc-grid) { background: linear-gradient(180deg, var(--blue-50), #fff 70%); }

/* Figures: coloured rules */
.fig:nth-child(2) { border-left-color: var(--sun); }
.fig:nth-child(3) { border-left-color: var(--teal); }
.fig:nth-child(4) { border-left-color: #6fa3ff; }
.figures { background: linear-gradient(135deg, var(--ink) 0%, #152a55 100%); }

/* Advisor section warm tint */
.page-home .section:has(.advisor) { background: linear-gradient(135deg, #fff7e8 0%, #fdf1ec 50%, #eef4ff 100%); }

/* Steps: numbered in paint colours */
.step { border-top: 4px solid var(--blue); }
.step:nth-child(2) { border-top-color: var(--red); }
.step:nth-child(3) { border-top-color: var(--sun); }
.step:nth-child(4) { border-top-color: var(--teal); }
.step:nth-child(1) .step-n { background: var(--blue); color: #fff; }
.step:nth-child(2) .step-n { background: var(--red); color: #fff; }
.step:nth-child(3) .step-n { background: var(--sun); color: var(--ink); }
.step:nth-child(4) .step-n { background: var(--teal); color: #fff; }

/* Why: coloured icon tiles */
.why-list li:nth-child(1) .why-ico { background: var(--blue); color: #fff; border-color: var(--blue); }
.why-list li:nth-child(2) .why-ico { background: var(--red); color: #fff; border-color: var(--red); }
.why-list li:nth-child(3) .why-ico { background: var(--sun); color: var(--ink); border-color: var(--sun); }
.why-list li:nth-child(4) .why-ico { background: var(--teal); color: #fff; border-color: var(--teal); }

/* Mission / vision / team as colour cards */
.mv:nth-child(1) { background: var(--blue); border-color: var(--blue); color: #dbe5f7; }
.mv:nth-child(2) { background: var(--red); border-color: var(--red); color: #fde3e4; }
.mv:nth-child(1) h2, .mv:nth-child(2) h2 { color: #fff; }
.mv:nth-child(1) .mv-ico, .mv:nth-child(2) .mv-ico { background: rgba(255,255,255,.16); color: #fff; }
.mv:nth-child(3) { border-top: 4px solid var(--sun); }
.mv:nth-child(3) .mv-ico { background: var(--sun); color: var(--ink); }
.about-figs div:nth-child(2) strong { color: var(--red); }
.about-figs div:nth-child(3) strong { color: var(--teal); }

/* Contact: coloured icon tiles */
.contact-card:nth-child(1) .contact-ico { background: var(--blue); color: #fff; }
.contact-card:nth-child(2) .contact-ico { background: #25d366; color: #fff; }
.contact-card:nth-child(3) .contact-ico { background: var(--red); color: #fff; }
.contact-card:nth-child(4) .contact-ico { background: linear-gradient(135deg, #f58529, #dd2a7b 50%, #8134af); color: #fff; }
.contact-card:nth-child(5) .contact-ico { background: var(--teal); color: #fff; }
.form { border-top: 5px solid var(--blue); }

/* Projects tags */
.proj:nth-child(2) .tag { background: #fde8e9; color: var(--red); }
.proj:nth-child(3) .tag { background: #e3f4f1; color: var(--teal); }

/* CTA in brand red */
.cta-band { background: linear-gradient(135deg, #e0333a 0%, var(--red) 45%, #a8181e 100%); color: #fde3e4; }
.cta-band .btn-white { color: var(--red); }

/* Footer: paint stripe on top */
.footer { border-top: 6px solid transparent; border-image: var(--stripe) 1; }
.hero .float-card { color: var(--text); }

/* Extra client wordmarks */
.client-swarovski { font-family: var(--display); font-weight: 600; font-size: 1.25rem; letter-spacing: .28em; }
.client-bbraun { font-family: var(--display); font-weight: 800; font-size: 1.45rem; letter-spacing: -.01em; }
.client-mano { font-family: Georgia, "Times New Roman", serif; font-size: 1.3rem; font-weight: 700; }
.clients ul { gap: 1.2rem 2.6rem; }
.contact-card--li .contact-ico { background: #0a66c2 !important; color: #fff !important; }
