/* DenTalent — clinical, airy, non-generic */

:root {
  --den-deep: #0d7a8c;
  --den-deep-2: #0a5f6e;
  --den-mint: #3ec9b8;
  --den-mint-soft: #e8f7f5;
  --den-sky: #c5e8f0;
  /* Azul profundo / marino — lentes y ambiente clínico (referencia foto doctor) */
  --nav-navy-900: #060d18;
  --nav-navy-800: #0c1829;
  --nav-navy-700: #122338;
  --clinical-blue: #5b8ec4;
  --white: #ffffff;
  --paper: #f7fbfc;
  --ink: #14232a;
  --ink-muted: #4a5c65;
  --line: rgba(13, 122, 140, 0.12);
  --shadow: 0 18px 50px rgba(13, 122, 140, 0.08);
  --shadow-soft: 0 8px 30px rgba(20, 35, 42, 0.06);
  --radius-lg: 24px;
  --radius-md: 14px;
  --radius-pill: 999px;
  --font: "Plus Jakarta Sans", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 72px;
  --nav-break: 960px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* Evita que los anclajes (#servicios, etc.) queden tapados bajo el header fijo */
  scroll-padding-top: var(--header-h);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--den-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--den-deep-2);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--nav-navy-800);
  color: var(--white);
  border-radius: var(--radius-md);
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* --- Layout --- */
.shell {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

/* --- Header (barra marino profundo — coherente con bata / lentes en foto) --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: linear-gradient(180deg, var(--nav-navy-800) 0%, var(--nav-navy-900) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: box-shadow 0.35s var(--ease);
}

.site-header.is-scrolled {
  box-shadow: 0 12px 40px rgba(6, 13, 24, 0.45);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
  padding-block: 0.5rem;
  padding-inline: max(0px, env(safe-area-inset-left)) max(0px, env(safe-area-inset-right));
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
  padding: 0.4rem 0.85rem;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow:
    0 4px 0 rgba(0, 0, 0, 0.12),
    0 10px 28px rgba(0, 0, 0, 0.22);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.brand:hover {
  transform: translateY(-1px);
  box-shadow:
    0 4px 0 rgba(0, 0, 0, 0.14),
    0 14px 34px rgba(0, 0, 0, 0.28);
}

.brand img {
  display: block;
  height: clamp(44px, 5.2vw, 54px);
  width: auto;
  max-width: min(260px, 52vw);
  object-fit: contain;
  object-position: left center;
}

/* Escritorio: una sola fila — enlaces + CTAs alineados */
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
  min-width: 0;
}

.nav-cluster {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: clamp(0.75rem, 2vw, 1.75rem);
  width: 100%;
}

.nav-list {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.25rem clamp(0.5rem, 1.2vw, 1.1rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  text-decoration: none;
  font-weight: 500;
  font-size: clamp(0.82rem, 1.1vw, 0.93rem);
  color: rgba(255, 255, 255, 0.72);
  padding: 0.5rem 0.35rem;
  position: relative;
  white-space: nowrap;
  transition: color 0.25s var(--ease);
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.15rem;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--clinical-blue), var(--den-mint));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
  border-radius: 2px;
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
  color: rgba(255, 255, 255, 0.98);
}

.nav-list a:hover::after,
.nav-list a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-cta {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 0.5rem;
}

.nav-cta .btn {
  padding: 0.58rem 1.1rem;
  font-size: 0.86rem;
}

@media (min-width: 960px) and (max-width: 1040px) {
  .nav-list a {
    font-size: 0.78rem;
  }
  .nav-cluster {
    gap: 0.65rem 1rem;
  }
}

/* Botones sobre barra oscura */
.btn-nav-outline {
  background: transparent;
  color: rgba(255, 255, 255, 0.95);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  box-shadow: none;
}

.btn-nav-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.55);
}

.btn-wa--compact {
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
}

/* Hamburguesa — solo móvil */
.nav-toggle {
  display: none;
  position: relative;
  z-index: 210;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  cursor: pointer;
  color: #fff;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.35);
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--den-mint);
  outline-offset: 3px;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  position: absolute;
  left: 50%;
  margin-left: -11px;
  transition: transform 0.35s var(--ease), opacity 0.25s var(--ease);
}

