/* =========================================================================
   SaludAware Web UI Kit — local styles
   Builds on ../../colors_and_type.css
   ========================================================================= */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }

/* ===== Layout primitives ================================================== */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container-wide { max-width: var(--container-wide); margin: 0 auto; padding: 0 var(--gutter); }

.section { padding: clamp(64px, 9vw, 128px) 0; position: relative; }
.section-tight { padding: clamp(48px, 6vw, 80px) 0; position: relative; }

.eyebrow-mark {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-sans); font-size: 11px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--sa-green);
}
.eyebrow-mark::before {
  content: ""; width: 24px; height: 1px; background: var(--sa-green);
}

/* ===== Buttons ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px;
  border-radius: var(--r-pill);
  font-family: var(--font-sans); font-size: 14px; font-weight: 500;
  letter-spacing: 0.01em;
  border: 0; cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
  text-decoration: none;
}
.btn-primary { background: var(--sa-green); color: var(--sa-cream); box-shadow: var(--shadow-green); }
.btn-primary:hover { background: var(--sa-green-700); transform: translateY(-1px); opacity: 1; }
.btn-outline { background: transparent; color: var(--sa-ink); border: 1px solid var(--border-strong); }
.btn-outline:hover { background: #fff; border-color: var(--sa-ink); opacity: 1; }
.btn-ghost { background: transparent; color: var(--sa-ink); }
.btn-ghost:hover { background: var(--sa-green-100); opacity: 1; }
.btn-on-dark { background: var(--sa-cream); color: var(--sa-green); }
.btn-on-dark:hover { background: #fff; opacity: 1; transform: translateY(-1px); }
.btn-lg { padding: 17px 34px; font-size: 15px; }

/* ===== Header ============================================================= */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 249, 249, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 48px; width: auto; }
.nav { display: flex; align-items: center; gap: 36px; }
.nav a {
  font-family: var(--font-sans); font-size: 14px; color: var(--sa-ink);
  text-decoration: none; font-weight: 400;
  transition: color var(--dur-fast) var(--ease-out);
}
.nav a:hover { color: var(--sa-green); opacity: 1; }
.nav a.active { color: var(--sa-green); font-weight: 500; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-phone {
  font-family: var(--font-mono); font-size: 13px; color: var(--fg-muted);
  letter-spacing: 0.02em;
  text-decoration: none;
}
.header-phone:hover { color: var(--sa-green); opacity: 1; }

/* ===== Hero =============================================================== */
.hero {
  position: relative;
  padding: clamp(70px, 10vw, 140px) 0 clamp(60px, 8vw, 120px);
  overflow: hidden;
}
.hero__halftone {
  position: absolute;
  top: -10%; right: -15%;
  width: 80%; max-width: 1100px;
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}
.hero__iso-watermark {
  position: absolute;
  bottom: -16%; left: -8%;
  width: 540px;
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
}
.hero__grid {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(58px, 7.4vw, 122px);
  line-height: 0.96;
  letter-spacing: -0.025em;
  color: var(--sa-ink);
  margin: 28px 0 28px;
  text-wrap: balance;
}
.hero__title em { font-style: normal; color: var(--sa-green); }
.hero__lede {
  font-family: var(--font-sans);
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.55;
  color: var(--fg-muted);
  max-width: 480px;
  margin: 0 0 36px;
}
.hero__cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

.hero__visual {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-2xl);
  overflow: hidden;
  background: linear-gradient(160deg, var(--sa-green) 0%, var(--sa-green-light) 100%);
  box-shadow: var(--shadow-lg);
}
.hero__visual::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(22,32,35,0.55) 0%, rgba(22,32,35,0.12) 40%, transparent 65%);
  z-index: 1;
}
.hero__visual::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(244,249,249,0.18), transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(22,32,35,0.18), transparent 60%);
}
.hero__visual-caption {
  position: absolute;
  left: 28px; bottom: 28px; right: 28px;
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: -0.01em;
  z-index: 2;
  line-height: 1.05;
  text-wrap: balance;
}
.hero__visual-sub {
  position: absolute;
  left: 28px; bottom: 96px;
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  z-index: 2;
  opacity: 0.85;
}
.hero__visual-sello {
  position: absolute;
  top: 24px; right: 24px;
  width: 96px;
  z-index: 2;
}

