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

:root {
  --bg: #FDFAF6;
  --bg-warm: #F0EBE0;
  --bg-dark: #1D3040;
  --text: #1D3040;
  --text-mid: #5C5248;
  --text-muted: #8A7F74;
  --border: #DDD8CE;
  --accent: #F5F0E8;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
}

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 48px;
  background: var(--bg);
  border-bottom: 0.5px solid var(--border);
  transition: box-shadow 0.2s;
}
.nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.06); }
.nav-logo svg { display: block; }
.logo-img { height: 72px; width: auto; display: block; image-rendering: -webkit-optimize-contrast; }
.logo-img-footer { height: 56px; opacity: 0.7; }
.nav-links {
  display: flex; gap: 32px; list-style: none;
}
.nav-links a {
  font-size: 13px; color: var(--text-mid); text-decoration: none;
  letter-spacing: 0.3px; transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  font-size: 12px; padding: 10px 22px;
  background: var(--bg-dark); color: var(--accent);
  border-radius: 2px; text-decoration: none;
  letter-spacing: 0.5px; transition: opacity 0.2s;
}
.nav-cta:hover { opacity: 0.85; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { display: block; width: 22px; height: 1.5px; background: var(--text); transition: all 0.3s; }

/* HERO */
.hero {
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: 88vh; align-items: center;
  padding: 80px 48px;
  background: var(--bg-warm); gap: 60px;
}
.eyebrow {
  font-size: 11px; letter-spacing: 3px;
  color: var(--text-muted); text-transform: uppercase; margin-bottom: 18px;
}
.hero h1 {
  font-family: var(--font-serif); font-size: clamp(56px, 7vw, 86px);
  font-weight: 500; color: #111111; line-height: 1.02; margin-bottom: 28px;
}
.hero h1 em { font-style: italic; color: var(--text-mid); }
.hero-desc { font-size: 18px; color: var(--text-mid); line-height: 1.8; margin-bottom: 36px; max-width: 460px; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; font-size: 13px; letter-spacing: 0.5px;
  border-radius: 2px; text-decoration: none; transition: opacity 0.2s, transform 0.1s;
  font-family: var(--font-sans);
}
.btn:hover { opacity: 0.88; }
.btn:active { transform: scale(0.98); }
.btn-dark { background: var(--bg-dark); color: var(--accent); }
.btn-outline { background: transparent; color: var(--text); border: 0.5px solid var(--text); }
.btn-light { background: var(--accent); color: var(--bg-dark); font-size: 14px; padding: 14px 30px; }

.hero-img {
  border-radius: 2px; overflow: hidden;
  height: clamp(320px, 55vh, 520px);
}
.hero-img img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.hero-img-placeholder {
  width: 100%; height: 100%;
  background: #C8C0B4;
  display: flex; align-items: center; justify-content: center;
  color: #8A7F74; font-size: 14px; letter-spacing: 1px;
}

/* TAGLINE BAR */
.tagline-bar {
  background: #B8966A;
  padding: 32px 48px;
  display: flex; align-items: center; justify-content: center; gap: 48px;
}
.tagline-bar span {
  font-family: var(--font-serif);
  font-size: clamp(13px, 1.4vw, 16px); font-weight: 400; font-style: italic;
  letter-spacing: 2px; color: #fff;
}
.tagline-bar .dot {
  width: 5px; height: 5px;
  background: rgba(255,255,255,0.4); border-radius: 50%; flex-shrink: 0;
}

/* SERVICES */
.services { padding: 96px 48px; background: var(--bg-dark); }
.section-header { margin-bottom: 56px; }
.section-header .eyebrow { color: #8A7F74; }
.section-header h2 {
  font-family: var(--font-serif); font-size: clamp(32px, 3vw, 46px);
  font-weight: 400; color: #F5F0E8; margin-top: 10px;
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 400; font-style: italic;
  color: #F5F0E8; letter-spacing: 2px;
  line-height: 1;
}
.services-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px;
}
.svc-card {
  border: none; border-radius: 0;
  padding: 0;
  background: #243444;
  transition: background 0.3s;
  cursor: pointer;
  overflow: hidden;
}
.svc-card:hover { background: #2a3d51; }
.svc-card.open { background: #2d4258; }

.svc-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 32px 36px; gap: 16px;
}
.svc-meta {
  display: flex; align-items: flex-start; gap: 14px; flex: 1; min-width: 0;
}
.svc-icon { font-size: 20px; flex-shrink: 0; margin-top: 3px; }
.svc-photo {
  width: 110px; height: 110px; flex-shrink: 0;
  object-fit: cover; object-position: top center;
  border-radius: 4px;
  border: 1.5px solid #B8966A;
}
.svc-card h3 {
  font-family: var(--font-serif); font-size: 19px;
  font-weight: 400; color: #E8E0D4; margin-bottom: 4px;
  line-height: 1.25;
}
.svc-doctor {
  font-size: 11px; color: #B8966A; letter-spacing: 0.8px; text-transform: uppercase;
}
.svc-toggle {
  font-size: 22px; color: #B8966A; font-weight: 300;
  flex-shrink: 0; line-height: 1;
  transition: transform 0.3s ease;
  user-select: none;
}
.svc-card.open .svc-toggle { transform: rotate(45deg); }

.svc-body {
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0 36px;
}
.svc-card.open .svc-body {
  max-height: 400px;
  padding: 0 36px 32px;
}
.svc-list {
  list-style: none; padding: 0;
  margin: 0; padding-top: 4px;
  border-top: 1px solid rgba(184,150,106,0.2);
  display: flex; flex-direction: column; gap: 8px; padding-top: 20px;
}
.svc-list li {
  font-size: 13px; color: #8A9AAA; line-height: 1.55;
  padding-left: 16px; position: relative;
}
.svc-list li::before {
  content: '·'; position: absolute; left: 0; color: #B8966A; font-size: 16px; line-height: 1.4;
}

/* DOCTOR */
.doctor {
  display: grid; grid-template-columns: 1fr 1.3fr;
  gap: 64px; align-items: center;
  padding: 96px 48px; background: var(--bg-warm);
}
.doctor-img { border-radius: 2px; overflow: hidden; height: clamp(340px, 55vh, 500px); }
.doctor-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.doctor-img-placeholder {
  width: 100%; height: 100%;
  background: #C8C0B4;
  display: flex; align-items: center; justify-content: center;
  color: #8A7F74; font-size: 14px;
}
.doctor-info .eyebrow { margin-bottom: 12px; }
.doctor-info h2 {
  font-family: var(--font-serif); font-size: clamp(28px, 3vw, 40px);
  font-weight: 400; color: var(--text); margin-bottom: 8px;
}
.doctor-role { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; letter-spacing: 0.3px; }
.doctor-info > p { font-size: 15px; color: var(--text-mid); line-height: 1.8; margin-bottom: 28px; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tag {
  font-size: 11px; padding: 6px 14px;
  border: 0.5px solid #B8AFA6; color: var(--text-mid);
  border-radius: 2px; letter-spacing: 0.5px;
}

/* TECNOLOGÍA */
.tecnologia {
  background: var(--bg-warm);
  padding: 120px 48px;
  display: flex; justify-content: center;
}
.tecnologia-inner {
  max-width: 700px; text-align: center;
}
.tecnologia-inner .eyebrow { margin-bottom: 16px; }
.tecnologia-inner h2 {
  font-family: var(--font-serif); font-size: clamp(34px, 4vw, 56px);
  font-weight: 400; color: var(--text); line-height: 1.15; margin-bottom: 28px;
}
.tecnologia-inner h2 em { font-style: italic; color: #B8966A; }
.tecnologia-desc {
  font-size: 16px; color: var(--text-mid); line-height: 1.8;
  border-top: 0.5px solid var(--border); padding-top: 28px; margin-top: 8px;
}

/* CTA SECTION */
.cta-section {
  background: var(--bg-dark);
  padding: 96px 48px;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px;
}
.cta-section .eyebrow { color: var(--text-muted); }
.cta-section h2 {
  font-family: var(--font-serif); font-size: clamp(26px, 3vw, 40px);
  font-weight: 400; font-style: italic; color: var(--accent);
  max-width: 560px; line-height: 1.3;
}
.cta-sub { font-size: 13px; color: #B8AFA6; letter-spacing: 0.3px; }
.contact-info { display: flex; gap: 28px; margin-top: 8px; }
.contact-info p { font-size: 13px; color: #B8AFA6; }
.contact-info a { color: #B8AFA6; text-decoration: underline; }
.contact-info a:hover { color: var(--accent); }

/* UBICACIÓN */
.ubicacion {
  display: grid; grid-template-columns: 1fr 1.2fr;
  min-height: 560px; background: #0E1A24;
}
.ubicacion-info {
  padding: 80px 56px; display: flex; flex-direction: column; gap: 28px; justify-content: center;
}
.ubicacion-info .eyebrow { color: #B8966A; }
.ubicacion-info h2 {
  font-family: var(--font-serif); font-size: clamp(32px, 3vw, 48px);
  font-weight: 400; color: #F5F0E8; line-height: 1.15;
}
.ubicacion-info h2 em { font-style: italic; color: #B8966A; }
.ubic-detalle { display: flex; flex-direction: column; gap: 4px; }
.ubic-label { font-size: 10px; letter-spacing: 3px; text-transform: uppercase; color: #B8966A; }
.ubic-detalle p:last-child { font-size: 15px; color: #C8C0B4; line-height: 1.6; }
.ubic-mail {
  color: #C8C0B4; text-decoration: none; font-size: 15px; line-height: 1.6;
  transition: color 0.2s;
}
.ubic-mail:hover { color: #B8966A; }

.btn-ubic {
  display: inline-block; margin-top: 8px;
  padding: 14px 28px; font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
  background: #B8966A; color: #0E1A24; text-decoration: none;
  border-radius: 2px; font-weight: 500; transition: opacity 0.2s;
  align-self: flex-start;
}
.btn-ubic:hover { opacity: 0.85; }
.ubicacion-mapa { width: 100%; height: 100%; min-height: 480px; }
.ubicacion-mapa iframe { width: 100%; height: 100%; display: block; filter: grayscale(20%); }

@media (max-width: 768px) {
  .ubicacion { grid-template-columns: 1fr; }
  .ubicacion-info { padding: 48px 20px; }
  .ubicacion-mapa { min-height: 300px; }
}

/* FOOTER */
.footer {
  background: var(--bg-warm);
  padding: 28px 48px;
  display: flex; align-items: center; justify-content: space-between;
  border-top: 0.5px solid var(--border);
  flex-wrap: wrap; gap: 16px;
}
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 12px; color: var(--text-muted); text-decoration: none; letter-spacing: 0.5px; transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }
.footer-copy { font-size: 11px; color: #B8AFA6; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav { padding: 14px 20px; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); border-bottom: 0.5px solid var(--border); padding: 20px; gap: 16px; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }

  .hero { grid-template-columns: 1fr; padding: 48px 20px; min-height: auto; gap: 36px; }
  .hero-img { height: 280px; order: -1; }

  .tagline-bar { padding: 14px 20px; gap: 16px; }

  .services { padding: 60px 20px; }
  .services-grid { grid-template-columns: 1fr; }

  .doctor { grid-template-columns: 1fr; padding: 60px 20px; gap: 36px; }
  .doctor-img { height: 280px; }

  .cta-section { padding: 60px 20px; }
  .contact-info { flex-direction: column; gap: 8px; }

  .footer { padding: 20px; flex-direction: column; align-items: flex-start; }
}
