/* Dr. Alexis Mora Lagos — clinical teal / soft blue, mobile-first */

:root {
  --teal-900: #0a4f52;
  --teal-800: #0d7377;
  --teal-700: #14919b;
  --teal-600: #1aadb8;
  --teal-100: #e6f6f7;
  --teal-50: #f2fbfb;
  --blue-soft: #e8f1f8;
  --ink: #1a2b2c;
  --ink-muted: #4a5c5e;
  --ink-faint: #6b7d7f;
  --white: #ffffff;
  --border: #d4e5e6;
  --whatsapp: #128c7e;
  --whatsapp-hover: #0e6f64;
  --shadow: 0 8px 30px rgba(10, 79, 82, 0.08);
  --shadow-lg: 0 16px 48px rgba(10, 79, 82, 0.12);
  --radius: 14px;
  --radius-sm: 10px;
  --font: "DM Sans", system-ui, -apple-system, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --header-h: 4.25rem;
  --focus: 0 0 0 3px rgba(26, 173, 184, 0.45);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--teal-800);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--teal-900);
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: 4px;
}

.btn:focus-visible,
.nav a:focus-visible,
.brand:focus-visible,
.nav-toggle:focus-visible {
  border-radius: var(--radius-sm);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 1000;
  background: var(--teal-800);
  color: var(--white);
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
  color: var(--white);
  box-shadow: var(--focus);
}

.container {
  width: min(1100px, 100% - 2rem);
  margin-inline: auto;
}

.container.narrow {
  width: min(720px, 100% - 2rem);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
  margin-right: auto;
}

.brand:hover {
  color: inherit;
}

.brand-mark {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--teal-700), var(--teal-900));
  color: var(--white);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  border-radius: 10px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  min-width: 0;
}

.brand-text strong {
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-text span {
  font-size: 0.72rem;
  color: var(--ink-faint);
  white-space: nowrap;
}

.nav {
  display: none;
  gap: 1.25rem;
}

.nav a {
  text-decoration: none;
  color: var(--ink-muted);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav a:hover {
  color: var(--teal-800);
}

.btn-header {
  display: none;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--teal-900);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 899px) {
  .nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.25rem 1.25rem;
    gap: 0.25rem;
    box-shadow: var(--shadow);
  }

  .nav.is-open a {
    padding: 0.75rem 0.5rem;
    border-radius: var(--radius-sm);
  }

  .nav.is-open a:hover {
    background: var(--teal-50);
  }
}

@media (min-width: 900px) {
  .nav {
    display: flex;
  }

  .btn-header {
    display: inline-flex;
  }

  .nav-toggle {
    display: none;
  }

  .brand-text strong {
    font-size: 1rem;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.15rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}

.btn:hover {
  text-decoration: none;
}

.btn-lg {
  padding: 0.9rem 1.4rem;
  font-size: 1.05rem;
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: var(--white);
}

.btn-whatsapp:hover {
  background: var(--whatsapp-hover);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--teal-800);
  border-color: var(--border);
}

.btn-ghost:hover {
  background: var(--teal-50);
  color: var(--teal-900);
  border-color: var(--teal-600);
}

.btn-outline {
  background: var(--white);
  color: var(--teal-800);
  border-color: var(--teal-700);
}

.btn-outline:hover {
  background: var(--teal-50);
  color: var(--teal-900);
}

.icon {
  flex-shrink: 0;
}

/* Hero */
.hero {
  position: relative;
  padding: 2.5rem 0 3.5rem;
  background:
    radial-gradient(ellipse 80% 60% at 10% 0%, rgba(26, 173, 184, 0.12), transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 20%, rgba(232, 241, 248, 0.9), transparent 50%),
    linear-gradient(180deg, var(--teal-50) 0%, var(--white) 100%);
}

.hero-grid {
  display: grid;
  gap: 2rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--teal-700);
}

.hero h1 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--teal-900);
}

.hero-specialty {
  margin: 0 0 1rem;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--teal-800);
}

.hero-lead {
  margin: 0 0 1.75rem;
  font-size: 1.1rem;
  color: var(--ink-muted);
  max-width: 36em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.hero-phone {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-faint);
  font-weight: 500;
}