.hero__stats {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: clamp(56px, 7vw, 96px);
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.hero__stat { padding: 0 32px; border-right: 1px solid var(--border); }
.hero__stat:first-child { padding-left: 0; }
.hero__stat:last-child { border-right: none; padding-right: 0; }
.hero__stat-num {
  font-family: var(--font-display);
  font-size: clamp(32px, 3.4vw, 48px);
  line-height: 1;
  color: var(--sa-green);
  letter-spacing: -0.02em;
}
.hero__stat-lbl {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--fg-muted);
  margin-top: 8px;
  line-height: 1.35;
}

/* ===== Service cards ====================================================== */
.services { background: var(--bg-tint); }
.services__head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: clamp(40px, 5vw, 72px);
}
.services__title {
  font-family: var(--font-display);
  font-size: clamp(42px, 4.4vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--sa-ink);
  margin: 18px 0 0;
  text-wrap: balance;
}
.services__intro {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg-muted);
  max-width: 420px;
}
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 36px 32px 32px;
  display: flex; flex-direction: column; gap: 18px;
  transition: all var(--dur-base) var(--ease-out);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--sa-green-300);
}
.service-card__icon {
  width: 72px; height: 72px;
  border-radius: var(--r-pill);
  background: var(--sa-green-100);
  display: flex; align-items: center; justify-content: center;
}
.service-card__icon img { width: 40px; height: 40px; object-fit: contain; filter: brightness(0) saturate(100%) invert(31%) sepia(15%) saturate(1428%) hue-rotate(125deg) brightness(94%) contrast(86%); }
.service-card__title {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--sa-ink);
  margin: 0;
}
.service-card__desc {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.55;
  color: var(--fg-muted);
  margin: 0;
}
.service-card__more {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--sa-green);
  font-weight: 500;
  margin-top: auto;
  display: inline-flex; align-items: center; gap: 6px;
  transition: gap var(--dur-fast) var(--ease-out);
}
.service-card:hover .service-card__more { gap: 12px; }
.service-card--featured {
  background: var(--sa-green);
  color: var(--sa-cream);
  border-color: var(--sa-green);
}
.service-card--featured .service-card__title { color: var(--sa-cream); }
.service-card--featured .service-card__desc { color: var(--sa-green-light); opacity: 0.9; }
.service-card--featured .service-card__icon { background: rgba(244,249,249,0.12); }
.service-card--featured .service-card__icon img { filter: brightness(0) invert(1); }
.service-card--featured .service-card__more { color: var(--sa-green-light); }

/* ===== About / Philosophy split =========================================== */
.philosophy { position: relative; overflow: hidden; }
.philosophy__iso {
  position: absolute;
  right: -150px; top: 50%; transform: translateY(-50%);
  width: 700px;
  opacity: 0.06;
  pointer-events: none;
}
.philosophy__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1.05fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.philosophy__media {
  aspect-ratio: 4 / 5;
  border-radius: var(--r-2xl);
  background:
    radial-gradient(circle at 30% 30%, var(--sa-green-light), var(--sa-green) 90%);
  position: relative;
  overflow: hidden;
}
.philosophy__media::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(22,32,35,0.55) 0%, rgba(22,32,35,0.10) 38%, transparent 60%);
  z-index: 2;
}
.philosophy__media::after {
  content: "";
  position: absolute; inset: 0;
  background: url('../../assets/halftone-3.png') center / cover no-repeat;
  mix-blend-mode: soft-light;
  opacity: 0.6;
}
.philosophy__media-cap {
  position: absolute;
  left: 32px; bottom: 32px; right: 32px;
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1.05;
  z-index: 3;
  text-wrap: balance;
}
.philosophy__copy h2 {
  font-family: var(--font-display);
  font-size: clamp(40px, 4.2vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--sa-ink);
  margin: 18px 0 22px;
  text-wrap: balance;
}
.philosophy__copy p {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--fg);
  margin: 0 0 18px;
  max-width: 520px;
}
.philosophy__values {
  margin-top: 64px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  position: relative; z-index: 1;
}
.philosophy__value {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 18px;
  background: #fff;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
}
.philosophy__value img { width: 36px; height: 36px; flex-shrink: 0; object-fit: contain; filter: brightness(0) saturate(100%) invert(31%) sepia(15%) saturate(1428%) hue-rotate(125deg) brightness(94%) contrast(86%); }
.philosophy__value strong {
  font-family: var(--font-sans);
  font-size: 14px; font-weight: 500;
  color: var(--sa-ink);
  display: block;
}
.philosophy__value span {
  font-family: var(--font-sans);
  font-size: 12px; color: var(--fg-muted);
  line-height: 1.4;
}

