/* ============ NAV ============ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 22px 0;
  transition: padding 220ms cubic-bezier(.2,.7,.2,1), background 220ms, box-shadow 220ms, backdrop-filter 220ms;
}
.nav.scrolled {
  padding: 10px 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 1px 0 var(--line-2);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-ico {
  height: 44px;
  width: auto;
  transition: height 220ms cubic-bezier(.2,.7,.2,1);
}
.brand-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--brand-deep);
  transition: font-size 220ms cubic-bezier(.2,.7,.2,1);
}
.nav.scrolled .brand-ico { height: 34px; }
.nav.scrolled .brand-name { font-size: 18px; }
.nav-links { display: flex; gap: 32px; }
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  transition: color 180ms;
  position: relative;
}
.nav-links a:hover { color: var(--brand-deep); }
.nav-cta {
  display: flex;
  gap: 12px;
  transition: opacity 280ms ease, transform 280ms ease, visibility 0s linear 0s;
}
.nav-cta.is-hidden {
  opacity: 0;
  transform: translateY(-6px);
  visibility: hidden;
  pointer-events: none;
  transition: opacity 280ms ease, transform 280ms ease, visibility 0s linear 280ms;
}
.nav-cta .btn { padding: 11px 18px; font-size: 14px; }

.nav-burger {
  display: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 220ms, opacity 220ms;
  transform-origin: center;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  background: #fff;
  border-top: 1px solid var(--line);
}
.nav-mobile a {
  font-size: 16px;
  padding: 8px 0;
  font-weight: 500;
}

@media (max-width: 920px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .nav-mobile { display: flex; }
}

/* ============ HERO ============ */
.hero {
  position: relative;
  padding: 180px 0 0;
  overflow: hidden;
  background: var(--bg);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-bg-img {
  position: absolute;
  top: -80px;
  right: -200px;
  width: 1200px;
  max-width: none;
  opacity: 0.55;
}
.hero-bg-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0) 60%, rgba(255,255,255,1) 100%),
              radial-gradient(circle at 90% 10%, rgba(29,69,150,0.05), transparent 50%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: center;
  padding-bottom: 100px;
}

.hero-copy h1 {
  font-size: clamp(44px, 5.6vw, 78px);
  letter-spacing: -0.035em;
  font-weight: 800;
}
.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.hero-trust {
  margin-top: 56px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}
.trust-row {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.trust-item { display: flex; flex-direction: column; gap: 2px; }
.trust-item strong {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 800;
  color: var(--brand-deep);
  letter-spacing: -0.025em;
}
.trust-item span { font-size: 13px; color: var(--muted); }
.trust-divider {
  width: 1px;
  height: 36px;
  background: var(--line);
}

/* Hero visual */
/* ============ HERO VISUAL ============ */
.hero-visual {
  position: relative;
  height: 600px;
}
.hero-visual-stage {
  position: absolute;
  inset: 0;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(160deg, #f4f7fc 0%, #eaf0fa 60%, #e6f4f0 100%);
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px -40px rgba(20, 51, 114, 0.25);
}
.hvs-grid-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(20, 51, 114, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 51, 114, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  mask-image: radial-gradient(circle at 50% 60%, transparent 30%, black 80%);
  -webkit-mask-image: radial-gradient(circle at 50% 60%, transparent 30%, black 80%);
}
.hvs-bg-shape {
  position: absolute;
  pointer-events: none;
}
.hvs-circle {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle at 30% 30%, #0d8c72 0%, #0a6f5a 100%);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.95;
}
.hvs-ring {
  width: 480px;
  height: 480px;
  bottom: -110px;
  left: 50%;
  transform: translateX(-50%);
  overflow: visible;
}
.hvs-hex {
  width: 60px;
  height: 60px;
  background: var(--blue);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  top: 60px;
  left: 40px;
  opacity: 0.9;
  animation: floatDoc 5s ease-in-out infinite;
}
.hero-doctora {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 95%;
  width: auto;
  z-index: 3;
  filter: drop-shadow(0 24px 32px rgba(10, 22, 40, 0.18));
  animation: floatDoc 6s ease-in-out infinite;
}
@keyframes floatDoc {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-6px); }
}
.hvs-hex { animation-name: floatHex; }
@keyframes floatHex {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(8deg); }
}
.hero-card {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 520px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #fff;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.hero-card-img {
  flex: 1;
  border-radius: 0;
  background: repeating-linear-gradient(
    135deg,
    #d8ece6 0 8px,
    #e6f4f0 8px 16px
  );
}
.hero-card-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-top: 1px solid var(--line);
  background: #fff;
}
.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--brand-soft);
  color: var(--brand-deep);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
}
.meta-pill .dot {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(13, 140, 114, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(13, 140, 114, 0); }
}
.meta-text { display: flex; flex-direction: column; }
.meta-text strong { font-size: 14px; }
.meta-text span { font-size: 12px; color: var(--muted); }

