:root {
  --green: #9cc437;
  --green-dark: #6b9423;
  --purple: #9d6db7;
  --purple-dark: #6f408c;
  --ink: #17171c;
  --muted: #666873;
  --line: #ececf2;
  --soft: #faf8fc;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(50, 39, 70, 0.14);
  --radius: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.navbar {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 8px 18px rgba(111,64,140,.18);
}
.brand-text { display: grid; line-height: 1.15; }
.brand-text strong { font-size: 1rem; }
.brand-text small { color: var(--muted); font-size: .78rem; }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a {
  padding: 10px 14px;
  border-radius: 999px;
  color: #33323a;
  font-weight: 700;
  font-size: .92rem;
}
.nav-links a:hover { background: var(--soft); color: var(--purple-dark); }
.nav-cta {
  background: linear-gradient(135deg, var(--purple), var(--green));
  color: white !important;
  box-shadow: 0 10px 25px rgba(111,64,140,.22);
}
.menu-toggle {
  display: none;
  border: 0;
  background: var(--soft);
  width: 46px;
  height: 46px;
  border-radius: 15px;
  font-size: 1.4rem;
}

.container { width: min(1120px, calc(100% - 34px)); margin: 0 auto; }
.hero {
  position: relative;
  min-height: 760px;
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  z-index: -1;
}
.hero::before {
  width: 520px;
  height: 520px;
  right: -120px;
  top: 90px;
  background: radial-gradient(circle, rgba(156,196,55,.25), rgba(156,196,55,0) 70%);
}
.hero::after {
  width: 440px;
  height: 440px;
  left: -140px;
  bottom: -120px;
  background: radial-gradient(circle, rgba(157,109,183,.22), rgba(157,109,183,0) 70%);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.86) 48%, rgba(255,255,255,.62) 100%),
    url('../assets/portada-homosana.png') center/cover no-repeat;
  z-index: -2;
}
.hero-content { width: min(1120px, calc(100% - 34px)); margin: 0 auto; }
.hero-card {
  max-width: 705px;
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 34px;
  padding: clamp(28px, 5vw, 58px);
  box-shadow: var(--shadow);
  position: relative;
}
.hero-card::before {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 26px;
  border: 1px solid rgba(157,109,183,.18);
  pointer-events: none;
}
.hero-logo {
  width: 124px;
  height: 124px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  box-shadow: 0 18px 42px rgba(111,64,140,.18);
}
.eyebrow, .section-label {
  margin: 0 0 10px;
  color: var(--purple-dark);
  text-transform: uppercase;
  letter-spacing: .13em;
  font-weight: 900;
  font-size: .78rem;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  font-size: clamp(2.6rem, 6vw, 5.6rem);
  line-height: .94;
  margin-bottom: 18px;
  letter-spacing: -0.06em;
}
.hero h2 {
  font-size: clamp(1.2rem, 3vw, 2.15rem);
  line-height: 1.1;
  color: var(--purple-dark);
  margin-bottom: 20px;
}
.hero-copy {
  font-size: clamp(1.08rem, 2vw, 1.28rem);
  color: #383744;
  max-width: 650px;
  font-weight: 700;
}
.hero-note { color: var(--muted); font-size: 1.05rem; }
.hero-actions, .contact-actions { display: flex; flex-wrap: wrap; gap: 13px; align-items: center; margin-top: 26px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn.primary {
  color: white;
  background: linear-gradient(135deg, var(--purple-dark), var(--purple), var(--green));
  box-shadow: 0 18px 36px rgba(111,64,140,.24);
}
.btn.secondary {
  color: var(--purple-dark);
  background: white;
  border: 1px solid rgba(111,64,140,.22);
  box-shadow: 0 12px 30px rgba(40,40,60,.08);
}
.btn.large { min-width: 190px; }

section { padding: 92px 0; }
.two-columns { display: grid; grid-template-columns: 1fr 1.05fr; gap: 40px; align-items: center; }
.identity h2, .approach h2, .banner-card h2, .location h2, .contact h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
  margin-bottom: 18px;
}
.identity p, .section-heading p, .banner-card p, .location p, .contact p { color: var(--muted); font-size: 1.08rem; }
.feature-stack { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-card {
  min-height: 210px;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, var(--soft));
  box-shadow: 0 18px 45px rgba(50,39,70,.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.feature-card span {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(156,196,55,.16);
  color: var(--green-dark);
  font-weight: 900;
}
.feature-card h3 { font-size: clamp(1.35rem, 2vw, 1.75rem); margin: 0; }

.approach { background: linear-gradient(180deg, #fff, #fbfafc); }
.centered { text-align: center; max-width: 760px; margin: 0 auto 40px; }
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.info-card {
  padding: 30px;
  border-radius: var(--radius);
  background: white;
  border: 1px solid var(--line);
  box-shadow: 0 20px 55px rgba(50,39,70,.08);
}
.icon-circle {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(157,109,183,.14), rgba(156,196,55,.18));
  color: var(--purple-dark);
  font-size: 1.5rem;
  font-weight: 900;
}
.info-card h3 { font-size: 1.25rem; margin-bottom: 12px; }
.info-card p { color: var(--muted); margin-bottom: 0; }

.banner-section { padding-top: 40px; }
.banner-card {
  display: grid;
  grid-template-columns: .95fr 1fr;
  gap: 34px;
  align-items: center;
  padding: clamp(22px, 4vw, 40px);
  border-radius: 38px;
  background: linear-gradient(135deg, rgba(157,109,183,.09), rgba(156,196,55,.12));
  border: 1px solid rgba(157,109,183,.14);
  box-shadow: var(--shadow);
}
.banner-card img {
  width: 100%;
  aspect-ratio: 1.35/1;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: 0 20px 45px rgba(30,30,42,.14);
}

.location { padding-top: 40px; }
.location-card, .contact-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: clamp(28px, 5vw, 46px);
  border: 1px solid var(--line);
  border-radius: 36px;
  background: white;
  box-shadow: 0 22px 70px rgba(50,39,70,.09);
}
.contact { padding-top: 25px; }
.contact-panel {
  background:
    radial-gradient(circle at 90% 15%, rgba(156,196,55,.18), transparent 26%),
    radial-gradient(circle at 5% 80%, rgba(157,109,183,.16), transparent 28%),
    #fff;
}
.phone-link {
  color: var(--purple-dark);
  font-weight: 900;
  font-size: 1.25rem;
}
.footer {
  padding: 34px 20px;
  text-align: center;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: #fff;
}
.footer p { margin: 4px 0; }
.footer a { color: var(--purple-dark); font-weight: 900; }

.section-reveal { opacity: 0; transform: translateY(22px); transition: .75s ease; }
.section-reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 860px) {
  .menu-toggle { display: grid; place-items: center; }
  .nav-links {
    position: absolute;
    top: 82px;
    left: 16px;
    right: 16px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 14px;
    box-shadow: var(--shadow);
    display: none;
    flex-direction: column;
    align-items: stretch;
  }
  .nav-links.open { display: flex; }
  .nav-links a { text-align: center; }
  .hero { min-height: auto; padding: 55px 0; }
  .hero-bg { background-position: 58% center; }
  .two-columns, .cards-grid, .banner-card { grid-template-columns: 1fr; }
  .feature-stack { grid-template-columns: 1fr; }
  .feature-card { min-height: 150px; }
  .location-card, .contact-panel { align-items: flex-start; flex-direction: column; }
  section { padding: 62px 0; }
}

@media (max-width: 520px) {
  .brand-text small { display: none; }
  .hero-card { border-radius: 26px; }
  .hero-logo { width: 98px; height: 98px; }
  .btn { width: 100%; }
  .contact-actions { width: 100%; }
}