.nav-toggle-bar:nth-child(1) {
  top: 17px;
}

.nav-toggle-bar:nth-child(2) {
  top: 23px;
}

.nav-toggle-bar:nth-child(3) {
  top: 29px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 180;
  background: rgba(6, 13, 24, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
}

.nav-backdrop.is-visible {
  opacity: 1;
  pointer-events: auto;
}

body.nav-open {
  overflow: hidden;
  touch-action: none;
}

@media (max-width: 959px) {
  :root {
    --header-h: 64px;
  }

  .brand img {
    height: clamp(40px, 11vw, 48px);
    max-width: min(220px, 58vw);
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-backdrop {
    display: block;
  }

  .nav-wrap {
    position: fixed;
    z-index: 190;
    top: var(--header-h);
    right: 0;
    bottom: 0;
    left: auto;
    width: min(100%, 400px);
    max-width: 100%;
    background: linear-gradient(180deg, var(--nav-navy-700) 0%, var(--nav-navy-900) 100%);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: -16px 0 48px rgba(0, 0, 0, 0.35);
    padding: 1.25rem max(1.25rem, env(safe-area-inset-right)) max(2rem, env(safe-area-inset-bottom))
      max(1.25rem, env(safe-area-inset-left));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateX(100%);
    opacity: 0.98;
    visibility: hidden;
    transition: transform 0.4s var(--ease), visibility 0.4s;
  }

  .nav-wrap.is-open {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-cluster {
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
    width: 100%;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    width: 100%;
  }

  .nav-list li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-list a {
    display: block;
    padding: 1rem 0.25rem;
    font-size: 1.05rem;
    white-space: normal;
  }

  .nav-list a::after {
    left: 0;
    bottom: 0.65rem;
    width: 48px;
  }

  .nav-cta {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding-top: 0.5rem;
  }

  .nav-cta .btn {
    width: 100%;
    justify-content: center;
    padding: 0.85rem 1.25rem;
    font-size: 0.95rem;
    min-height: 48px;
  }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.72rem 1.35rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.92rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background 0.25s var(--ease);
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, var(--den-mint) 0%, var(--den-deep) 100%);
  color: var(--white);
  box-shadow: 0 10px 28px rgba(13, 122, 140, 0.28);
}

.btn-primary:hover {
  box-shadow: 0 14px 36px rgba(13, 122, 140, 0.35);
}

.btn-ghost {
  background: var(--white);
  color: var(--den-deep);
  border: 1.5px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.btn-ghost:hover {
  border-color: rgba(13, 122, 140, 0.35);
}

.btn-wa {
  background: #25d366;
  color: #fff;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
}

.btn-wa:hover {
  filter: brightness(1.05);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.4);
}

.btn-wa svg {
  flex-shrink: 0;
}

/* --- Hero --- */
.hero {
  position: relative;
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 8vw, 6rem);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 85% 15%, rgba(62, 201, 184, 0.14), transparent 55%),
    radial-gradient(ellipse 50% 45% at 10% 80%, rgba(13, 122, 140, 0.08), transparent 50%),
    linear-gradient(180deg, var(--paper) 0%, var(--white) 45%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--den-deep);
  margin-bottom: 1rem;
}

.hero-kicker span {
  width: 28px;
  height: 2px;
  background: linear-gradient(90deg, var(--den-mint), var(--den-deep));
  border-radius: 2px;
}

.hero h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.15rem);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  color: var(--ink);
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--den-deep), var(--den-mint));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  font-size: 1.1rem;
  color: var(--ink-muted);
  max-width: 34ch;
  margin: 0 0 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--line);
}

.hero-meta div strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--den-deep);
  letter-spacing: -0.02em;
}

.hero-meta div span {
  font-size: 0.88rem;
  color: var(--ink-muted);
}

.hero-visual {
  position: relative;
  justify-self: end;
}

@media (max-width: 900px) {
  .hero-visual {
    justify-self: center;
    max-width: 420px;
  }
}

.hero-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--white);
}

.hero-frame::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(135deg, var(--den-mint), var(--den-deep));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.65;
}