/* ===== Telemedicina banner ================================================ */
.telebanner {
  background: var(--sa-ink);
  color: var(--sa-cream);
  position: relative;
  overflow: hidden;
}
.telebanner__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr 1fr;
  gap: 64px; align-items: center;
}
.telebanner h2 {
  font-family: var(--font-display);
  font-size: clamp(40px, 4.4vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--sa-cream);
  margin: 18px 0 22px;
  text-wrap: balance;
}
.telebanner p {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--sa-green-light);
  margin: 0 0 30px;
  max-width: 480px;
}
.telebanner .eyebrow-mark { color: var(--sa-green-light); }
.telebanner .eyebrow-mark::before { background: var(--sa-green-light); }
.telebanner__visual {
  position: relative;
  border-radius: var(--r-2xl);
  aspect-ratio: 5 / 4;
  background: var(--sa-green-900);
  overflow: visible;
}
.telebanner__visual-inner {
  position: absolute; inset: 0;
  border-radius: var(--r-2xl);
  overflow: hidden;
  background: var(--sa-green-900);
}
.telebanner__visual img.telebanner__photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.85) brightness(0.92);
}
.telebanner__visual-inner::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(22,32,35,0) 60%, rgba(22,32,35,0.45) 100%);
  z-index: 1;
}
.telebanner__visual-sello {
  position: absolute;
  bottom: -40px; right: -40px;
  width: 150px;
  z-index: 3;
  transform: rotate(-8deg);
  filter: drop-shadow(0 14px 28px rgba(22,32,35,0.45));
}
.telebanner__photo-tag {
  position: absolute; left: 20px; bottom: 20px;
  z-index: 2;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  background: rgba(244, 249, 249, 0.92);
  backdrop-filter: blur(8px);
  font-family: var(--font-sans); font-size: 12px;
  font-weight: 500;
  color: var(--sa-ink);
  letter-spacing: 0.02em;
}
.telebanner__photo-tag .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--sa-green);
  box-shadow: 0 0 0 4px rgba(41, 96, 91, 0.18);
}

/* ===== Testimonios ======================================================== */
.testimonios { background: #fff; }
.testimonios__head {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: end;
  margin-bottom: 56px;
}
.testimonios__head h2 {
  font-family: var(--font-display);
  font-size: clamp(40px, 4.2vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--sa-ink);
  margin: 18px 0 0;
  text-wrap: balance;
}
.testimonios__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.testimonial {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  display: flex; flex-direction: column; gap: 22px;
}
.testimonial__quote {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.25;
  color: var(--sa-ink);
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: pretty;
}
.testimonial__author {
  display: flex; align-items: center; gap: 12px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}
.testimonial__avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--sa-green-light);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 18px; color: var(--sa-green);
}
.testimonial__name {
  font-family: var(--font-sans); font-size: 14px; font-weight: 500;
  color: var(--sa-ink); display: block;
}
.testimonial__meta {
  font-family: var(--font-sans); font-size: 12px; color: var(--fg-muted);
}

/* ===== Booking panel ====================================================== */
.booking {
  background: var(--bg-tint);
  position: relative;
  overflow: hidden;
}
.booking__grid {
  display: grid; grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.booking__intro h2 {
  font-family: var(--font-display);
  font-size: clamp(40px, 4.2vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--sa-ink);
  margin: 18px 0 22px;
  text-wrap: balance;
}
.booking__intro p {
  font-family: var(--font-sans);
  font-size: 17px; line-height: 1.6;
  color: var(--fg);
  margin: 0 0 32px;
  max-width: 420px;
}
.booking__contact-block {
  display: flex; flex-direction: column; gap: 14px;
  padding: 24px 0 0;
  border-top: 1px solid var(--border);
}
.booking__contact-item {
  display: flex; gap: 16px; align-items: center;
  font-family: var(--font-sans); font-size: 14px;
  color: var(--sa-ink);
  padding: 4px 0;
}
.booking__contact-item-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: var(--r-pill);
  background: var(--sa-green);
  display: flex; align-items: center; justify-content: center;
}
.booking__contact-item-icon img {
  width: 22px; height: 22px;
  filter: brightness(0) invert(1);
}
.booking__contact-item strong { display: block; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sa-green); font-weight: 500; margin-bottom: 2px; }