.hero-card-float {
  position: absolute;
  bottom: 40px;
  left: -20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-lg);
  max-width: 260px;
  z-index: 3;
  animation: float 4s ease-in-out infinite;
}
.hero-card-float.top {
  bottom: auto;
  top: 40px;
  left: auto;
  right: -10px;
  animation-delay: 1s;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.hcf-icon {
  width: 40px;
  height: 40px;
  background: var(--brand-soft);
  color: var(--brand-deep);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hero-card-float strong { display: block; font-size: 14px; color: var(--ink); }
.hero-card-float span { font-size: 12px; color: var(--muted); }

@media (max-width: 980px) {
  .hero { padding-top: 130px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; padding-bottom: 60px; }
  .hero-visual { height: 480px; }
}
@media (max-width: 560px) {
  .hero-visual { height: 380px; }
  .hero-card-float { padding: 12px 14px; gap: 10px; max-width: 200px; }
  .hero-card-float strong { font-size: 12px; }
  .hero-card-float span { font-size: 11px; }
  .hcf-icon { width: 36px; height: 36px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-trust .trust-row { gap: 14px; }
  .hero-trust .trust-divider { display: none; }
  .hero-trust strong { font-size: 22px; }
  .brand-name { font-size: 17px; }
  .brand-ico { height: 36px; }
  .nav.scrolled .brand-name { font-size: 15px; }
  .nav.scrolled .brand-ico { height: 30px; }
}

/* Hero marquee */
.hero-marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
  overflow: hidden;
  position: relative;
  z-index: 2;
}
.marquee-track {
  display: flex;
  gap: 0;
  animation: marquee 38s linear infinite;
  width: max-content;
}
.marquee-row {
  display: flex;
  gap: 56px;
  padding: 18px 28px 18px 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.marquee-row span { white-space: nowrap; }
.marquee-row span:first-child::before { color: var(--green); }
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============ NOSOTROS ============ */
.nosotros { background: var(--bg); }
.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.pillar {
  padding: 32px 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
  transition: background 200ms;
}
.pillar:hover { background: var(--brand-tint); }
.pillar-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--brand-deep);
  margin-bottom: 24px;
  letter-spacing: 0.06em;
}
.pillar h4 { margin-bottom: 8px; }
.pillar p { font-size: 14px; color: var(--muted); line-height: 1.55; }
@media (max-width: 880px) {
  .pillars { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .pillars { grid-template-columns: 1fr; }
}

/* ============ STATS ============ */
.stats {
  background: var(--brand-deep);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.stats::before {
  content: "";
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.05), transparent 60%);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
  z-index: 1;
}
.stat { padding: 12px 8px; }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(48px, 5.4vw, 76px);
  line-height: 1;
  letter-spacing: -0.035em;
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.stat-suffix { font-size: 0.5em; color: rgba(255,255,255,0.7); }
.stat-label {
  margin-top: 14px;
  font-size: 14px;
  color: rgba(255,255,255,0.78);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}
@media (max-width: 760px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 36px; }
}

/* ============ SERVICIOS ============ */
.servicios { background: var(--bg-soft); }
.serv-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}
.serv-tab {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: left;
  transition: all 200ms;
}
.serv-tab:hover { border-color: var(--brand); }
.serv-tab.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.serv-tab-icon {
  width: 48px;
  height: 48px;
  background: var(--brand-soft);
  color: var(--brand-deep);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 200ms;
}
.serv-tab.active .serv-tab-icon { background: var(--green); color: #fff; }
.serv-tab-label { display: flex; flex-direction: column; }
.serv-tab-label strong { font-size: 16px; font-weight: 600; }
.serv-tab-label em {
  font-style: normal;
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
  letter-spacing: 0.04em;
}
.serv-tab.active .serv-tab-label em { color: rgba(255,255,255,0.6); }
@media (max-width: 760px) {
  .serv-tabs { grid-template-columns: 1fr; }
}

.serv-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px;
  animation: panelIn 500ms cubic-bezier(.2,.7,.2,1);
}
@keyframes panelIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.serv-panel-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.serv-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.serv-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  transition: background 200ms;
}
.serv-card:hover { background: var(--brand-tint); }
.serv-card-check {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.serv-card strong { display: block; font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.serv-card span { font-size: 13px; color: var(--muted); line-height: 1.5; }
@media (max-width: 760px) {
  .serv-grid { grid-template-columns: 1fr; }
  .serv-panel { padding: 24px; }
}

/* ============ PROCESO ============ */
.proceso { background: var(--bg); }
.proc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  position: relative;
}
.proc-grid::before {
  content: "";
  position: absolute;
  top: 24px;
  left: 5%;
  right: 5%;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 12px);
}
.proc-step { position: relative; }
.proc-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid var(--brand);
  color: var(--brand-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}