.hero-blob {
  position: absolute;
  width: 120%;
  height: 120%;
  top: -10%;
  left: -10%;
  background: radial-gradient(circle at 40% 40%, rgba(62, 201, 184, 0.2), transparent 55%);
  z-index: -1;
  animation: blob-float 14s ease-in-out infinite;
}

@keyframes blob-float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(3%, -2%) scale(1.03);
  }
}

.floating-badge {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  right: auto;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  font-size: 0.85rem;
  max-width: 220px;
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.floating-badge strong {
  display: block;
  color: var(--den-deep);
  font-size: 0.95rem;
}

/* --- Sections --- */
.section {
  padding: clamp(3rem, 7vw, 5.5rem) 0;
}

.section-head {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  max-width: 640px;
}

.section-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--den-mint);
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.section-head p {
  margin: 0;
  color: var(--ink-muted);
}

/* Services */
.services {
  background: var(--white);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 820px) {
  .service-grid {
    grid-template-columns: 1fr;
  }
}

.service-card {
  padding: 1.75rem 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--white), var(--paper));
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.35s var(--ease);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(62, 201, 184, 0.35);
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  background: linear-gradient(145deg, var(--den-mint-soft), var(--white));
  color: var(--den-deep);
  font-size: 1.35rem;
}

.service-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

.service-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-muted);
}

/* About / timeline */
.about {
  background: linear-gradient(180deg, var(--paper) 0%, var(--white) 100%);
  position: relative;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  grid-template-rows: auto 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}

.about-intro {
  grid-column: 2;
  grid-row: 1;
}

.about-photo-wrap {
  grid-column: 1;
  grid-row: 1 / -1;
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}

.about-timeline {
  grid-column: 2;
  grid-row: 2;
}

.about-intro.section-head {
  margin-bottom: 0;
}

.about-intro .about-subtitle {
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.45;
}

.about-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

/* Móvil: texto primero (fondo claro), luego foto, luego trayectoria — sin sticky */
@media (max-width: 900px) {
  .about {
    padding-bottom: clamp(2.5rem, 8vw, 4rem);
  }

  .about-grid {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
  }

  .about-intro {
    order: 1;
    text-align: left;
  }

  .about-photo-wrap {
    order: 2;
    position: static;
    grid-column: unset;
    grid-row: unset;
    width: 100%;
    max-width: 18rem;
    margin-inline: auto;
  }

  .about-timeline {
    order: 3;
    grid-column: unset;
    grid-row: unset;
    width: 100%;
    padding-bottom: 0.5rem;
  }

  .about .section-head p {
    max-width: none;
  }
}

@media (max-width: 600px) {
  .cred-item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding: 1.1rem 1.15rem;
  }

  .cred-year {
    min-width: 0;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
  }

  .cred-item h3 {
    font-size: 1rem;
    line-height: 1.35;
  }

  .about .quote {
    margin-top: 1.5rem;
    padding: 1.25rem 1.35rem;
    font-size: 0.95rem;
  }
}

.cred-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1rem;
}

.cred-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1.25rem 1.35rem;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  transition: border-color 0.3s var(--ease);
}

.cred-item:hover {
  border-color: rgba(13, 122, 140, 0.25);
}

.cred-year {
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--den-deep);
  letter-spacing: 0.06em;
  min-width: 3.5rem;
}

.cred-item h3 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
}

.cred-item p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-muted);
}

.quote {
  margin-top: 2rem;
  padding: 1.5rem 1.75rem;
  border-left: 4px solid var(--den-mint);
  background: rgba(62, 201, 184, 0.06);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--ink-muted);
}

.quote cite {
  display: block;
  margin-top: 0.75rem;
  font-style: normal;
  font-weight: 600;
  color: var(--den-deep);
  font-size: 0.9rem;
}

/* Location */
.location {
  background: var(--white);
}

.location-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2rem;
  align-items: stretch;
}

@media (max-width: 880px) {
  .location-grid {
    grid-template-columns: 1fr;
  }
}

.map-embed {
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 320px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  background: var(--paper);
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
  display: block;
}

.info-card {
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--white), var(--den-mint-soft));
}

.info-card h3 {
  margin: 0 0 1rem;
  font-size: 1.2rem;
}

.info-rows {
  display: grid;
  gap: 1rem;
}

.info-row {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.info-row svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--den-deep);
}