.hero-card {
  align-self: start;
}

.hero-card-inner {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  box-shadow: var(--shadow);
}

.hero-card-label {
  margin: 0 0 0.25rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--teal-700);
}

.hero-card-place {
  margin: 0 0 1rem;
  font-weight: 600;
  color: var(--ink);
}

.hero-card-list {
  margin: 0 0 1.25rem;
  padding: 0 0 0 1.15rem;
  color: var(--ink-muted);
}

.hero-card-list li {
  margin-bottom: 0.35rem;
}

.hero-card-note {
  margin: 0;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--ink-faint);
}

@media (min-width: 800px) {
  .hero {
    padding: 4rem 0 5rem;
  }

  .hero-grid {
    grid-template-columns: 1.35fr 0.9fr;
    align-items: center;
    gap: 3rem;
  }
}

/* Sections */
.section {
  padding: 3.5rem 0;
}

.section-alt {
  background: linear-gradient(180deg, var(--blue-soft) 0%, var(--teal-50) 100%);
}

.section-label {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal-700);
}

.section h2 {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.15rem);
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--teal-900);
}

.section-intro {
  margin: -0.5rem 0 2rem;
  max-width: 40em;
  color: var(--ink-muted);
}

.prose p {
  margin: 0 0 1.1rem;
  color: var(--ink-muted);
  font-size: 1.08rem;
}

.prose p:last-child {
  margin-bottom: 0;
}

/* Cards */
.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 700px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem;
  box-shadow: var(--shadow);
}

.card-icon {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  background: var(--teal-100);
  color: var(--teal-800);
  border-radius: 12px;
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--teal-900);
}

.card p {
  margin: 0;
  font-size: 0.98rem;
  color: var(--ink-muted);
}

/* Steps */
.steps {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

.step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.15rem 1.2rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.step-num {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  background: var(--teal-800);
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 50%;
}

.step h3 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
  color: var(--teal-900);
}

.step p {
  margin: 0;
  font-size: 0.98rem;
  color: var(--ink-muted);
}

.cta-banner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.5rem;
  background: linear-gradient(135deg, var(--teal-800), var(--teal-900));
  color: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.cta-banner-title {
  margin: 0 0 0.25rem;
  font-size: 1.2rem;
  font-weight: 700;
}

.cta-banner-sub {
  margin: 0;
  opacity: 0.9;
  font-size: 0.95rem;
}

.cta-banner .btn-whatsapp {
  background: var(--white);
  color: var(--whatsapp);
}

.cta-banner .btn-whatsapp:hover {
  background: var(--teal-50);
  color: var(--whatsapp-hover);
}

@media (min-width: 560px) {
  .cta-banner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* Contact */
.contact-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 700px) {
  .contact-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.contact-block {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem;
  box-shadow: var(--shadow);
}

.contact-block h3 {
  margin: 0 0 0.65rem;
  font-size: 1.1rem;
  color: var(--teal-900);
}

.contact-block p {
  margin: 0 0 1.15rem;
  font-size: 0.98rem;
  color: var(--ink-muted);
}

.social-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.social-list a {
  font-weight: 600;
  text-decoration: none;
}

.social-list a:hover {
  text-decoration: underline;
}

/* Footer */
.site-footer {
  background: var(--teal-900);
  color: rgba(255, 255, 255, 0.88);
  padding: 2.5rem 0 2rem;
}

.footer-inner {
  display: grid;
  gap: 1.25rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.footer-brand strong {
  font-size: 1.05rem;
  color: var(--white);
}

.footer-brand span {
  font-size: 0.9rem;
  opacity: 0.8;
}

.footer-disclaimer {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  max-width: 48em;
  opacity: 0.9;
}

.footer-disclaimer a {
  color: #a8e6e8;
  font-weight: 700;
}

.footer-disclaimer a:hover {
  color: var(--white);
}

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.footer-socials a {
  color: #a8e6e8;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
}

.footer-socials a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-copy {
  margin: 0.5rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.85rem;
  opacity: 0.7;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
