:root {
  /* Base clara */
  --bg: #fbfbfd;
  --bg-2: #f4f7fb;
  --text: #121826;
  --muted: #5b6472;

  /* Dorado sutil para contornos */
  --gold: rgba(193, 161, 88, 0.55);
  --gold-strong: rgba(193, 161, 88, 0.85);

  /* Acento suave (no rosa fuerte) */
  --accent: #2b6cb0;
  --accent-soft: rgba(43, 108, 176, 0.12);

  --card: rgba(255, 255, 255, 0.82);
  --border: rgba(18, 24, 38, 0.1);
  --shadow: 0 18px 40px rgba(17, 24, 39, 0.08);

  --radius: 18px;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--text);
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial,
    sans-serif;
  background:
    radial-gradient(
      900px 450px at 15% 10%,
      rgba(193, 161, 88, 0.1),
      transparent 60%
    ),
    radial-gradient(
      900px 520px at 80% 20%,
      rgba(43, 108, 176, 0.1),
      transparent 60%
    ),
    linear-gradient(180deg, var(--bg), var(--bg-2));
}

a {
  color: inherit;
  text-decoration: none;
}
.container {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

h1,
h2 {
  font-family: "Playfair Display", serif;
  letter-spacing: -0.3px;
}

.muted {
  color: var(--muted);
}
.accent {
  color: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--gold);
  background: rgba(255, 255, 255, 0.72);
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease,
    border-color 0.15s ease;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(17, 24, 39, 0.1);
  border-color: var(--gold-strong);
}
.btn:active {
  transform: translateY(0px);
}

.btn--primary {
  border: 1px solid rgba(43, 108, 176, 0.25);
  background: linear-gradient(
    180deg,
    rgba(43, 108, 176, 0.95),
    rgba(43, 108, 176, 0.82)
  );
  color: #fff;
}
.btn--ghost {
  background: rgba(255, 255, 255, 0.78);
}
.btn--full {
  width: 100%;
  border-radius: 14px;
}

/* .note{ */
/*   margin:.75rem 0 0 0; */
/*   color: var(--muted); */
/*   font-size: .92rem; */
/* } */

.divider {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(193, 161, 88, 0.45),
    transparent
  );
  margin: 1.1rem 0;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.95rem 0;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.brand__mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: var(--text);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--gold);
  box-shadow: 0 12px 24px rgba(193, 161, 88, 0.12);
}