.info-row div strong {
  display: block;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  margin-bottom: 0.2rem;
}

.info-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.5rem;
}

.hours {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
  color: var(--ink-muted);
}

.hours dl {
  margin: 0;
  display: grid;
  gap: 0.35rem;
}

.hours dt {
  font-weight: 600;
  color: var(--ink);
}

/* CTA band */
.cta-band {
  padding: clamp(2.5rem, 6vw, 4rem) 0;
  background: linear-gradient(120deg, var(--den-deep) 0%, #0a5c6a 50%, var(--den-mint) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
  pointer-events: none;
}

.cta-inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.cta-inner h2 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.cta-inner p {
  margin: 0;
  opacity: 0.92;
  max-width: 46ch;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.cta-band .btn-primary {
  background: var(--white);
  color: var(--den-deep);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.cta-band .btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}

.cta-band .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Footer */
.site-footer {
  padding: 1.5rem 0 max(2.25rem, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: var(--paper);
}

@media (max-width: 768px) {
  .site-footer {
    padding-bottom: max(3.25rem, calc(env(safe-area-inset-bottom) + 2.5rem));
  }
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.5rem clamp(1.25rem, 3vw, 2rem);
  margin-bottom: 1.35rem;
  align-items: start;
}

@media (max-width: 780px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}

.footer-brand img {
  height: 40px;
  width: auto;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-muted);
  max-width: 32ch;
}

.footer-col h4 {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--den-deep);
}

.footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.4rem;
}

.footer-col a {
  text-decoration: none;
  color: var(--ink-muted);
  font-size: 0.95rem;
  transition: color 0.2s var(--ease);
}

.footer-col a:hover {
  color: var(--den-deep);
}

.footer-bottom {
  padding-top: 1.125rem;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--ink-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  justify-content: space-between;
  align-items: baseline;
}

/* Contact page */
.page-hero {
  padding: clamp(2.5rem, 6vw, 3.5rem) 0 clamp(1rem, 3vw, 1.5rem);
  background: linear-gradient(180deg, var(--paper), var(--white));
}

.page-hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(2rem, 4vw, 2.75rem);
  letter-spacing: -0.03em;
}

.page-hero p {
  margin: 0;
  color: var(--ink-muted);
  max-width: 52ch;
}

.contact-main-section {
  padding: 0 0 clamp(2rem, 5vw, 3rem);
  background: var(--white);
}

.contact-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 2.5rem);
  align-items: start;
}

@media (max-width: 900px) {
  .contact-main-grid {
    grid-template-columns: 1fr;
  }
}

.contact-channel-stack {
  display: grid;
  gap: 1.25rem;
}

/* Contacto — sin formulario: teléfono, WhatsApp, Tek Capital */
.contact-page-intro .contact-intro-text {
  max-width: 40rem;
  font-size: 1.08rem;
  line-height: 1.7;
}

.contact-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.65rem;
  margin-top: 1.5rem;
}

.contact-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--nav-navy-800);
  background: rgba(13, 122, 140, 0.08);
  border: 1px solid rgba(13, 122, 140, 0.15);
  border-radius: var(--radius-pill);
}

.phone-showcase {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(145deg, var(--nav-navy-800) 0%, var(--nav-navy-900) 100%);
  color: #fff;
  box-shadow: 0 24px 60px rgba(6, 13, 24, 0.35);
}

.phone-showcase::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 70% at 20% 20%, rgba(91, 142, 196, 0.25), transparent 55%);
  pointer-events: none;
}

.phone-showcase-inner {
  position: relative;
  padding: clamp(2rem, 5vw, 2.75rem);
  text-align: center;
}

.phone-showcase-icon {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.phone-showcase-kicker {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.phone-showcase-number {
  display: block;
  margin: 0 auto 0.75rem;
  font-size: clamp(1.85rem, 5vw, 2.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #fff;
  text-decoration: none;
  transition: color 0.2s var(--ease), transform 0.2s var(--ease);
}

.phone-showcase-number:hover {
  color: var(--clinical-blue);
}

.phone-showcase-hint {
  margin: 0 0 1.5rem;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.62);
  max-width: 22rem;
  margin-inline: auto;
}

.btn-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 280px;
  margin-inline: auto;
  padding: 0.95rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  background: #fff;
  color: var(--nav-navy-900);
  text-decoration: none;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.btn-phone:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.3);
  color: var(--nav-navy-900);
}

