/*
Theme Name: URIARTE Corporate v1.7.2 Final Candidate
Theme URI: https://uriartehn.com/
Author: Lux City Partners
Description: Consolidated v1.7.2 final-candidate patch: Premium web logo fallback, fully stable desktop nav rail, refined logo transition, and optically balanced mobile overview.
Version: 1.7.2-final-candidate
Requires at least: 7.0
Requires PHP: 8.3
Text Domain: uriarte-corporate-v1
*/

:root {
  --ua-navy: #0A192F;
  --ua-navy-deep: #061225;
  --ua-navy-soft: #142844;
  --ua-navy-card: #182c48;
  --ua-gold: #C5A059;
  --ua-gold-light: #e4c982;
  --ua-white: #fff;
  --ua-ivory: #f7f5ef;
  --ua-paper: #fbfaf7;
  --ua-text: #333;
  --ua-muted: #66717f;
  --ua-line: rgba(197,160,89,.28);
  --ua-shadow: 0 28px 80px rgba(5,16,33,.18);
  --ua-shadow-dark: 0 32px 90px rgba(0,0,0,.32);
  --ua-radius: 24px;
  --ua-container: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 0; }
body {
  margin: 0;
  color: var(--ua-text);
  background: var(--ua-white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.nav-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }

.ua-container { width: min(calc(100% - 42px), var(--ua-container)); margin-inline: auto; }
.ua-section { position: relative; padding: 104px 0; }
.ua-section--compact { padding: 72px 0; }
.ua-section--navy { color: var(--ua-white); background: var(--ua-navy); }
.ua-section--dark { color: var(--ua-white); background: var(--ua-navy-deep); }
.ua-section--soft { background: var(--ua-ivory); }
.ua-eyebrow,
.ua-mini-label,
.ua-form-kicker {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 17px;
  color: var(--ua-gold);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.ua-eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; }
.ua-title {
  margin: 0;
  color: var(--ua-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 4.25vw, 4.55rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -.035em;
}
.ua-section--navy .ua-title,
.ua-section--dark .ua-title { color: var(--ua-white); }
.ua-lead { max-width: 720px; margin: 22px 0 0; color: var(--ua-muted); font-size: 1.08rem; }
.ua-section--navy .ua-lead,
.ua-section--dark .ua-lead { color: #cdd6e1; }
.ua-section-head { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 48px; }
.ua-section-head > div { max-width: 820px; }

.ua-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 13px 23px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 850;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.ua-button:hover { transform: translateY(-2px); }
.ua-button:focus-visible { outline: 3px solid rgba(228,201,130,.65); outline-offset: 3px; }
.ua-button--gold { color: var(--ua-navy); background: var(--ua-gold); box-shadow: 0 14px 34px rgba(197,160,89,.22); }
.ua-button--gold:hover { background: var(--ua-gold-light); }
.ua-button--outline { color: var(--ua-white); border-color: rgba(255,255,255,.42); background: rgba(255,255,255,.025); }
.ua-button--outline:hover { color: var(--ua-gold-light); border-color: var(--ua-gold); }
.ua-button--navy { color: var(--ua-white); background: var(--ua-navy); }
.ua-button--navy:hover { background: var(--ua-navy-soft); }

/* Header */
.ua-site-header {
  --ua-header-height: 88px;
  position: sticky;
  top: 0;
  z-index: 1000;
  color: var(--ua-white);
  background: var(--ua-navy);
  border-bottom: 1px solid var(--ua-line);
  box-shadow: 0 0 0 rgba(0,0,0,0);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: background-color .24s ease, border-color .24s ease, box-shadow .24s ease;
  will-change: background-color, box-shadow;
  transform: translateZ(0);
  backface-visibility: hidden;
}
.ua-header-inner { min-height: var(--ua-header-height); display: flex; align-items: center; justify-content: space-between; gap: 30px; transition: min-height .24s cubic-bezier(.22,.61,.36,1), gap .24s ease; }
.ua-brand,
.ua-brand .custom-logo-link { display: flex; align-items: center; flex: 0 0 auto; }
.ua-brand img,
.ua-brand .custom-logo { width: 235px; max-height: 64px; object-fit: contain; object-position: left center; transition: width .24s cubic-bezier(.22,.61,.36,1), max-height .24s cubic-bezier(.22,.61,.36,1), opacity .2s ease; }
body.ua-compact-header-enabled .ua-site-header.is-scrolled {
  --ua-header-height: 70px;
  background: rgba(6,18,37,.92);
  border-bottom-color: rgba(197,160,89,.22);
  box-shadow: 0 14px 40px rgba(0,0,0,.18);
  backdrop-filter: blur(12px) saturate(112%);
  -webkit-backdrop-filter: blur(12px) saturate(112%);
}
body.ua-compact-header-enabled .ua-site-header.is-scrolled .ua-header-inner { gap: 24px; }
body.ua-compact-header-enabled .ua-site-header.is-scrolled .ua-brand img,
body.ua-compact-header-enabled .ua-site-header.is-scrolled .ua-brand .custom-logo { width: 195px; max-height: 52px; }
body.ua-compact-header-enabled .ua-site-header.is-scrolled .ua-nav { gap: 20px; }
body.ua-compact-header-enabled .ua-site-header.is-scrolled .ua-header-cta { min-height: 44px; padding: 10px 19px; font-size: .88rem; }
.ua-nav { display: flex; align-items: center; gap: 24px; }
.ua-nav > a:not(.ua-button) { color: #f0f3f7; font-size: .9rem; font-weight: 720; }
.ua-nav > a:not(.ua-button):hover { color: var(--ua-gold-light); }
.ua-header-cta { margin-left: 4px; }
.ua-nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255,255,255,.23);
  border-radius: 50%;
  color: white;
  background: transparent;
}
.ua-nav-toggle span { display: block; width: 21px; height: 2px; margin: 4px auto; background: currentColor; transition: transform .2s, opacity .2s; }

/* Navegación precisa bajo el encabezado dinámico. */
.ua-section[id],
.ua-hero[id] { scroll-margin-top: 0; }
body.admin-bar .ua-site-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .ua-site-header { top: 46px; } }

/* Hero */
.ua-hero {
  position: relative;
  min-height: calc(100svh - 88px);
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--ua-white);
  background:
    radial-gradient(circle at 84% 20%, rgba(197,160,89,.13), transparent 28%),
    radial-gradient(circle at 68% 78%, rgba(56,94,143,.22), transparent 34%),
    linear-gradient(135deg, var(--ua-navy-deep) 0%, var(--ua-navy) 56%, #10294c 100%);
}
.ua-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .22;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(to right, transparent 2%, black 50%, black 100%);
}
.ua-gold-veil {
  --ua-parallax-y: 0px;
  --ua-parallax-x: 0px;
  position: absolute;
  inset: -12% -8%;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
  transform: translate3d(var(--ua-parallax-x), var(--ua-parallax-y), 0);
  will-change: transform;
}
.ua-gold-veil span {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(34px);
  opacity: .62;
  mix-blend-mode: screen;
  background: radial-gradient(ellipse at center, rgba(228,201,130,.19) 0%, rgba(197,160,89,.09) 36%, rgba(197,160,89,0) 73%);
  will-change: transform, opacity;
}
.ua-gold-veil span:first-child {
  width: min(48vw, 720px);
  height: min(15vw, 210px);
  top: 13%;
  right: 0;
  transform: rotate(-17deg);
}
body.ua-parallax-enabled .ua-gold-veil span:first-child {
  animation: ua-gold-drift-a 15s ease-in-out infinite alternate;
}
.ua-gold-veil span:last-child {
  width: min(38vw, 560px);
  height: min(12vw, 170px);
  right: 18%;
  bottom: 8%;
  opacity: .38;
  transform: rotate(12deg);
}
body.ua-parallax-enabled .ua-gold-veil span:last-child {
  animation: ua-gold-drift-b 18s ease-in-out infinite alternate;
}
@keyframes ua-gold-drift-a {
  from { transform: translate3d(-12px, 5px, 0) rotate(-17deg) scale(.98); opacity: .48; }
  to { transform: translate3d(18px, -8px, 0) rotate(-13deg) scale(1.04); opacity: .66; }
}
@keyframes ua-gold-drift-b {
  from { transform: translate3d(10px, 0, 0) rotate(12deg) scale(1); opacity: .28; }
  to { transform: translate3d(-14px, -12px, 0) rotate(8deg) scale(1.06); opacity: .44; }
}
.ua-hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 76px; padding: 76px 0 88px; }
.ua-hero-copy { max-width: 700px; }
.ua-hero-kicker { display: inline-flex; align-items: center; gap: 13px; color: var(--ua-gold-light); font-size: .79rem; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.ua-hero-kicker::before { content: ""; width: 42px; height: 1px; background: currentColor; }
.ua-hero h1 {
  max-width: 760px;
  margin: 24px 0 24px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.35rem, 5.55vw, 5.95rem);
  font-weight: 500;
  line-height: .97;
  letter-spacing: -.052em;
}
.ua-hero h1 span { color: var(--ua-gold-light); }
.ua-hero-copy > p { max-width: 670px; margin: 0; color: #e3e8ef; font-size: 1.1rem; }
.ua-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.ua-hero-trust { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 30px; color: #c5cfdb; font-size: .82rem; }
.ua-hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.ua-hero-trust i { width: 7px; height: 7px; border-radius: 50%; background: var(--ua-gold); box-shadow: 0 0 0 5px rgba(197,160,89,.11); }
.ua-hero-visual { display: grid; place-items: center; min-width: 0; }
.ua-dashboard {
  width: min(100%, 520px);
  padding: 27px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(255,255,255,.13), rgba(255,255,255,.065));
  box-shadow: var(--ua-shadow-dark);
  backdrop-filter: blur(16px);
  transform: none;
}
.ua-dashboard-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,.14); }
.ua-dashboard-brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.ua-dashboard-brand img { width: 62px; height: 62px; flex: 0 0 auto; border-radius: 17px; object-fit: cover; }
.ua-dashboard-brand strong { display: block; font-family: Georgia, serif; font-size: 1.24rem; font-weight: 500; }
.ua-dashboard-brand small { display: block; margin-top: 3px; color: #b7c1cf; font-size: .8rem; }
.ua-status { flex: 0 0 auto; padding: 8px 12px; border: 1px solid rgba(197,160,89,.38); border-radius: 999px; color: var(--ua-gold-light); font-size: .72rem; font-weight: 850; }
.ua-dashboard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.ua-metric { min-height: 164px; display: flex; flex-direction: column; padding: 18px; border: 1px solid rgba(255,255,255,.055); border-radius: 18px; background: rgba(4,17,35,.58); }
.ua-metric small { color: #aab6c5; font-size: .73rem; }
.ua-metric strong { display: block; max-width: 170px; margin: 8px 0 auto; font-family: Georgia, serif; font-size: 1.5rem; font-weight: 500; line-height: 1.25; }
.ua-metric p { margin: 10px 0 0; color: #c4ccd7; font-size: .75rem; line-height: 1.55; }
.ua-bars { height: 46px; display: flex; align-items: end; gap: 6px; margin-top: 12px; }
.ua-bars i { flex: 1; min-width: 8px; border-radius: 4px 4px 1px 1px; background: linear-gradient(to top, var(--ua-gold), var(--ua-gold-light)); }
.ua-bars i:nth-child(1) { height: 26%; }.ua-bars i:nth-child(2) { height: 42%; }.ua-bars i:nth-child(3) { height: 38%; }.ua-bars i:nth-child(4) { height: 62%; }.ua-bars i:nth-child(5) { height: 55%; }.ua-bars i:nth-child(6) { height: 78%; }
.ua-progress { height: 7px; margin-top: 14px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.13); }
.ua-progress span { display: block; width: 72%; height: 100%; border-radius: inherit; background: var(--ua-gold); }

/* Value summary */
.ua-overview { position: relative; z-index: 5; margin-top: -36px; }
.ua-overview-grid { display: grid; grid-template-columns: repeat(3, 1fr); overflow: hidden; border: 1px solid rgba(10,25,47,.08); border-radius: 22px; background: var(--ua-white); box-shadow: var(--ua-shadow); }
.ua-overview-item { min-height: 122px; display: flex; align-items: center; gap: 17px; padding: 24px 28px; border-right: 1px solid rgba(10,25,47,.09); }
.ua-overview-item:last-child { border-right: 0; }
.ua-overview-icon { width: 48px; height: 48px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 14px; color: var(--ua-gold); background: rgba(197,160,89,.1); }
.ua-overview-icon svg { width: 25px; height: 25px; }
.ua-overview-item strong { display: block; color: var(--ua-navy); font-size: .98rem; }
.ua-overview-item span { display: block; margin-top: 3px; color: var(--ua-muted); font-size: .83rem; }

/* About */
.ua-about { padding-top: 128px; }
.ua-about-grid { display: grid; grid-template-columns: .94fr 1.06fr; align-items: center; gap: 74px; }
.ua-about-media { position: relative; margin: 0; overflow: hidden; border-radius: 30px; box-shadow: var(--ua-shadow); background: var(--ua-navy); }
.ua-about-media::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to top, rgba(4,14,29,.82), transparent 52%); }
.ua-about-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.ua-about-media figcaption { position: absolute; left: 25px; right: 25px; bottom: 23px; z-index: 2; color: white; }
.ua-about-media figcaption strong { display: block; font-family: Georgia, serif; font-size: 1.45rem; font-weight: 500; }
.ua-about-media figcaption span { display: block; max-width: 430px; margin-top: 5px; color: #d9e0e8; font-size: .85rem; }
.ua-about-history { margin: 25px 0 0; color: #566271; font-size: 1.05rem; }
.ua-about-points { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 30px; }
.ua-about-points > div { position: relative; padding: 21px 20px; border: 1px solid rgba(10,25,47,.09); border-radius: 18px; background: var(--ua-paper); }
.ua-about-points span { color: var(--ua-gold); font-size: .75rem; font-weight: 900; letter-spacing: .12em; }
.ua-about-points strong { display: block; margin-top: 8px; color: var(--ua-navy); }
.ua-about-points p { margin: 8px 0 0; color: #68727d; font-size: .86rem; }
.ua-institution-grid { display: grid; grid-template-columns: 1fr 1fr 1.08fr; gap: 18px; margin-top: 56px; }
.ua-institution-grid article { padding: 27px; border: 1px solid rgba(10,25,47,.08); border-radius: 21px; background: var(--ua-paper); }
.ua-institution-grid h3 { margin: 0; color: var(--ua-navy); font-family: Georgia, serif; font-size: 1.45rem; font-weight: 500; line-height: 1.2; }
.ua-institution-grid article > p:last-child { margin: 13px 0 0; color: #69737e; font-size: .88rem; }
.ua-value-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 17px; }
.ua-value-tags span { padding: 7px 10px; border: 1px solid rgba(197,160,89,.32); border-radius: 999px; color: #6e5528; background: rgba(197,160,89,.08); font-size: .77rem; font-weight: 750; }

/* Services */
.ua-services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.ua-service-card { position: relative; min-height: 365px; display: flex; flex-direction: column; padding: 29px 27px; overflow: hidden; border: 1px solid rgba(255,255,255,.11); border-radius: 22px; background: linear-gradient(150deg, rgba(255,255,255,.075), rgba(255,255,255,.035)); transition: transform .24s ease, border-color .24s ease, background .24s ease; }
.ua-service-card:hover { transform: translateY(-6px); border-color: rgba(197,160,89,.52); background: linear-gradient(150deg, rgba(255,255,255,.105), rgba(255,255,255,.05)); }
.ua-service-number { position: absolute; right: 20px; top: 18px; color: rgba(255,255,255,.045); font-family: Georgia, serif; font-size: 4.2rem; line-height: 1; }
.ua-service-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 15px; color: var(--ua-gold-light); background: rgba(197,160,89,.12); }
.ua-service-icon svg { width: 27px; height: 27px; }
.ua-service-card h3 { position: relative; margin: 33px 0 15px; color: white; font-family: Georgia, serif; font-size: 1.55rem; font-weight: 500; line-height: 1.16; }
.ua-service-card p { position: relative; margin: 0 0 26px; color: #cbd4df; font-size: .92rem; }
.ua-service-link { position: relative; margin-top: auto; color: var(--ua-gold-light); font-size: .84rem; font-weight: 850; }
.ua-service-link span { display: inline-block; margin-left: 7px; transition: transform .2s; }
.ua-service-link:hover span { transform: translateX(4px); }

/* Benefits */
.ua-benefits-grid { display: grid; grid-template-columns: 1fr .92fr; align-items: center; gap: 72px; }
.ua-benefits-list { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; margin-top: 35px; }
.ua-benefit { display: flex; align-items: flex-start; gap: 14px; padding: 19px; border: 1px solid rgba(10,25,47,.08); border-radius: 17px; background: white; }
.ua-benefit > span { width: 33px; height: 33px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; color: var(--ua-navy); background: var(--ua-gold-light); font-size: .7rem; font-weight: 900; }
.ua-benefit strong { color: var(--ua-navy); }
.ua-benefit p { margin: 5px 0 0; color: #6b7580; font-size: .83rem; }
.ua-advisory-media { position: relative; margin: 0; overflow: hidden; border-radius: 30px; box-shadow: var(--ua-shadow); }
.ua-advisory-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(5,16,33,.85), transparent 55%); }
.ua-advisory-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.ua-advisory-media figcaption { position: absolute; left: 25px; bottom: 24px; z-index: 2; color: white; }
.ua-advisory-media figcaption span { display: block; color: var(--ua-gold-light); font-size: .76rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.ua-advisory-media figcaption strong { display: block; max-width: 390px; margin-top: 7px; font-family: Georgia, serif; font-size: 1.65rem; font-weight: 500; line-height: 1.15; }

/* Process */
.ua-process-heading { display: grid; grid-template-columns: 1.12fr .88fr; align-items: end; gap: 50px; }
.ua-process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 17px; margin-top: 50px; counter-reset: ua-step; }
.ua-step { position: relative; min-height: 240px; padding: 28px 24px; border: 1px solid rgba(255,255,255,.1); border-radius: 20px; background: rgba(255,255,255,.047); }
.ua-step::before { counter-increment: ua-step; content: "0" counter(ua-step); width: 47px; height: 47px; display: grid; place-items: center; border-radius: 50%; color: var(--ua-navy); background: var(--ua-gold); font-size: .75rem; font-weight: 900; }
.ua-step h3 { margin: 34px 0 12px; font-family: Georgia, serif; font-size: 1.35rem; font-weight: 500; line-height: 1.2; }
.ua-step p { margin: 0; color: #c7d0dc; font-size: .88rem; }

/* Brands */
.ua-brands { text-align: center; }
.ua-brands .ua-lead { margin-inline: auto; }
.ua-brands-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-top: 40px; }
.ua-brand-slot { min-height: 112px; display: grid; place-items: center; padding: 18px; border: 1px solid rgba(10,25,47,.08); border-radius: 17px; background: white; }
.ua-brand-slot img { max-width: 150px; max-height: 62px; object-fit: contain; filter: grayscale(1); opacity: .74; transition: filter .2s, opacity .2s, transform .2s; }
.ua-brand-slot:hover img { filter: none; opacity: 1; transform: scale(1.03); }

/* CTA */
.ua-cta-card { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 40px; padding: 49px; border-radius: 29px; color: var(--ua-navy); background: linear-gradient(115deg, var(--ua-gold), #e2c77f); box-shadow: var(--ua-shadow); }
.ua-cta-card h2 { margin: 0; font-family: Georgia, serif; font-size: clamp(2.15rem, 4vw, 3.8rem); font-weight: 500; line-height: 1.03; }
.ua-cta-card p:not(.ua-mini-label) { max-width: 740px; margin: 14px 0 0; color: rgba(10,25,47,.76); }
.ua-cta-card .ua-mini-label { color: rgba(10,25,47,.66); }

/* Contact */
.ua-contact-grid { display: grid; grid-template-columns: .88fr 1.12fr; gap: 65px; align-items: start; }
.ua-contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; margin-top: 33px; }
.ua-contact-card { display: flex; align-items: flex-start; gap: 14px; min-height: 104px; padding: 18px 19px; border: 1px solid rgba(255,255,255,.11); border-radius: 17px; background: rgba(255,255,255,.04); }
.ua-contact-card--wide { grid-column: 1 / -1; min-height: auto; }
.ua-contact-icon { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 13px; color: var(--ua-gold-light); background: rgba(197,160,89,.09); border: 1px solid rgba(197,160,89,.17); }
.ua-contact-icon svg { width: 22px; height: 22px; display: block; }
.ua-contact-icon svg[fill="none"] { stroke-linecap: round; stroke-linejoin: round; }
.ua-contact-card strong { display: block; color: white; }
.ua-contact-card span,
.ua-contact-card a { display: block; color: #cbd4df; font-size: .88rem; }
.ua-contact-card a:hover { color: var(--ua-gold-light); }
.ua-map-link { margin-top: 8px; color: var(--ua-gold-light) !important; font-weight: 800; }
.ua-map-link span { display: inline !important; }
.ua-form { padding: 35px; border-radius: 25px; color: var(--ua-text); background: white; box-shadow: var(--ua-shadow-dark); }
.ua-form-kicker { margin-bottom: 9px; }
.ua-form h3 { margin: 0 0 8px; color: var(--ua-navy); font-family: Georgia, serif; font-size: 2rem; font-weight: 500; }
.ua-form > p:not(.ua-form-kicker) { margin: 0 0 24px; color: #6a7480; font-size: .92rem; }
.ua-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ua-field { display: grid; gap: 7px; }
.ua-field--full { grid-column: 1 / -1; }
.ua-field label { color: var(--ua-navy); font-size: .82rem; font-weight: 850; }
.ua-field input,
.ua-field select,
.ua-field textarea { width: 100%; padding: 13px 14px; border: 1px solid #d9dde3; border-radius: 12px; color: #252b33; background: #fafafa; outline: none; transition: border-color .2s, box-shadow .2s; }
.ua-field textarea { min-height: 132px; resize: vertical; }
.ua-field input:focus,
.ua-field select:focus,
.ua-field textarea:focus { border-color: var(--ua-gold); box-shadow: 0 0 0 4px rgba(197,160,89,.14); }
.ua-honeypot { position: absolute !important; left: -9999px !important; }
.ua-alert { margin-bottom: 18px; padding: 12px 15px; border-radius: 12px; font-size: .88rem; }
.ua-alert--success { color: #19653b; background: #eaf7ef; }
.ua-alert--error { color: #9b2e2e; background: #fff0f0; }
.ua-form .ua-button { width: 100%; margin-top: 17px; }
.ua-form-note { display: block; margin-top: 12px; color: #7a838d; text-align: center; }

/* Refinamientos premium */
.ua-contact-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 0;
  overflow: hidden;
}
.ua-contact-icon svg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 21px;
  height: 21px;
  margin: 0;
  flex: 0 0 auto;
  transform: translate(-50%, -50%);
  transform-origin: center;
  overflow: visible;
}
.ua-contact-icon--whatsapp svg { width: 22px; height: 22px; transform: translate(-50%, -49%); }
.ua-contact-icon--phone svg { width: 20px; height: 20px; transform: translate(-49%, -51%); }
.ua-contact-icon--mail svg { transform: translate(-50%, -50%); }
.ua-contact-icon--location svg { width: 20px; height: 20px; transform: translate(-50%, -51%); }
.ua-contact-icon--clock svg { width: 20px; height: 20px; transform: translate(-50%, -50%); }
@media (hover: hover) {
  .ua-service-card,
  .ua-benefit,
  .ua-step,
  .ua-contact-card { transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease, background .28s ease; }
  .ua-service-card:hover,
  .ua-step:hover,
  .ua-contact-card:hover { transform: translateY(-4px); border-color: rgba(197,160,89,.34); box-shadow: 0 18px 42px rgba(3,13,28,.14); }
  .ua-benefit:hover { transform: translateX(4px); }
}
html.js body.ua-motion-enabled .ua-reveal {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition: opacity .68s ease, transform .68s cubic-bezier(.22,.61,.36,1);
}
html.js body.ua-motion-enabled .ua-reveal.is-visible { opacity: 1; transform: translate3d(0,0,0); }

/* Footer */
.ua-site-footer { padding: 62px 0 25px; color: #b1bbc8; background: #040d1a; }
.ua-footer-grid { display: grid; grid-template-columns: 1.25fr .7fr .9fr; gap: 55px; padding-bottom: 40px; }
.ua-footer-brand img { width: 285px; }
.ua-footer-brand p { max-width: 510px; margin: 19px 0 0; font-size: .9rem; }
.ua-socials { display: flex; gap: 9px; margin-top: 20px; }
.ua-socials a { width: 39px; height: 39px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; color: var(--ua-gold-light); font-weight: 850; }
.ua-socials a:hover { color: var(--ua-navy); background: var(--ua-gold); }
.ua-footer-col h3 { margin: 0 0 16px; color: white; font-size: .89rem; letter-spacing: .11em; text-transform: uppercase; }
.ua-footer-col a,
.ua-footer-col span { display: block; margin: 8px 0; font-size: .88rem; }
.ua-footer-col a:hover { color: var(--ua-gold-light); }
.ua-footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08); font-size: .8rem; }
.ua-whatsapp-float { position: fixed; right: 20px; bottom: 20px; z-index: 999; width: 54px; height: 54px; display: inline-grid; place-items: center; padding: 0; border: 1px solid rgba(255,255,255,.52); border-radius: 50%; color: #063017; background: #25d366; box-shadow: 0 14px 35px rgba(0,0,0,.24); transition: transform .2s, box-shadow .2s; }
.ua-whatsapp-float:hover { transform: translateY(-3px); box-shadow: 0 18px 42px rgba(0,0,0,.28); }
.ua-whatsapp-float svg { width: 25px; height: 25px; display: block; }
.ua-whatsapp-float span { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.ua-page-wrap { min-height: 65vh; padding: 92px 0; }
.ua-page-wrap h1 { color: var(--ua-navy); font-family: Georgia, serif; font-size: clamp(2.5rem,5vw,4.5rem); font-weight: 500; }
.ua-page-content { max-width: 850px; }
.ua-page-content a { color: #876726; text-decoration: underline; }

/* Contenido visible por defecto; transiciones reservadas para interacción. */
.ua-reveal { opacity: 1; transform: none; }

@media (max-width: 1120px) {
  .ua-site-header { --ua-header-height: 78px; }
  body.ua-compact-header-enabled .ua-site-header.is-scrolled { --ua-header-height: 66px; }
  .ua-brand img, .ua-brand .custom-logo { width: 215px; }
  body.ua-compact-header-enabled .ua-site-header.is-scrolled .ua-brand img,
  body.ua-compact-header-enabled .ua-site-header.is-scrolled .ua-brand .custom-logo { width: 180px; max-height: 48px; }
  .ua-nav-toggle { display: block; }
  .ua-nav {
    position: fixed;
    inset: var(--ua-header-height) 0 auto 0;
    display: grid;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    background: var(--ua-navy-deep);
    border-bottom: 1px solid var(--ua-line);
    transition: max-height .3s ease, padding .3s ease;
  }
  body.ua-compact-header-enabled .ua-site-header.is-scrolled .ua-nav { gap: 0; }
  body.nav-open .ua-nav { max-height: calc(100vh - var(--ua-header-height)); padding: 16px 20px 26px; }
  .ua-nav > a:not(.ua-button) { padding: 13px 4px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .ua-nav .ua-button { margin-top: 14px; }
  body.nav-open .ua-nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  body.nav-open .ua-nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .ua-nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .ua-hero { min-height: auto; }
  .ua-hero-inner { grid-template-columns: 1fr; gap: 48px; padding-top: 72px; }
  .ua-hero-copy { max-width: 850px; }
  .ua-hero h1 { max-width: 900px; font-size: clamp(3.4rem, 8vw, 6rem); }
  .ua-dashboard { width: min(100%, 680px); }
  .ua-about-grid, .ua-benefits-grid, .ua-contact-grid { grid-template-columns: 1fr; }
  .ua-about-media, .ua-advisory-media { max-width: 760px; }
  .ua-institution-grid { grid-template-columns: 1fr 1fr; }
  .ua-values-card { grid-column: 1 / -1; }
  .ua-services-grid { grid-template-columns: 1fr 1fr; }
  .ua-process-heading { grid-template-columns: 1fr; gap: 15px; }
  .ua-process-grid { grid-template-columns: 1fr 1fr; }
  .ua-brands-grid { grid-template-columns: repeat(3, 1fr); }
  .ua-footer-grid { grid-template-columns: 1fr 1fr; }
  .ua-footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 0; }
  .ua-site-header { backdrop-filter: none; -webkit-backdrop-filter: none; }
  body.ua-compact-header-enabled .ua-site-header.is-scrolled { backdrop-filter: blur(8px) saturate(106%); -webkit-backdrop-filter: blur(8px) saturate(106%); }
  .ua-container { width: min(calc(100% - 28px), var(--ua-container)); }
  .ua-section { padding: 78px 0; }
  .ua-section--compact { padding: 54px 0; }
  .ua-title { font-size: clamp(2.2rem, 10.5vw, 3.45rem); }
  .ua-section-head { display: block; margin-bottom: 34px; }
  .ua-section-head .ua-button { margin-top: 22px; }
  .ua-brand img, .ua-brand .custom-logo { width: 205px; max-height: 58px; }
  body.ua-compact-header-enabled .ua-site-header.is-scrolled .ua-brand img,
  body.ua-compact-header-enabled .ua-site-header.is-scrolled .ua-brand .custom-logo { width: 170px; max-height: 45px; }
  body.ua-compact-header-enabled .ua-site-header.is-scrolled .ua-nav-toggle { width: 44px; height: 44px; }
  .ua-gold-veil { inset: -5% -30%; opacity: .72; transform: none !important; will-change: auto; }
  .ua-gold-veil span { animation: none !important; will-change: auto; }
  .ua-gold-veil span:first-child { width: 620px; height: 165px; top: 23%; right: -210px; }
  .ua-gold-veil span:last-child { width: 470px; height: 130px; right: -100px; bottom: 15%; }
  .ua-hero-inner { gap: 38px; padding: 60px 0 62px; }
  .ua-hero-kicker { font-size: .68rem; letter-spacing: .13em; }
  .ua-hero-kicker::before { width: 28px; }
  .ua-hero h1 { margin-top: 20px; font-size: clamp(3rem, 14.1vw, 4.35rem); line-height: .98; }
  .ua-hero-copy > p { font-size: 1rem; }
  .ua-hero-actions { display: grid; }
  .ua-button { width: 100%; }
  .ua-hero-trust { display: grid; gap: 10px; }
  .ua-dashboard { width: 100%; padding: 17px; border-radius: 22px; }
  .ua-dashboard-head { gap: 10px; padding-bottom: 14px; }
  .ua-dashboard-brand img { width: 47px; height: 47px; border-radius: 13px; }
  .ua-dashboard-brand strong { font-size: 1.02rem; }
  .ua-dashboard-brand small { font-size: .66rem; }
  .ua-status { padding: 6px 8px; font-size: .6rem; }
  .ua-dashboard-grid { gap: 9px; margin-top: 12px; }
  .ua-metric { min-height: 122px; padding: 12px; border-radius: 14px; }
  .ua-metric small { font-size: .6rem; }
  .ua-metric strong { margin-top: 5px; font-size: 1rem; }
  .ua-metric p { display: none; }
  .ua-bars { height: 30px; gap: 4px; }
  .ua-overview { margin-top: 0; padding-top: 16px; background: var(--ua-navy); }
  .ua-overview-grid { grid-template-columns: 1fr; }
  .ua-overview-item { min-height: 100px; padding: 20px; border-right: 0; border-bottom: 1px solid rgba(10,25,47,.08); }
  .ua-overview-item:last-child { border-bottom: 0; }
  .ua-about { padding-top: 78px; }
  .ua-about-grid { gap: 42px; }
  .ua-about-media figcaption { left: 19px; right: 19px; bottom: 18px; }
  .ua-about-media figcaption strong { font-size: 1.24rem; }
  .ua-about-points, .ua-institution-grid, .ua-services-grid, .ua-benefits-list, .ua-process-grid, .ua-brands-grid, .ua-contact-cards { grid-template-columns: 1fr; }
  .ua-values-card, .ua-contact-card--wide { grid-column: auto; }
  .ua-service-card { min-height: 310px; }
  .ua-advisory-media figcaption strong { font-size: 1.35rem; }
  .ua-process-grid { gap: 13px; }
  .ua-step { min-height: auto; }
  .ua-cta-card { grid-template-columns: 1fr; gap: 24px; padding: 33px 24px; }
  .ua-form { padding: 26px 18px; }
  .ua-form-grid { grid-template-columns: 1fr; }
  .ua-field--full { grid-column: auto; }
  .ua-footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .ua-footer-brand { grid-column: auto; }
  .ua-footer-bottom { display: grid; }
  .ua-whatsapp-float { right: 14px; bottom: 14px; width: 50px; height: 50px; }
}

@media (max-width: 390px) {
  .ua-brand img, .ua-brand .custom-logo { width: 178px; }
  body.ua-compact-header-enabled .ua-site-header.is-scrolled .ua-brand img,
  body.ua-compact-header-enabled .ua-site-header.is-scrolled .ua-brand .custom-logo { width: 154px; }
  .ua-nav-toggle { width: 44px; height: 44px; }
  .ua-hero h1 { font-size: 2.85rem; }
  .ua-dashboard { padding: 14px; }
  .ua-dashboard-brand strong { font-size: .92rem; }
  .ua-status { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .ua-gold-veil { transform: none !important; }
  html.js body.ua-motion-enabled .ua-reveal { opacity: 1 !important; transform: none !important; }
}


.ua-socials a svg { width: 18px; height: 18px; display: block; }
.ua-site-footer { padding-bottom: 18px; }
@media (max-width: 760px) {
  .ua-contact-card { gap: 13px; padding: 18px 16px; }
  .ua-contact-icon { width: 40px; height: 40px; border-radius: 12px; }
  .ua-contact-icon svg { width: 21px; height: 21px; }
  .ua-section--navy#contacto { padding-bottom: 116px; }
}

/* =========================================================
   URIARTE Corporate v1.6 candidate
   ========================================================= */
.ua-skip-link { position: fixed; left: 16px; top: -100px; z-index: 10000; padding: 12px 18px; border-radius: 8px; color: #0a192f; background: #fff; font-weight: 800; box-shadow: var(--ua-shadow); }
.ua-skip-link:focus { top: 16px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--ua-gold-light); outline-offset: 3px; }
.ua-button, .ua-nav-toggle, .ua-area-tabs button, .ua-carousel-arrow, .ua-service-detail-trigger, .ua-history-details summary { min-height: 44px; }
.ua-menu-list { display: flex; align-items: center; gap: 24px; margin: 0; padding: 0; list-style: none; }
.ua-menu-list a { color: #f0f3f7; font-size: .9rem; font-weight: 720; }
.ua-menu-list a:hover { color: var(--ua-gold-light); }
body.nav-open { overflow: hidden; }
html.js body.ua-motion-enabled:not(.ua-motion-ready) .ua-reveal { opacity: 1 !important; transform: none !important; }

.ua-hero-inner--photo { grid-template-columns: 1fr 1fr; gap: 54px; }
.ua-hero-inner--photo .ua-hero-copy { max-width: 650px; }
.ua-hero-inner--photo h1 { max-width: 700px; font-size: clamp(3.1rem, 5.8vw, 5.4rem); line-height: .98; }
.ua-hero-photo { position: relative; margin: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.16); border-radius: 28px; box-shadow: var(--ua-shadow-dark); }
.ua-hero-photo::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to top, rgba(5,18,37,.7), transparent 48%); }
.ua-hero-photo-image { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }
.ua-hero-photo figcaption { position: absolute; left: 24px; bottom: 20px; z-index: 2; color: white; font-family: Georgia, serif; font-size: 1.2rem; }
.ua-overview-index { width: 48px; height: 48px; flex: 0 0 auto; display: grid !important; place-items: center; margin: 0 !important; border-radius: 50%; color: var(--ua-navy) !important; background: var(--ua-gold-light); font-size: .78rem !important; font-weight: 900; }

.ua-history { margin-top: 70px; padding: 34px; border: 1px solid rgba(10,25,47,.09); border-radius: 24px; background: var(--ua-paper); }
.ua-history-timeline { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 24px; }
.ua-history-timeline::before { content: ""; position: absolute; left: 8%; right: 8%; top: 17px; height: 2px; background: rgba(197,160,89,.45); }
.ua-history-timeline article { position: relative; padding-top: 44px; }
.ua-history-timeline article::before { content: ""; position: absolute; left: 0; top: 10px; width: 16px; height: 16px; border: 4px solid var(--ua-paper); border-radius: 50%; background: var(--ua-gold); box-shadow: 0 0 0 2px var(--ua-gold); }
.ua-history-timeline strong { color: var(--ua-navy); font-family: Georgia, serif; font-size: 1.7rem; }
.ua-history-timeline p { margin: 8px 0 0; color: var(--ua-muted); font-size: .9rem; }
.ua-history-details { margin-top: 22px; }
.ua-history-details summary { display: inline-flex; align-items: center; cursor: pointer; color: #76591f; font-weight: 850; }
.ua-history-details > div { max-width: 920px; padding-top: 12px; color: #566271; }

.ua-team { background: var(--ua-paper); }
.ua-demo-banner { display: inline-block; max-width: 520px; padding: 10px 14px; border: 2px solid #9b2e2e; border-radius: 10px; color: #7a1f1f; background: #fff0f0; font-size: .76rem; letter-spacing: .05em; text-align: center; }
.ua-team-group-demo { position: relative; max-width: 840px; margin: 38px auto; overflow: hidden; border-radius: 24px; }
.ua-team-group-demo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.ua-team-group-demo figcaption, .ua-team-photo > span { position: absolute; left: 10px; bottom: 10px; z-index: 2; padding: 7px 9px; border-radius: 6px; color: #fff; background: rgba(139,27,27,.92); font-size: .68rem; font-weight: 900; }
.ua-team-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.ua-team-card { overflow: hidden; border: 1px solid rgba(10,25,47,.1); border-radius: 20px; background: white; box-shadow: 0 14px 38px rgba(5,16,33,.08); }
.ua-team-photo { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #e9edf2; }
.ua-team-photo img { width: 100%; height: 100%; object-fit: cover; }
.ua-team-placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: var(--ua-gold); background: var(--ua-navy); font-family: Georgia, serif; font-size: 4rem; }
.ua-team-card h3 { margin: 18px 18px 4px; color: var(--ua-navy); font-family: Georgia, serif; font-size: 1.2rem; font-weight: 500; }
.ua-team-card > p { min-height: 44px; margin: 0 18px 20px; color: var(--ua-muted); font-size: .8rem; }

.ua-services { overflow: hidden; }
.ua-area-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 38px 0 30px; }
.ua-area-tabs button { padding: 12px 14px; border: 1px solid rgba(255,255,255,.2); border-radius: 12px; color: #e7ecf2; background: rgba(255,255,255,.05); font: inherit; font-size: .84rem; font-weight: 800; cursor: pointer; }
.ua-area-tabs button[aria-selected="true"] { color: var(--ua-navy); border-color: var(--ua-gold-light); background: var(--ua-gold-light); }
.ua-service-panel { padding: 26px; border: 1px solid rgba(255,255,255,.1); border-radius: 24px; background: rgba(255,255,255,.035); }
.ua-service-panel + .ua-service-panel { margin-top: 24px; }
body.ua-services-ready .ua-service-panel + .ua-service-panel { margin-top: 0; }
.ua-service-panel[hidden] { display: none !important; }
.ua-service-panel > header h3 { margin: 0; color: white; font-family: Georgia, serif; font-size: clamp(1.6rem, 3vw, 2.35rem); font-weight: 500; }
.ua-service-panel > header p { max-width: 820px; margin: 8px 0 0; color: #cbd4df; }
.ua-carousel-shell { display: grid; grid-template-columns: 44px minmax(0,1fr) 44px; align-items: center; gap: 12px; margin-top: 25px; }
.ua-service-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 36px) / 3); gap: 18px; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: inline mandatory; scrollbar-width: thin; scrollbar-color: var(--ua-gold) rgba(255,255,255,.08); padding: 4px 2px 15px; }
.ua-service-card-v16 { min-width: 0; min-height: 210px; display: flex; flex-direction: column; padding: 24px; scroll-snap-align: start; border: 1px solid rgba(255,255,255,.13); border-radius: 18px; background: linear-gradient(145deg, rgba(255,255,255,.09), rgba(255,255,255,.035)); transition: border-color .2s, transform .2s, background .2s; }
.ua-service-card-v16:hover, .ua-service-card-v16.is-selected { border-color: rgba(228,201,130,.7); background: rgba(255,255,255,.1); }
.ua-service-number-v16 { color: var(--ua-gold-light); font-size: .72rem; font-weight: 900; letter-spacing: .12em; }
.ua-service-card-v16 h4 { margin: 22px 0 18px; color: white; font-family: Georgia, serif; font-size: 1.3rem; font-weight: 500; line-height: 1.2; }
.ua-service-detail-trigger { align-self: flex-start; margin-top: auto; padding: 8px 0; border: 0; color: var(--ua-gold-light); background: transparent; font: inherit; font-size: .84rem; font-weight: 850; cursor: pointer; }
.ua-service-fallback-detail { margin-top: auto; color: #d5dce5; }
.ua-service-fallback-detail summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; color: var(--ua-gold-light); font-weight: 850; }
.ua-service-fallback-detail p { color: #d5dce5; font-size: .88rem; }
.ua-service-fallback-detail div, .ua-area-cta { display: flex; flex-wrap: wrap; gap: 15px; }
.ua-service-fallback-detail a, .ua-area-cta a { color: var(--ua-gold-light); font-size: .82rem; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.ua-js-only { display: none !important; }
body.ua-services-ready .ua-service-detail-trigger.ua-js-only { display: inline-flex !important; }
body.ua-services-ready .ua-carousel-arrow.ua-js-only { display: grid !important; }
body.ua-services-ready .ua-carousel-status.ua-js-only { display: flex !important; }
body.ua-services-ready .ua-service-detail.ua-js-only { display: block !important; }
body.ua-services-ready .ua-service-fallback-detail { display: none; }
.ua-carousel-arrow { width: 44px; height: 44px; padding: 0; place-items: center; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; color: white; background: rgba(255,255,255,.06); font-size: 1.2rem; cursor: pointer; }
.ua-carousel-arrow:disabled { opacity: .35; cursor: not-allowed; }
.ua-carousel-status { justify-content: center; gap: 5px; margin-top: 8px; color: #cbd4df; font-size: .8rem; }
.ua-service-detail { margin-top: 22px; padding: 25px; border-left: 4px solid var(--ua-gold); border-radius: 14px; color: var(--ua-text); background: white; }
.ua-service-detail h4 { margin: 4px 0 9px; color: var(--ua-navy); font-family: Georgia, serif; font-size: 1.55rem; font-weight: 500; }
.ua-service-detail > p:not(.ua-mini-label) { margin: 0; color: #566271; }
.ua-service-detail-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.ua-service-detail-actions .ua-button--outline { color: var(--ua-navy); border-color: rgba(10,25,47,.25); }
.ua-area-cta { margin-top: 23px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1); }
.ua-service-allies { max-width: 920px; margin: 24px auto 0; color: #b9c4d0; font-size: .8rem; text-align: center; }

.ua-process-grid--five { grid-template-columns: repeat(5, 1fr); padding: 0; list-style: none; }
.ua-process-grid--five .ua-step { min-height: 235px; padding: 22px; }
.ua-contact-photo { margin: 28px 0; overflow: hidden; border-radius: 20px; }
.ua-contact-photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.ua-contact-card { min-height: 82px; }
.ua-contact-card > div { min-width: 0; }
.ua-field-error { color: #9b2e2e; font-size: .78rem; font-weight: 700; }
.ua-field [aria-invalid="true"] { border-color: #b63a3a; box-shadow: 0 0 0 3px rgba(182,58,58,.12); }
.ua-consent label { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; line-height: 1.45; }
.ua-consent input { width: 20px; height: 20px; flex: 0 0 auto; margin-top: 1px; accent-color: var(--ua-navy); }
.ua-consent a { color: #76591f; text-decoration: underline; }
.ua-alert a { color: inherit; font-weight: 800; text-decoration: underline; }
.ua-brand-slot { position: relative; min-height: 130px; }
.ua-brand-slot img { max-width: 100%; max-height: 100px; object-fit: contain; }
.ua-brand-slot > span { position: absolute; left: 6px; right: 6px; bottom: 5px; color: #8a2525; font-size: .58rem; font-weight: 900; }
.ua-footer-col h2 { margin: 0 0 16px; color: white; font-size: .89rem; letter-spacing: .11em; text-transform: uppercase; }
.ua-page-content h2 { margin-top: 2em; color: var(--ua-navy); font-family: Georgia, serif; font-weight: 500; }
.ua-page-content p, .ua-page-content li { line-height: 1.75; }

@media (max-width: 1120px) {
  .ua-nav { align-items: stretch; }
  .ua-menu-list { display: grid; gap: 0; }
  .ua-menu-list a { display: block; padding: 13px 4px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .ua-hero-inner--photo { grid-template-columns: 1fr; }
  .ua-hero-photo { max-width: 900px; }
  .ua-team-grid { grid-template-columns: repeat(3, 1fr); }
  .ua-area-tabs { grid-template-columns: repeat(2, 1fr); }
  .ua-service-track { grid-auto-columns: calc((100% - 18px) / 2); }
  .ua-process-grid--five { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  .ua-hero-inner--photo h1 { font-size: clamp(2.7rem, 12vw, 4rem); }
  .ua-hero-photo figcaption { font-size: 1rem; }
  .ua-history { padding: 25px 20px; }
  .ua-history-timeline { grid-template-columns: 1fr; gap: 20px; }
  .ua-history-timeline::before { left: 8px; right: auto; top: 10px; bottom: 10px; width: 2px; height: auto; }
  .ua-history-timeline article { padding: 0 0 0 42px; }
  .ua-history-timeline article::before { left: 0; top: 6px; }
  .ua-team-grid { grid-template-columns: 1fr; max-width: 440px; margin-inline: auto; }
  .ua-area-tabs { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .ua-area-tabs button { min-width: 78%; flex: 0 0 78%; scroll-snap-align: start; }
  .ua-service-panel { padding: 20px 14px; }
  .ua-carousel-shell { grid-template-columns: 1fr; }
  .ua-carousel-arrow { display: none !important; }
  .ua-service-track { grid-auto-columns: 86%; gap: 14px; }
  .ua-service-card-v16 { min-height: 205px; padding: 22px; }
  .ua-service-detail { padding: 22px 18px; }
  .ua-service-detail-actions { display: grid; }
  .ua-area-cta { display: grid; }
  .ua-process-grid--five { grid-template-columns: 1fr; gap: 10px; }
  .ua-process-grid--five .ua-step { min-height: 0; display: grid; grid-template-columns: 48px 1fr; column-gap: 14px; padding: 17px; }
  .ua-process-grid--five .ua-step::before { grid-row: 1 / span 2; }
  .ua-process-grid--five .ua-step h3, .ua-process-grid--five .ua-step p { grid-column: 2; }
  .ua-process-grid--five .ua-step h3 { margin-top: 2px; }
  .ua-contact-photo { margin: 22px 0; }
}
@media (max-width: 390px) {
  .ua-hero-inner--photo h1 { font-size: 2.55rem; }
  .ua-area-tabs button { min-width: 88%; flex-basis: 88%; }
  .ua-service-track { grid-auto-columns: 88%; }
  .ua-service-panel { margin-inline: -8px; }
}
@media (prefers-reduced-motion: reduce) {
  .ua-service-track { scroll-behavior: auto; }
  .ua-service-card-v16, .ua-area-tabs button, .ua-carousel-arrow { transition: none !important; }
}
/* Ajustes posteriores a la inspección visual de QA. */
body.ua-services-ready .ua-service-detail.ua-js-only { display: none !important; }
body.ua-services-ready .ua-service-detail.ua-js-only.is-active { display: block !important; }
@media (max-width: 760px) {
  .ua-carousel-shell { position: relative; display: block; padding-bottom: 56px; }
  body.ua-services-ready .ua-carousel-arrow.ua-js-only { position: absolute; bottom: 0; display: grid !important; }
  .ua-carousel-prev { left: 0; }
  .ua-carousel-next { right: 0; }
}
/* R2: hierarchy, responsive anchors and touch carousels. */
html { scroll-padding-top: calc(var(--ua-header-height) + 16px); }
main > section[id], #formulario-asesoria { scroll-margin-top: calc(var(--ua-header-height) + 16px); }
.ua-hero-inner--photo { grid-template-columns: minmax(0, 1.16fr) minmax(360px, .84fr); gap: clamp(36px, 5vw, 78px); }
.ua-hero-inner--photo .ua-hero-copy { max-width: 760px; }
.ua-hero-inner--photo h1 { max-width: 780px; font-size: clamp(3.45rem, 5.25vw, 5.3rem); line-height: 1.055; letter-spacing: -.018em; text-wrap: balance; }
.ua-section-head--services { align-items: end; margin-bottom: 22px; }
.ua-section-head--services .ua-title { max-width: 640px; }
.ua-service-card-v16 { min-height: 328px; padding: 19px; }
.ua-service-card-heading { display: flex; align-items: flex-start; gap: 13px; min-height: 55px; }
.ua-service-card-v16 h4 { margin: 0; font-size: 1.13rem; line-height: 1.18; }
.ua-service-number-v16 { flex: 0 0 auto; margin-top: 3px; }
.ua-service-visual { width: 100%; aspect-ratio: 3 / 2; margin: 15px 0 8px; border: 1px solid rgba(255,255,255,.15); border-radius: 12px; object-fit: cover; background: #102441; }
.ua-r2-carousel-controls { display: none; }
body.nav-open .ua-whatsapp-float, body.ua-contact-active .ua-whatsapp-float { opacity: 0; pointer-events: none; transform: translateY(12px); }
.ua-whatsapp-float { transition: opacity .2s ease, transform .2s ease; }
@media (min-width: 1121px) { .ua-hero-photo-image { aspect-ratio: 16 / 11; } }
@media (max-width: 1120px) { .ua-hero-inner--photo { grid-template-columns: 1fr; } .ua-hero-inner--photo h1 { max-width: 740px; } }
@media (max-width: 760px) {
  html { scroll-padding-top: calc(var(--ua-header-height) + 12px); }
  .ua-nav { max-height: calc(100dvh - var(--ua-header-height)); overflow-y: auto; overscroll-behavior: contain; }
  .ua-hero-inner--photo h1 { font-size: clamp(2.62rem, 11.8vw, 3.72rem); line-height: 1.085; letter-spacing: -.014em; }
  .ua-section-head--services { margin-bottom: 18px; }
  .ua-section-head--services .ua-button { margin-top: 16px; }
  .ua-service-card-v16 { min-height: 318px; padding: 17px; }
  .ua-service-card-heading { min-height: 49px; gap: 10px; }
  .ua-service-card-v16 h4 { font-size: 1.06rem; }
  .ua-service-visual { margin: 12px 0 6px; }
  .ua-r2-carousel-controls { align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 12px; color: var(--ua-muted); font-size: .82rem; font-weight: 800; }
  body.ua-r2-carousel-ready .ua-r2-carousel-controls.ua-js-only { display: flex !important; }
  html.js body.ua-r2-carousel-ready .ua-r2-carousel [data-r2-carousel-track] { display: flex; max-width: none; margin: 0; gap: 14px; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: inline mandatory; scrollbar-width: thin; padding: 2px 1px 12px; }
  html.js body.ua-r2-carousel-ready .ua-team-carousel .ua-team-card { flex: 0 0 min(82vw, 330px); scroll-snap-align: start; }
  html.js body.ua-r2-carousel-ready .ua-brands-carousel .ua-brand-slot { flex: 0 0 min(63vw, 250px); min-height: 145px; scroll-snap-align: start; }
  .ua-r2-carousel-controls button { width: 44px; height: 44px; border: 1px solid rgba(10,25,47,.18); border-radius: 50%; color: var(--ua-navy); background: white; font: inherit; font-size: 1.2rem; cursor: pointer; }
  .ua-r2-carousel-controls button:disabled { opacity: .38; }
  .ua-team-grid { max-width: 440px; margin-inline: auto; }
  .ua-brands-grid { max-width: 440px; margin-inline: auto; }
  .ua-whatsapp-float { bottom: max(14px, env(safe-area-inset-bottom)); }
}
@media (max-width: 390px) { .ua-hero-inner--photo h1 { font-size: clamp(2.42rem, 11.6vw, 2.85rem); } }

/* R3: guided service-detail control. */
.ua-service-detail-trigger { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 15px; border: 1px solid var(--ua-gold); border-radius: 999px; color: var(--ua-gold-light); background: transparent; font: inherit; font-size: .84rem; font-weight: 850; line-height: 1; cursor: pointer; transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease; }
.ua-service-detail-trigger:hover, .ua-service-detail-trigger:active, .ua-service-card-v16.is-selected .ua-service-detail-trigger { color: var(--ua-navy); background: var(--ua-gold-light); border-color: var(--ua-gold-light); }
.ua-service-detail-trigger:active { transform: translateY(1px); }
.ua-service-detail-trigger:focus-visible { outline-color: #fff; }
@media (max-width: 760px) { .ua-service-detail-trigger { width: 100%; margin-top: auto; } .ua-service-detail { scroll-margin-top: calc(var(--ua-header-height) + 16px); } .ua-site-footer { padding-top: 52px; } .ua-footer-brand img { max-width: 210px; } }

/* ================================================================
   v1.6 FINAL CANDIDATE — stabilization and responsive QA pass
   Built on v1.5; these rules deliberately supersede R3 experiments.
   ================================================================ */
:root {
  --ua-sticky-offset: 104px;
}
html {
  scroll-padding-top: var(--ua-sticky-offset);
}
main > section[id],
#formulario-asesoria {
  scroll-margin-top: var(--ua-sticky-offset);
}
.ua-hero[id] { scroll-margin-top: 0; }

/* Global hierarchy: section titles stay clearly below Hero scale. */
.ua-title {
  font-size: clamp(2.25rem, 3.35vw, 3.65rem);
  line-height: 1.075;
  letter-spacing: -.027em;
  text-wrap: balance;
}
.ua-lead { line-height: 1.7; }
.ua-section { padding: clamp(82px, 7.2vw, 104px) 0; }

/* Header remains spacious; mobile navigation is a real viewport panel. */
.ua-nav { gap: 20px; }
.ua-menu-list { gap: 20px; }
.ua-menu-list a { white-space: nowrap; }
.ua-header-cta { white-space: nowrap; }

/* Hero: balanced 56/44 composition, no forced viewport height. */
.ua-hero { min-height: auto; }
.ua-hero-inner,
.ua-hero-inner--photo {
  grid-template-columns: minmax(0, 1.24fr) minmax(380px, .96fr);
  align-items: center;
  gap: clamp(42px, 5vw, 72px);
  padding: clamp(60px, 6.5vh, 82px) 0 clamp(76px, 7.5vh, 98px);
}
.ua-hero-inner--photo .ua-hero-copy { max-width: 730px; }
.ua-hero-inner--photo h1,
.ua-hero h1 {
  max-width: 760px;
  margin: 22px 0 23px;
  font-size: clamp(3.2rem, 4.2vw, 4.7rem);
  line-height: 1.065;
  letter-spacing: -.026em;
  text-wrap: balance;
}
.ua-hero-copy > p {
  max-width: 640px;
  font-size: clamp(1rem, 1.1vw, 1.08rem);
  line-height: 1.68;
}
.ua-hero-actions { margin-top: 27px; }
.ua-hero-trust { margin-top: 25px; gap: 11px 20px; }
.ua-hero-photo {
  align-self: center;
  width: 100%;
  max-width: 520px;
  justify-self: end;
  border-radius: 26px;
}
.ua-hero-photo-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
}
.ua-hero-photo figcaption { font-size: 1.08rem; }

/* Overview aligns tightly with the hero without an exaggerated overlap. */
.ua-overview { margin-top: -30px; }
.ua-overview-item { min-height: 112px; }

/* About and benefit long headings need breathing room without overscaling. */
.ua-about-copy .ua-title,
.ua-benefits-grid .ua-title { max-width: 760px; }
.ua-about-history { line-height: 1.75; }

/* Services: compact intro, coherent cards and deliberately guided detail. */
.ua-section-head--services {
  align-items: flex-end;
  margin-bottom: 20px;
}
.ua-section-head--services .ua-title { max-width: 580px; }
.ua-section-head--services .ua-lead { margin-top: 12px; }
.ua-area-tabs { margin: 24px 0 24px; }
.ua-service-panel { padding: clamp(20px, 2.2vw, 27px); }
.ua-service-panel > header p { line-height: 1.6; }
.ua-service-track { align-items: stretch; }
.ua-service-card-v16 {
  min-height: 336px;
  padding: 19px;
}
.ua-service-card-heading {
  min-height: 54px;
  display: flex;
  align-items: flex-start;
  gap: 11px;
}
.ua-service-number-v16 {
  flex: 0 0 auto;
  margin-top: 2px;
  padding-top: 2px;
  font-size: .7rem;
}
.ua-service-card-v16 h4 {
  margin: 0;
  font-size: 1.14rem;
  line-height: 1.2;
  text-wrap: balance;
}
.ua-service-visual {
  width: 100%;
  aspect-ratio: 3 / 2;
  margin: 14px 0 12px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px;
  object-fit: cover;
  object-position: center;
  background: #102441;
}
.ua-service-detail-trigger {
  align-self: flex-start;
  min-height: 44px;
  margin-top: auto;
  padding: 10px 15px;
  border: 1px solid var(--ua-gold);
  border-radius: 999px;
  color: var(--ua-gold-light);
  background: transparent;
  font-size: .83rem;
  font-weight: 850;
}
.ua-service-detail-trigger:hover,
.ua-service-detail-trigger:active,
.ua-service-card-v16.is-selected .ua-service-detail-trigger {
  color: var(--ua-navy);
  background: var(--ua-gold-light);
  border-color: var(--ua-gold-light);
}
.ua-service-card-v16.is-selected {
  box-shadow: inset 0 0 0 1px rgba(228,201,130,.24);
}
body.ua-services-ready .ua-service-detail.ua-js-only { display: none !important; }
body.ua-services-ready .ua-service-detail.ua-js-only.is-active { display: block !important; }
.ua-service-detail {
  scroll-margin-top: var(--ua-sticky-offset);
  padding: clamp(21px, 2.5vw, 28px);
}
.ua-service-detail h4:focus { outline: none; }
.ua-service-detail h4:focus-visible {
  outline: 3px solid rgba(197,160,89,.45);
  outline-offset: 5px;
}
.ua-area-cta { gap: 12px 20px; }

/* Team and brands default off in PHP; when enabled they stay compact. */
.ua-team-grid { gap: 18px; }
.ua-team-card h3 { line-height: 1.2; }
.ua-demo-banner { margin: 8px 0 22px; }
.ua-brands .ua-demo-banner { margin-inline: auto; }
.ua-brand-slot { display: grid; place-items: center; padding: 20px 14px 30px; }

/* Process density is intentional: five stages remain readable. */
.ua-process-grid--five .ua-step { min-height: 220px; }
.ua-process-grid--five .ua-step h3 { line-height: 1.22; }

/* Contact: clear, readable and safe around the floating WhatsApp button. */
.ua-contact-copy .ua-title { max-width: 650px; }
.ua-contact-card span,
.ua-contact-card a { overflow-wrap: anywhere; }
.ua-form { scroll-margin-top: var(--ua-sticky-offset); }
.ua-form input,
.ua-form select,
.ua-form textarea { font-size: 16px; }
.ua-form-note { display: block; margin-top: 14px; line-height: 1.5; }
.ua-whatsapp-float {
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
}
body.nav-open .ua-whatsapp-float,
body.ua-contact-active .ua-whatsapp-float {
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
}

/* Footer stays present but does not become a second landing page. */
.ua-site-footer { padding-top: 64px; }
.ua-footer-brand img { max-width: 220px; }
.ua-footer-col a,
.ua-footer-col span { min-height: 30px; }

/* Tablet: preserve two-column hero at 1024; stack only below 900. */
@media (max-width: 1120px) {
  :root { --ua-sticky-offset: 94px; }
  .ua-nav {
    top: var(--ua-header-height);
    bottom: auto;
    height: 0;
    max-height: 0;
    overflow: hidden;
    overscroll-behavior: contain;
  }
  body.nav-open .ua-nav {
    height: calc(100dvh - var(--ua-header-height));
    max-height: calc(100dvh - var(--ua-header-height));
    overflow-y: auto;
    padding: 16px 20px max(28px, env(safe-area-inset-bottom));
  }
  .ua-menu-list { width: 100%; }
  .ua-nav .ua-header-cta { width: 100%; margin: 14px 0 0; }
  body.admin-bar .ua-nav { top: calc(var(--ua-header-height) + 32px); }
  .ua-team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ua-service-track { grid-auto-columns: calc((100% - 18px) / 2); }
}
@media (max-width: 782px) {
  body.admin-bar .ua-nav { top: calc(var(--ua-header-height) + 46px); }
}
@media (min-width: 900px) and (max-width: 1120px) {
  .ua-hero-inner,
  .ua-hero-inner--photo {
    grid-template-columns: minmax(0, 1.14fr) minmax(330px, .86fr);
    gap: 34px;
    padding: 58px 0 76px;
  }
  .ua-hero-inner--photo h1,
  .ua-hero h1 {
    max-width: 610px;
    font-size: clamp(2.75rem, 4.8vw, 3.45rem);
    line-height: 1.07;
  }
  .ua-hero-photo { max-width: 430px; }
  .ua-hero-photo-image { aspect-ratio: 4 / 3; }
  .ua-about-grid,
  .ua-benefits-grid { grid-template-columns: .92fr 1.08fr; gap: 44px; }
  .ua-contact-grid { grid-template-columns: .94fr 1.06fr; gap: 40px; }
}

/* Mobile / small tablet: compact hero and explicit horizontal carousels. */
@media (max-width: 899px) {
  .ua-hero-inner,
  .ua-hero-inner--photo { grid-template-columns: 1fr; }
  .ua-hero-photo { max-width: 720px; justify-self: start; }
}
@media (max-width: 760px) {
  :root { --ua-sticky-offset: 88px; }
  html { scroll-padding-top: var(--ua-sticky-offset); }
  .ua-container { width: min(calc(100% - 28px), var(--ua-container)); }
  .ua-section { padding: 68px 0; }
  .ua-section--compact { padding: 50px 0; }
  .ua-title {
    font-size: clamp(2rem, 8.9vw, 2.72rem);
    line-height: 1.08;
    letter-spacing: -.022em;
  }
  .ua-site-header { --ua-header-height: 72px; }
  body.ua-compact-header-enabled .ua-site-header.is-scrolled { --ua-header-height: 64px; }
  .ua-brand img,
  .ua-brand .custom-logo { width: 188px; max-height: 54px; }
  body.ua-compact-header-enabled .ua-site-header.is-scrolled .ua-brand img,
  body.ua-compact-header-enabled .ua-site-header.is-scrolled .ua-brand .custom-logo { width: 164px; max-height: 44px; }
  .ua-nav-toggle { width: 44px; height: 44px; }
  body.nav-open .ua-nav {
    height: calc(100dvh - var(--ua-header-height));
    max-height: calc(100dvh - var(--ua-header-height));
  }
  .ua-menu-list a { min-height: 46px; display: flex; align-items: center; }
  .ua-hero-inner,
  .ua-hero-inner--photo {
    gap: 28px;
    padding: 42px 0 52px;
  }
  .ua-hero-kicker {
    margin: 0;
    font-size: .66rem;
    letter-spacing: .115em;
    line-height: 1.45;
  }
  .ua-hero-inner--photo h1,
  .ua-hero h1 {
    margin: 17px 0 18px;
    max-width: 620px;
    font-size: clamp(2.3rem, 10.7vw, 2.92rem);
    line-height: 1.045;
    letter-spacing: -.02em;
  }
  .ua-hero-copy > p { font-size: 1rem; line-height: 1.6; }
  .ua-hero-actions { gap: 10px; margin-top: 22px; }
  .ua-hero-actions .ua-button { min-height: 48px; }
  .ua-hero-trust { margin-top: 20px; gap: 8px; font-size: .77rem; }
  .ua-hero-photo { width: 100%; max-width: none; border-radius: 20px; }
  .ua-hero-photo-image { aspect-ratio: 16 / 10; }
  .ua-hero-photo figcaption { left: 18px; bottom: 15px; font-size: .95rem; }
  .ua-overview { margin-top: 0; padding-top: 12px; }
  .ua-overview-item { min-height: 88px; padding: 17px 18px; }
  .ua-overview-index { width: 42px; height: 42px; }
  .ua-about { padding-top: 68px; }
  .ua-about-grid { gap: 34px; }
  .ua-about-points { gap: 12px; }
  .ua-about-points > div { padding: 18px; }
  .ua-history { margin-top: 46px; }
  .ua-institution-grid { margin-top: 38px; }
  .ua-section-head--services { margin-bottom: 16px; }
  .ua-section-head--services .ua-button { margin-top: 14px; }
  .ua-area-tabs { margin: 18px 0 18px; }
  .ua-area-tabs button { min-width: 84%; flex-basis: 84%; min-height: 48px; }
  .ua-service-panel { margin-inline: 0; padding: 18px 12px; border-radius: 19px; }
  .ua-carousel-shell { padding-bottom: 58px; }
  .ua-service-track { grid-auto-columns: 86%; gap: 13px; padding-bottom: 12px; }
  .ua-service-card-v16 { min-height: 316px; padding: 16px; }
  .ua-service-card-heading { min-height: 48px; gap: 9px; }
  .ua-service-card-v16 h4 { font-size: 1.05rem; }
  .ua-service-visual { margin: 10px 0 10px; border-radius: 10px; }
  .ua-service-detail-trigger { width: auto; min-width: 122px; }
  .ua-carousel-status { margin-top: 5px; }
  .ua-service-detail { margin-top: 18px; padding: 20px 17px; }
  .ua-service-detail h4 { font-size: 1.4rem; }
  .ua-service-detail-actions { display: grid; }
  .ua-area-cta { display: grid; gap: 11px; }
  .ua-area-cta a { min-height: 44px; display: flex; align-items: center; }
  .ua-team-grid { grid-template-columns: 1fr; }
  html.js body.ua-r2-carousel-ready .ua-r2-carousel [data-r2-carousel-track] {
    display: flex;
    max-width: none;
    margin: 0;
    gap: 14px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
    padding: 2px 1px 12px;
  }
  html.js body.ua-r2-carousel-ready .ua-team-carousel .ua-team-card {
    flex: 0 0 min(84vw, 330px);
    scroll-snap-align: start;
  }
  html.js body.ua-r2-carousel-ready .ua-brands-carousel .ua-brand-slot {
    flex: 0 0 min(64vw, 250px);
    min-height: 145px;
    scroll-snap-align: start;
  }
  .ua-process-grid--five .ua-step {
    min-height: 0;
    padding: 16px;
  }
  .ua-contact-photo { margin: 20px 0; }
  .ua-contact-cards { gap: 10px; }
  .ua-form { padding: 24px 17px; }
  .ua-site-footer { padding-top: 48px; }
  .ua-footer-brand img { max-width: 190px; }
  .ua-footer-grid { gap: 28px; }
  .ua-footer-bottom { margin-top: 34px; }
  .ua-whatsapp-float {
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
  }
}

@media (max-width: 390px) {
  .ua-container { width: min(calc(100% - 24px), var(--ua-container)); }
  .ua-brand img,
  .ua-brand .custom-logo { width: 174px; }
  .ua-hero-inner--photo h1,
  .ua-hero h1 { font-size: clamp(2.18rem, 10.3vw, 2.55rem); }
  .ua-service-track { grid-auto-columns: 88%; }
  .ua-area-tabs button { min-width: 88%; flex-basis: 88%; }
  .ua-service-card-v16 { min-height: 304px; padding: 15px; }
  html.js body.ua-r2-carousel-ready .ua-team-carousel .ua-team-card { flex-basis: 86vw; }
}

@media (max-width: 340px) {
  .ua-brand img,
  .ua-brand .custom-logo { width: 158px; }
  .ua-hero-inner--photo h1,
  .ua-hero h1 { font-size: 2.15rem; }
  .ua-hero-kicker::before { display: none; }
  .ua-hero-kicker { display: block; }
  .ua-service-track { grid-auto-columns: 91%; }
  .ua-service-card-v16 h4 { font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ua-gold-veil { transform: none !important; }
  .ua-service-card-v16,
  .ua-service-detail-trigger,
  .ua-area-tabs button,
  .ua-carousel-arrow { transition: none !important; }
}

/* Floating WhatsApp must never cover mobile carousel controls or service-detail actions. */
@media (max-width: 760px) {
  body.ua-interactive-section-active .ua-whatsapp-float {
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
  }
}

/* Mobile navigation uses content-sized rows so the CTA never stretches to fill the viewport. */
@media (max-width: 1120px) {
  .ua-nav {
    align-content: start;
    grid-auto-rows: max-content;
  }
  .ua-nav .ua-header-cta {
    align-self: start;
    min-height: 48px;
    height: auto;
    padding-block: 12px;
  }
}


/* ==========================================================================\n   URIARTE Corporate v1.7 FINAL_CANDIDATE — surgical UX/responsive refinements\n   Base: v1.6 FINAL_CANDIDATE. Production/staging are not modified by this build.\n   ========================================================================== */
:root { --ua-anchor-gap: 32px; }
html { scroll-padding-top: calc(var(--ua-header-height, 88px) + var(--ua-anchor-gap)); }
main > section[id], #formulario-asesoria, .ua-service-detail { scroll-margin-top: 0; }

/* About: preserve approved copy while preventing the H2 from competing with Hero. */
.ua-about-copy .ua-title {
  max-width: 760px;
  font-size: clamp(2.05rem, 2.85vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: -.02em;
  text-wrap: balance;
}

/* Propuesta de valor: optically centered cards inside the navy transition. */
.ua-overview-grid { align-items: stretch; }
.ua-overview-item { justify-content: flex-start; }
.ua-overview-item > div { min-width: 0; }

/* V18 photography and denser service cards. */
.ua-service-panel { overflow: clip; }
.ua-service-card-v16 {
  min-height: 0;
  padding: 15px;
}
.ua-service-card-heading { min-height: 44px; gap: 9px; }
.ua-service-card-v16 h4 { font-size: clamp(1rem, 1.16vw, 1.1rem); line-height: 1.17; }
.ua-service-visual {
  aspect-ratio: 3 / 2;
  margin: 10px 0 9px;
  object-fit: cover;
  object-position: center;
}
.ua-service-detail-trigger { margin-top: 0; min-height: 44px; padding: 9px 14px; }
.ua-service-track {
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.ua-service-card-v16 { scroll-snap-align: start; scroll-snap-stop: always; }
.ua-carousel-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(228,201,130,.34);
  color: var(--ua-gold-light);
  background: rgba(6,18,37,.72);
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.ua-carousel-arrow:hover:not(:disabled) { background: rgba(197,160,89,.94); color: var(--ua-navy); }
.ua-carousel-arrow:disabled { opacity: .22; cursor: default; box-shadow: none; }
.ua-area-cta { align-items: center; }
.ua-area-cta a { text-decoration: none; }
.ua-area-cta .ua-area-primary { color: var(--ua-navy); }
.ua-area-cta .ua-area-whatsapp {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 15px;
  border: 1px solid rgba(228,201,130,.48);
  border-radius: 999px;
  color: var(--ua-gold-light);
  font-weight: 800;
}
.ua-area-cta .ua-area-whatsapp:hover { border-color: var(--ua-gold-light); background: rgba(255,255,255,.06); }

/* Demo disclosures are information, never error alerts. */
.ua-demo-banner {
  display: inline-flex;
  align-items: center;
  max-width: 620px;
  margin: 6px 0 18px;
  padding: 8px 11px;
  border: 1px solid rgba(10,25,47,.12);
  border-radius: 11px;
  color: #536174;
  background: rgba(10,25,47,.045);
  font-size: .76rem;
  line-height: 1.45;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
  text-align: left;
}
.ua-section--navy .ua-demo-banner,
.ua-team.ua-section--navy .ua-demo-banner {
  color: rgba(255,255,255,.72);
  background: rgba(255,255,255,.055);
  border-color: rgba(255,255,255,.13);
}
.ua-team-photo > span,
.ua-team-group-demo figcaption {
  color: rgba(255,255,255,.94);
  background: rgba(6,18,37,.72);
  border: 1px solid rgba(255,255,255,.16);
  font-size: .66rem;
  letter-spacing: .02em;
}
.ua-brand-slot span {
  color: #667085;
  background: rgba(10,25,47,.05);
  border-color: rgba(10,25,47,.1);
}
.ua-team-group-demo--v17 {
  max-width: 860px;
  margin: 18px auto 30px;
  border: 1px solid rgba(10,25,47,.08);
  box-shadow: 0 18px 48px rgba(3,13,28,.10);
}
.ua-team-group-demo--v17 img { aspect-ratio: 3 / 2; }

/* Team/brands density. */
.ua-team .ua-section-head { margin-bottom: 12px; }
.ua-team .ua-title { max-width: 720px; }
.ua-brands .ua-title { font-size: clamp(2.05rem, 3vw, 3.35rem); }
.ua-brands .ua-demo-banner { margin: 4px auto 16px; }
.ua-brands-grid { gap: 16px; }
.ua-brand-slot { min-height: 150px; padding: 17px 14px 25px; }
.ua-brand-slot img { max-width: 82%; max-height: 92px; object-fit: contain; }

/* Earlier hamburger breakpoint: preserve readable nav rather than compressing it. */
@media (max-width: 1240px) {
  .ua-site-header { --ua-header-height: 78px; }
  body.ua-compact-header-enabled .ua-site-header.is-scrolled { --ua-header-height: 66px; }
  .ua-nav-toggle { display: block; }
  body.ua-compact-header-enabled .ua-site-header.is-scrolled .ua-nav { gap: 0; }
  .ua-nav {
    position: fixed;
    inset: var(--ua-header-height) 0 auto 0;
    z-index: 1001;
    display: grid;
    align-content: start;
    grid-auto-rows: max-content;
    gap: 0;
    height: 0;
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    color: #fff;
    background: rgba(4,13,26,.975);
    border-top: 1px solid rgba(255,255,255,.06);
    border-bottom: 1px solid rgba(197,160,89,.18);
    box-shadow: 0 24px 70px rgba(0,0,0,.34);
    backdrop-filter: blur(16px) saturate(110%);
    -webkit-backdrop-filter: blur(16px) saturate(110%);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity .22s ease, transform .22s ease, height .26s ease, max-height .26s ease, padding .26s ease;
    overscroll-behavior: contain;
  }
  body.nav-open .ua-nav {
    height: calc(100dvh - var(--ua-header-height));
    max-height: calc(100dvh - var(--ua-header-height));
    overflow-y: auto;
    padding: 12px 20px max(26px, env(safe-area-inset-bottom));
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  body.admin-bar .ua-nav { top: calc(var(--ua-header-height) + 32px); }
  .ua-menu-list { width: 100%; display: grid; gap: 0; }
  .ua-menu-list a,
  .ua-nav > a:not(.ua-button) {
    min-height: 46px;
    display: flex;
    align-items: center;
    padding: 10px 5px;
    border-bottom: 1px solid rgba(255,255,255,.075);
  }
  .ua-nav .ua-header-cta { width: 100%; min-height: 48px; margin: 12px 0 0; padding-block: 12px; }
  body.nav-open .ua-nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  body.nav-open .ua-nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .ua-nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
}
@media (max-width: 782px) { body.admin-bar .ua-nav { top: calc(var(--ua-header-height) + 46px); } }

@media (max-width: 760px) {
  :root { --ua-anchor-gap: 28px; }
  .ua-section { padding: 60px 0; }
  .ua-section--compact { padding: 46px 0; }
  .ua-site-header { --ua-header-height: 68px; }
  body.ua-compact-header-enabled .ua-site-header.is-scrolled { --ua-header-height: 62px; }
  .ua-brand img,
  .ua-brand .custom-logo { width: 182px; max-height: 50px; }
  body.ua-compact-header-enabled .ua-site-header.is-scrolled .ua-brand img,
  body.ua-compact-header-enabled .ua-site-header.is-scrolled .ua-brand .custom-logo { width: 160px; max-height: 42px; }
  .ua-about { padding-top: 60px; }
  .ua-about-copy .ua-title { font-size: clamp(1.9rem, 7.6vw, 2.38rem); line-height: 1.1; }
  .ua-overview { padding: 12px 0 0; }
  .ua-overview .ua-container { display: flex; justify-content: center; }
  .ua-overview-grid { width: 100%; max-width: 560px; }
  .ua-overview-item { min-height: 78px; padding: 14px 16px; }
  .ua-section-head--services { margin-bottom: 12px; }
  .ua-area-tabs { margin: 15px 0; }
  .ua-service-panel { padding: 15px 10px; }
  .ua-carousel-shell { padding-bottom: 0; position: relative; }
  .ua-service-track { grid-auto-columns: 86%; gap: 12px; padding: 2px 1px 10px; }
  .ua-service-card-v16 { min-height: 0; padding: 13px; }
  .ua-service-card-heading { min-height: 40px; }
  .ua-service-card-v16 h4 { font-size: 1rem; }
  .ua-service-visual { margin: 8px 0; border-radius: 10px; }
  .ua-service-detail-trigger { min-width: 112px; min-height: 44px; padding: 8px 13px; }
  .ua-carousel-arrow {
    position: absolute;
    top: 50%;
    bottom: auto;
    z-index: 5;
    width: 42px;
    height: 42px;
    transform: translateY(-50%);
  }
  .ua-carousel-prev { left: 5px; }
  .ua-carousel-next { right: 5px; }
  .ua-carousel-status { margin: 7px 0 0; }
  .ua-service-detail { margin-top: 14px; padding: 18px 15px; }
  .ua-area-cta { margin-top: 18px; padding-top: 14px; }
  .ua-area-cta .ua-area-primary,
  .ua-area-cta .ua-area-whatsapp { width: 100%; justify-content: center; }

  .ua-team .ua-section-head { margin-bottom: 8px; }
  .ua-team .ua-section-head .ua-title { font-size: clamp(1.95rem, 8vw, 2.45rem); }
  .ua-team .ua-demo-banner { margin: 2px 0 10px; padding: 7px 9px; font-size: .72rem; }
  .ua-team-group-demo--v17 { display: none; }
  .ua-r2-carousel-controls { margin-bottom: 8px; }
  html.js body.ua-r2-carousel-ready .ua-r2-carousel [data-r2-carousel-track] {
    gap: 12px;
    padding: 1px 0 9px;
    scroll-padding-inline: 0;
  }
  html.js body.ua-r2-carousel-ready .ua-team-carousel .ua-team-card {
    flex: 0 0 min(calc(100vw - 70px), 330px);
  }
  html.js body.ua-r2-carousel-ready .ua-brands-carousel .ua-brand-slot {
    flex: 0 0 min(58vw, 236px);
    min-height: 128px;
  }
  .ua-brands .ua-title { font-size: clamp(1.95rem, 8vw, 2.45rem); }
  .ua-brand-slot { padding: 13px 10px 22px; }
  .ua-brand-slot img { max-width: 86%; max-height: 78px; }
}

@media (max-width: 390px) {
  .ua-brand img, .ua-brand .custom-logo { width: 170px; }
  .ua-service-track { grid-auto-columns: 87%; }
}

@media (prefers-reduced-motion: reduce) {
  .ua-nav { transition: none !important; }
}

/* Menu safety: the floating WhatsApp control never competes with an open navigation overlay. */
body.nav-open .ua-whatsapp-float { opacity: 0 !important; pointer-events: none !important; transform: translateY(12px) !important; }


/* ==========================================================
   URIARTE Corporate v1.7.2 FINAL_CANDIDATE
   Consolidated Premium logo + stable desktop rail + mobile optical balance
   ========================================================== */

/* Header and footer share the same dynamic logo resolver. */
.ua-brand-link,
.ua-footer-brand .ua-brand-link { display: flex; align-items: center; }
.ua-brand-logo {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
}
.ua-footer-brand .ua-brand-link { width: fit-content; }
.ua-footer-brand .ua-brand-logo { width: min(230px, 100%); max-height: 86px; }

/*
 * Desktop header rail stability.
 * The sticky header retains a stable 88px layout box so nav/CTA coordinates
 * never change in X or Y. Compactness is conveyed by the logo scale and the
 * existing surface/shadow treatment, not by moving the inner rail.
 */
@media (min-width: 1241px) {
  .ua-site-header,
  body.ua-compact-header-enabled .ua-site-header.is-scrolled {
    --ua-header-height: 88px;
  }

  .ua-header-inner,
  body.ua-compact-header-enabled .ua-site-header.is-scrolled .ua-header-inner {
    min-height: 88px;
    height: 88px;
    align-items: center;
    gap: 30px;
    transition: none;
  }

  .ua-brand {
    width: 235px;
    height: 64px;
    flex: 0 0 235px;
    overflow: visible;
  }
  .ua-brand .custom-logo-link,
  .ua-brand .ua-brand-link {
    width: 235px;
    height: 64px;
    flex: 0 0 235px;
  }
  .ua-brand img,
  .ua-brand .custom-logo,
  .ua-brand .ua-brand-logo {
    width: 235px;
    max-width: 235px;
    height: auto;
    max-height: 64px;
    transform: scale(1);
    transform-origin: left center;
    transition: transform .42s cubic-bezier(.22,1,.36,1), opacity .2s ease;
    will-change: transform;
  }
  body.ua-compact-header-enabled .ua-site-header.is-scrolled .ua-brand img,
  body.ua-compact-header-enabled .ua-site-header.is-scrolled .ua-brand .custom-logo,
  body.ua-compact-header-enabled .ua-site-header.is-scrolled .ua-brand .ua-brand-logo {
    width: 235px;
    max-width: 235px;
    max-height: 64px;
    transform: scale(.83);
  }

  .ua-nav,
  body.ua-compact-header-enabled .ua-site-header.is-scrolled .ua-nav,
  .ua-menu-list,
  body.ua-compact-header-enabled .ua-site-header.is-scrolled .ua-menu-list {
    gap: 20px;
    transform: none;
  }
  .ua-menu-list a,
  .ua-nav > a:not(.ua-button) {
    white-space: nowrap;
    line-height: 1.2;
    transform: none;
    transition: color .2s ease, opacity .2s ease;
  }
  .ua-header-cta,
  body.ua-compact-header-enabled .ua-site-header.is-scrolled .ua-header-cta {
    min-height: 46px;
    padding: 10px 23px;
    margin-top: 0;
    margin-bottom: 0;
    font-size: .95rem;
    line-height: 1.2;
    white-space: nowrap;
    transform: none;
  }
}

/*
 * Mobile optical balance for “Optimiza tu Empresa”. The navy lower breathing
 * from v1.7.1 is preserved; the card group moves structurally upward by
 * reducing the previous top gap via a responsive negative section margin.
 */
@media (max-width: 760px) {
  .ua-overview {
    margin-top: clamp(-50px, -12vw, -40px);
    padding-top: 12px;
    padding-bottom: clamp(30px, 8.5vw, 40px);
    background: var(--ua-navy);
  }
  .ua-footer-brand .ua-brand-logo { width: min(190px, 100%); max-height: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  .ua-brand img,
  .ua-brand .custom-logo,
  .ua-brand .ua-brand-logo { transition: none !important; }
}