.proc-step h4 { margin-bottom: 8px; }
.proc-step p { font-size: 14px; color: var(--muted); line-height: 1.55; }
@media (max-width: 880px) {
  .proc-grid { grid-template-columns: repeat(2, 1fr); }
  .proc-grid::before { display: none; }
}
@media (max-width: 520px) { .proc-grid { grid-template-columns: 1fr; } }

/* ============ SERVICIOS CORPORATIVOS ============ */
.serv-corp { background: var(--bg); padding-top: 0; }
.serv-corp-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
}
.serv-corp-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 200ms, box-shadow 200ms;
}
.serv-corp-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.serv-corp-card.primary {
  background: var(--brand-deep);
  color: #fff;
  border-color: var(--brand-deep);
  position: relative;
  overflow: hidden;
}
.serv-corp-card.primary::after {
  content: "";
  position: absolute;
  bottom: -120px;
  right: -120px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.08), transparent 60%);
  pointer-events: none;
}
.serv-corp-card.primary h3 { color: #fff; }
.serv-corp-card.primary p { color: rgba(255,255,255,0.78); }
.serv-corp-card h3 { font-size: 26px; line-height: 1.2; margin: 4px 0 4px; }
.serv-corp-card p { font-size: 15px; line-height: 1.55; color: var(--muted); flex: 1; }
.scc-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(255,255,255,0.14);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.scc-icon.alt { background: var(--brand-soft); color: var(--brand-deep); }
.scc-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.7);
}
.serv-corp-card:not(.primary) .scc-tag { color: var(--brand-deep); }
@media (max-width: 880px) {
  .serv-corp-grid { grid-template-columns: 1fr; }
  .serv-corp-card { padding: 28px; }
}
.serv-corp-card.primary .btn-link:hover { color: rgba(255,255,255,0.85); }

/* ============ EMPRESAS / TESTIMONIOS ============ */
.empresas { background: var(--bg-soft); }
.testimonials {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  margin-bottom: 56px;
}
.t-main {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 48px;
  position: relative;
}
.t-quote { color: var(--brand); opacity: 0.22; margin-bottom: 16px; }
.t-main blockquote {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.2vw, 32px);
  line-height: 1.3;
  margin: 0 0 36px;
  color: var(--ink);
  font-weight: 400;
  letter-spacing: -0.01em;
}
.t-author { display: flex; align-items: center; gap: 16px; }
.t-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  flex-shrink: 0;
}
.t-avatar.img-ph { padding: 0; font-size: 8px; }
.t-author strong { display: block; font-size: 15px; font-weight: 600; }
.t-author span { font-size: 13px; color: var(--muted); }

.t-list { display: flex; flex-direction: column; gap: 8px; }
.t-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: left;
  transition: all 200ms;
}
.t-item:hover { border-color: var(--brand); }
.t-item.active {
  border-color: var(--brand);
  box-shadow: var(--shadow-md);
}
.t-item-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--brand-deep);
  width: 24px;
}
.t-item strong { display: block; font-size: 14px; }
.t-item span { font-size: 12px; color: var(--muted); }
@media (max-width: 880px) { .testimonials { grid-template-columns: 1fr; } }

.logo-strip {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 28px 32px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.logo-strip-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  flex-shrink: 0;
  border-right: 1px solid var(--line);
  padding-right: 32px;
}
.logo-strip-list {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--muted-2);
  font-weight: 600;
  letter-spacing: 0.06em;
}
.logo-strip-list span { transition: color 200ms; }
.logo-strip-list span:hover { color: var(--ink); }
@media (max-width: 760px) {
  .logo-strip { flex-direction: column; align-items: flex-start; gap: 20px; }
  .logo-strip-label { border-right: none; padding-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 16px; width: 100%; }
}