.contact-channel-card {
  padding: 1.5rem 1.5rem 1.6rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.contact-channel-card--muted {
  background: linear-gradient(180deg, var(--white), var(--paper));
}

.contact-channel-head {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.15rem;
}

.contact-channel-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
}

.contact-channel-icon.wa {
  background: rgba(37, 211, 102, 0.12);
  color: #128c7e;
}

.contact-channel-icon.phone {
  background: rgba(13, 122, 140, 0.12);
  color: #0d7a8c;
}

.contact-channel-icon.map {
  background: rgba(91, 142, 196, 0.14);
  color: var(--nav-navy-800);
}

.contact-channel-title {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  font-weight: 700;
}

.contact-channel-title--sm {
  font-size: 1.05rem;
}

.contact-channel-desc {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-muted);
  line-height: 1.55;
}

.contact-wa-full {
  width: 100%;
  justify-content: center;
  min-height: 48px;
}

.contact-map-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.contact-map-actions .btn {
  flex: 1 1 auto;
  min-width: min(100%, 140px);
  justify-content: center;
}

/* Tek Capital — crédito mínimo; bloque clicable → tek.capital, hover visual solo en el nombre */
a.powered-by-tek {
  margin: 0;
  padding: clamp(2.25rem, 6vw, 3.5rem) 0 clamp(1rem, 2.5vw, 1.5rem);
  background: var(--paper);
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  border-radius: 2px;
}

a.powered-by-tek,
a.powered-by-tek:visited {
  color: inherit;
}

a.powered-by-tek:hover .powered-by-title,
a.powered-by-tek:focus-visible .powered-by-title {
  color: var(--den-deep);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.28em;
  text-decoration-color: rgba(13, 122, 140, 0.55);
}

a.powered-by-tek:focus-visible {
  outline: 2px solid rgba(13, 122, 140, 0.45);
  outline-offset: 4px;
}

.powered-by-inner {
  max-width: 16.5rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.powered-by-line {
  width: 2rem;
  height: 1px;
  margin: 0 0 1.25rem;
  background: rgba(20, 35, 42, 0.18);
  border: none;
}

.powered-by-kicker {
  margin: 0 0 1.25rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: #64748b;
}

.powered-by-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.powered-by-logo {
  height: clamp(38px, 7vw, 46px);
  width: auto;
  display: block;
}

.powered-by-text {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 18rem;
}

.powered-by-title {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  transition: color 0.2s var(--ease), text-decoration-color 0.2s var(--ease);
}

.powered-by-desc {
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.65;
  letter-spacing: 0.01em;
  color: var(--ink-muted);
}

.form-card {
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.form-group {
  margin-bottom: 1.15rem;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--ink);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  font: inherit;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: rgba(13, 122, 140, 0.45);
  box-shadow: 0 0 0 3px rgba(62, 201, 184, 0.2);
}

.form-note {
  font-size: 0.85rem;
  color: var(--ink-muted);
  margin-top: 1rem;
}

.side-stack {
  display: grid;
  gap: 1.25rem;
}

.mini-card {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--paper);
}

.mini-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
}

/* Reveal animation (solo si hay JS: evita contenido oculto sin script) */
html.reveal-js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.85s var(--ease);
}

html.reveal-js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger-1 {
  transition-delay: 0.08s;
}
.stagger-2 {
  transition-delay: 0.14s;
}
.stagger-3 {
  transition-delay: 0.2s;
}

/* FAB WhatsApp */
.wa-fab {
  position: fixed;
  right: max(1.25rem, env(safe-area-inset-right));
  bottom: max(1.25rem, env(safe-area-inset-bottom));
  z-index: 250;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.45);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.wa-fab:hover {
  transform: scale(1.06);
  box-shadow: 0 16px 40px rgba(37, 211, 102, 0.5);
}

.wa-fab:focus-visible {
  outline: 3px solid rgba(62, 201, 184, 0.6);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

#canales-contacto {
  scroll-margin-top: calc(var(--header-h) + 0.75rem);
}