.booking__form {
  background: #fff;
  border-radius: var(--r-xl);
  padding: 40px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.booking__form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.booking__form-row.one-col { grid-template-columns: 1fr; }
.booking__field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.booking__field label {
  font-family: var(--font-sans); font-size: 11px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--sa-ink);
}
.booking__field input,
.booking__field select,
.booking__field textarea {
  font-family: var(--font-sans); font-size: 15px; color: var(--sa-ink);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 13px 16px;
  outline: none;
  transition: all var(--dur-fast) var(--ease-out);
  width: 100%;
}
.booking__field input:focus,
.booking__field select:focus,
.booking__field textarea:focus {
  border-color: var(--sa-green);
  box-shadow: 0 0 0 3px rgba(41, 96, 91, 0.12);
  background: #fff;
}
.booking__pills { display: flex; gap: 8px; flex-wrap: wrap; }
.booking__pill {
  padding: 8px 16px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: var(--bg);
  font-family: var(--font-sans); font-size: 13px;
  color: var(--sa-ink); cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
}
.booking__pill.active {
  background: var(--sa-green);
  color: var(--sa-cream);
  border-color: var(--sa-green);
}
.booking__pill:hover:not(.active) {
  border-color: var(--sa-green);
  color: var(--sa-green);
}

.booking__success {
  text-align: center;
  padding: 40px 20px;
}
.booking__success-iso { width: 80px; margin: 0 auto 20px; }
.booking__success h3 { font-family: var(--font-display); font-size: 32px; color: var(--sa-ink); letter-spacing: -0.02em; margin: 0 0 12px; line-height: 1.1; }
.booking__success p { font-family: var(--font-sans); font-size: 15px; color: var(--fg-muted); margin: 0 0 24px; }

/* ===== Footer ============================================================= */
.site-footer {
  background: var(--sa-ink);
  color: var(--sa-cream);
  padding: 80px 0 28px;
  position: relative; overflow: hidden;
}
.site-footer__halftone {
  position: absolute;
  bottom: -20%; right: -10%;
  width: 60%;
  opacity: 0.1;
  filter: brightness(2);
  pointer-events: none;
}
.site-footer__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(244, 249, 249, 0.1);
}
.site-footer__brand img { height: 56px; filter: brightness(0) invert(1) opacity(0.95); }
.site-footer__brand p {
  font-family: var(--font-sans); font-size: 14px;
  color: var(--sa-green-light);
  opacity: 0.8;
  margin: 22px 0 0;
  line-height: 1.6;
  max-width: 320px;
}
.site-footer h4 {
  font-family: var(--font-sans); font-size: 11px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--sa-green-light);
  margin: 0 0 22px;
  opacity: 0.7;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.site-footer a {
  color: var(--sa-cream);
  text-decoration: none;
  font-family: var(--font-sans); font-size: 14px;
  opacity: 0.85;
  transition: opacity var(--dur-fast) var(--ease-out);
}
.site-footer a:hover { opacity: 1; }
.site-footer__bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 28px;
  font-family: var(--font-sans); font-size: 12px;
  color: var(--sa-green-light); opacity: 0.6;
}
.site-footer__bottom-right { display: flex; gap: 24px; }

/* ===== Responsive ========================================================= */
@media (max-width: 960px) {
  .nav, .header-phone { display: none; }
  .hero__grid,
  .services__grid,
  .services__head,
  .philosophy__grid,
  .telebanner__grid,
  .testimonios__grid,
  .testimonios__head,
  .booking__grid,
  .booking__form-row,
  .site-footer__grid,
  .hero__stats {
    grid-template-columns: 1fr;
  }
  .hero__stats { gap: 24px; }
  .hero__stat { border-right: none; border-bottom: 1px solid var(--border); padding-bottom: 16px; }
  .philosophy__values { grid-template-columns: 1fr 1fr; }
}