/* ============ FAQ ============ */
.faq { background: var(--bg); }
.faq-list {
  border-top: 1px solid var(--line);
}
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
  text-align: left;
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  gap: 24px;
  transition: color 200ms;
}
.faq-q:hover { color: var(--brand-deep); }
.faq-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 200ms;
}
.faq-item.open .faq-icon { background: var(--brand); color: #fff; }
.faq-a-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 360ms cubic-bezier(.2,.7,.2,1);
}
.faq-item.open .faq-a-wrap { grid-template-rows: 1fr; }
.faq-a {
  overflow: hidden;
  font-size: 16px;
  color: var(--ink-2);
  line-height: 1.6;
  padding-right: 60px;
}
.faq-item.open .faq-a { padding-bottom: 28px; }

/* ============ CONTACTO ============ */
.contacto {
  background: linear-gradient(180deg, var(--bg-soft) 0%, #fff 100%);
  position: relative;
  overflow: hidden;
}
.contacto-head {
  max-width: 720px;
  margin: 0 auto 60px;
  text-align: center;
}
.contacto-head .eyebrow { justify-content: center; display: inline-flex; }
.contacto-head .lead { margin-left: auto; margin-right: auto; max-width: 56ch; }
.contacto-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.4fr;
  gap: 32px;
  position: relative;
  z-index: 1;
  align-items: stretch;
}
.contacto-left {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Contact info card */
.contacto-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.cc-title {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.cc-list { display: flex; flex-direction: column; gap: 4px; }
.cc-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--line);
  transition: transform 180ms;
}
.cc-list .cc-item:last-child { border-bottom: none; }
a.cc-item:hover { transform: translateX(3px); }
.cii-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cc-item div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cc-item em {
  font-style: normal;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.cc-item strong {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  word-break: break-word;
}

/* Corporate CTA card */
.contacto-cta-card {
  background: linear-gradient(160deg, var(--brand) 0%, var(--brand-deep) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  overflow: hidden;
}
.contacto-cta-card::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
}
.contacto-cta-card h4 {
  color: #fff;
  font-size: 18px;
  margin-bottom: 10px;
  position: relative;
}
.contacto-cta-card p {
  color: rgba(255,255,255,0.78);
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 16px;
  position: relative;
}
.contacto-cta-card .btn-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  position: relative;
}
.contacto-cta-card .btn-link:hover .arr { transform: translateX(3px); }
.contacto-cta-card .arr { transition: transform 200ms; display: inline-flex; }

/* Form */
.contacto-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}
.form-block { margin-bottom: 32px; }
.form-block:last-of-type { margin-bottom: 0; }
.form-block-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.fb-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  font-feature-settings: "tnum";
}
.form-block-head h4 {
  font-size: 16px;
  margin: 0;
  color: var(--ink);
}

.form-row { margin-bottom: 14px; }
.form-row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-row label { display: flex; flex-direction: column; gap: 6px; }
.form-row label > span {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  gap: 4px;
}
.form-row label > span em {
  color: var(--brand);
  font-style: normal;
}
.form-row input,
.form-row select,
.form-row textarea {
  font-family: inherit;
  font-size: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  transition: border-color 180ms, box-shadow 180ms;
  width: 100%;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(29,69,150,0.12);
}
.form-row textarea { resize: vertical; min-height: 90px; }
.form-row select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235b6a66' stroke-width='2'><path d='M6 9l6 6 6-6'/></svg>"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }

.form-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: #fff;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  transition: all 160ms;
}
.chip:hover { border-color: var(--brand); }
.chip.active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}
.chip-check { display: inline-flex; }

.form-actions {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.form-actions small {
  font-size: 12px;
  color: var(--muted);
  max-width: 280px;
  line-height: 1.5;
}

.contacto-success {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 56px 40px;
  text-align: center;
  box-shadow: var(--shadow-md);
}
.success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}
.contacto-success h3 { margin-bottom: 16px; }
.contacto-success p { font-size: 16px; max-width: 44ch; margin: 0 auto 28px; line-height: 1.6; }

@media (max-width: 980px) {
  .contacto-grid { grid-template-columns: 1fr; gap: 24px; }
  .contacto-form { padding: 28px; }
  .form-row.two { grid-template-columns: 1fr; }
  .form-actions { flex-direction: column; align-items: stretch; }
  .form-actions .btn { width: 100%; justify-content: center; }
}

/* ============ FOOTER ============ */
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 28px;
}
.footer-brand p { color: rgba(255,255,255,0.6); font-size: 14px; line-height: 1.6; max-width: 36ch; }
.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.footer-logo img { width: 36px; height: 36px; }
.footer-logo span { font-family: var(--font-display); font-size: 22px; color: #fff; }
footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
footer ul li { font-size: 14px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  flex-wrap: wrap;
  gap: 12px;
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
}