.brand__mark svg {
  width: 28px;
  height: 28px;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.brand__text small {
  color: var(--muted);
  font-weight: 700;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.nav a {
  color: var(--muted);
  font-weight: 700;
  padding: 0.5rem 0.7rem;
  border-radius: 999px;
}

.nav a.btn {
  color: #fff;
}

.nav a:hover {
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  border: 1px solid rgba(193, 161, 88, 0.25);
}

/* Hero */
.hero {
  position: relative;
  padding: 3.2rem 0 2.6rem;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: -60px;
  background:
    radial-gradient(
      600px 220px at 20% 10%,
      rgba(193, 161, 88, 0.12),
      transparent 60%
    ),
    radial-gradient(
      700px 260px at 78% 22%,
      rgba(43, 108, 176, 0.12),
      transparent 60%
    );
  pointer-events: none;
}
.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.6rem;
  align-items: start;
}
.chip {
  display: inline-flex;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(193, 161, 88, 0.35);
  color: var(--muted);
  margin: 0 0 1rem 0;
  width: fit-content;
}
.hero h1 {
  margin: 0 0 0.9rem 0;
  font-size: clamp(2rem, 3.4vw, 3.15rem);
  line-height: 1.08;
}
.lead {
  margin: 0 0 1.2rem 0;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 62ch;
}
.hero__actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.hero__highlights {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.highlight {
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(193, 161, 88, 0.3);
  color: var(--muted);
  font-weight: 600;
}

/* Cards */
.card {
  background: var(--card);
  border: 1px solid rgba(193, 161, 88, 0.4);
  border-radius: var(--radius);
  padding: 1.2rem;
  box-shadow: var(--shadow);
}
.card h2 {
  margin: 0 0 0.7rem 0;
  font-size: 1.45rem;
}

.list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0.85rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(18, 24, 38, 0.08);
}
.list span {
  color: var(--muted);
}

/* Sections */
.section {
  padding: 3rem 0;
}
.section--alt {
  background: rgba(255, 255, 255, 0.6);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section__head {
  text-align: center;
  margin-bottom: 1.4rem;
}
.section__head--left {
  text-align: left;
}
.section__head h2 {
  margin: 0 0 0.45rem 0;
  font-size: clamp(1.7rem, 2.4vw, 2.1rem);
}
.section__head p {
  margin: 0 auto;
  max-width: 74ch;
  color: var(--muted);
}

/* Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.service {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(193, 161, 88, 0.28);
  border-radius: var(--radius);
  padding: 1.2rem;
  box-shadow: 0 12px 26px rgba(17, 24, 39, 0.06);
}
.service__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}

.service__header h3 {
  margin: 0;
  font-size: 1.05rem;
}

.service__icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.1rem;

  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(193, 161, 88, 0.45);
  box-shadow: 0 8px 16px rgba(193, 161, 88, 0.1);
}
.service p {
  margin: 0;
  color: var(--muted);
}

/* Team */
.team {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.person {
  display: flex;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(193, 161, 88, 0.28);
  border-radius: var(--radius);
  padding: 1.2rem;
  box-shadow: 0 12px 26px rgba(17, 24, 39, 0.06);
}
.avatar {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: var(--text);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(193, 161, 88, 0.55);
}

/* Contact */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  align-items: start;
}
.contact__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin-top: 1rem;
}
.info {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(193, 161, 88, 0.25);
  border-radius: 16px;
  padding: 1rem;
}
.info h3 {
  margin: 0 0 0.35rem 0;
}

.form {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(193, 161, 88, 0.35);
  border-radius: var(--radius);
  padding: 1.2rem;
  box-shadow: var(--shadow);
}
label {
  display: block;
  font-weight: 700;
  margin: 0 0 0.9rem 0;
}
input,
select,
textarea {
  width: 100%;
  margin-top: 0.45rem;
  padding: 0.85rem 0.9rem;
  border-radius: 14px;
  border: 1px solid rgba(18, 24, 38, 0.1);
  background: rgba(255, 255, 255, 0.98);
  color: var(--text);
  outline: none;
}
input::placeholder,
textarea::placeholder {
  color: #98a2b3;
}
input:focus,
select:focus,
textarea:focus {
  border-color: rgba(193, 161, 88, 0.6);
  box-shadow: 0 0 0 4px rgba(193, 161, 88, 0.14);
}

/* Footer */
.footer {
  padding: 1.2rem 0;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.65);
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
}
.footer__links {
  display: flex;
  gap: 0.8rem;
}
.footer__links a:hover {
  color: var(--text);
}

/* Responsive */
@media (max-width: 980px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .team {
    grid-template-columns: 1fr;
  }
  .contact {
    grid-template-columns: 1fr;
  }
  .contact__cards {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .topbar__inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Doctor destacado (1 sola persona) ===== */
.doctor {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(193, 161, 88, 0.4);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow);
}

.doctor__media {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(193, 161, 88, 0.18);
}

.doctor__avatar {
  width: 76px;
  height: 76px;
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(193, 161, 88, 0.6);
  box-shadow: 0 14px 28px rgba(193, 161, 88, 0.1);
  flex: 0 0 auto;
}

.doctor__avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover; /* recorta sin deformar */
  object-position: center; /* centra el rostro */
}

.doctor__meta h3 {
  margin: 0 0 0.25rem 0;
  font-size: 1.35rem;
}

.doctor__role {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
}

.doctor__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.tag {
  padding: 0.45rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(193, 161, 88, 0.25);
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
}

.doctor__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding-top: 1rem;
}

.doctor__block {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(193, 161, 88, 0.22);
  border-radius: 16px;
  padding: 1rem;
}

.doctor__block h4 {
  margin: 0 0 0.6rem 0;
  font-size: 1.05rem;
}

.doctor__block ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--muted);
  line-height: 1.6;
}

.doctor__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(193, 161, 88, 0.18);
}

@media (max-width: 980px) {
  .doctor__grid {
    grid-template-columns: 1fr;
  }
  .doctor__cta {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ===== Google Maps ===== */
.map {
  margin-top: 1.2rem;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(193, 161, 88, 0.4); /* dorado sutil */
  box-shadow: 0 14px 28px rgba(17, 24, 39, 0.08);
  background: #fff;
}

.map iframe {
  width: 100%;
  height: 550px;
  border: 0;
}

@media (max-width: 560px) {
  .map iframe {
    height: 220px;
  }
}

.embed {
  margin-top: 1.5rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(193, 161, 88, 0.35);
  border-radius: 18px;
  padding: 1.2rem;
  box-shadow: 0 14px 28px rgba(17, 24, 39, 0.08);
}

.embed h3 {
  margin: 0 0 0.4rem 0;
  font-size: 1.1rem;
}

.zl-url {
  display: block;
  margin-top: 1rem;
}
