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

:root {
  --rose: #c4768a;
  --rose-lt: #f2dde3;
  --rose-dk: #8a4a5e;
  --plum: #6f3e63;
  --plum-lt: #f7f0f5;
  --cream: #fdf8f5;
  --sand: #e8ddd4;
  --text: #2a1f24;
  --muted: #7a6570;
  --white: #ffffff;
  --r: 20px;
  --shadow: 0 8px 40px rgba(92, 51, 82, 0.1);
  --shadow-sm: 0 2px 16px rgba(92, 51, 82, 0.07);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "DM Sans", sans-serif;
  background: var(--cream);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── TOPBAR ── */
.topbar {
  background: var(--plum);
  color: rgba(255, 255, 255, 0.749);
  font-size: 13px;
  text-align: center;
  padding: 9px 20px;
  letter-spacing: 0.04em;
}

.topbar a {
  color: #f2dde3;
  text-decoration: none;
  white-space: nowrap;
}

/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 248, 245, 0.49);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--sand);
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  overflow: hidden;
}

.nav-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-name {
  font-family: "Cormorant Garamond", serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--plum);
  line-height: 1.1;
}

.nav-sub {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
}

.nav-links a {
  padding: 8px 15px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: var(--muted);
  transition:
    color 0.2s,
    background 0.2s;
}

.nav-links a:hover {
  color: var(--plum);
  background: var(--plum-lt);
}

.nav-links a.btn-doctoralia {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #00bfa5;
  color: #ffffff;
  padding: 12px 18px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  line-height: 1;
  transition: background-color 0.2s ease;
}

.nav-links a.btn-doctoralia:hover {
  background-color: #00a892;
}

.nav-links a .doctoralia-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: block;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--plum);
  margin: 5px 0;
  border-radius: 2px;
  transition: 0.3s;
}

/* ── HERO ── */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 88vh;
  align-items: center;
}

.hero-left {
  padding: 80px 60px 80px 80px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--rose-dk);
}

.hero-eyebrow::before {
  content: "";
  width: 28px;
  height: 1.5px;
  background: var(--rose);
}

.hero-title {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.8rem, 4.5vw, 4.2rem);
  font-weight: 300;
  line-height: 1.12;
  color: var(--plum);
}

.hero-title em {
  font-style: italic;
  color: var(--rose);
}

.hero-desc {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 440px;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--plum);
  color: white;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  transition:
    background 0.2s,
    transform 0.2s,
    box-shadow 0.2s;
  box-shadow: 0 8px 24px rgba(92, 51, 82, 0.25);
  text-decoration: none;
  display: inline-block;
}

.btn-primary:hover {
  background: var(--rose-dk);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(92, 51, 82, 0.3);
}

.btn-ghost {
  background: transparent;
  color: var(--plum);
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  border: 1.5px solid var(--sand);
  transition:
    border-color 0.2s,
    background 0.2s;
  text-decoration: none;
  display: inline-block;
}

.btn-ghost:hover {
  border-color: var(--rose);
  background: var(--rose-lt);
}

.hero-stats {
  display: flex;
  gap: 32px;
  padding-top: 8px;
  border-top: 1px solid var(--sand);
}

.stat-num {
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  font-weight: 600;
  color: var(--plum);
  line-height: 1;
}

.stat-label {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

.star {
  color: #f6d501;
  font-size: 1.8rem;
  margin-left: 2px;
}

.hero-right {
  position: relative;
  height: 100%;
  background: var(--plum-lt);
}

.hero-images {
  position: relative;
  height: 100%;
  width: 100%;
  overflow: hidden;
}

.hero-images img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-images img.active {
  opacity: 1;
}

.hero-badge {
  position: absolute;
  bottom: 32px;
  left: -24px;
  background: white;
  border-radius: 14px;
  padding: 16px 22px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 2;
}

.badge-icon {
  font-size: 24px;
}

.badge-text strong {
  display: block;
  font-size: 14px;
  color: var(--plum);
}

.badge-text span {
  font-size: 12px;
  color: var(--muted);
}

/* ── TRUST BAR ── */
.trust-bar {
  background: var(--plum);
  display: flex;
  justify-content: center;
  gap: 48px;
  padding: 22px 40px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
}

.trust-item span.ico {
  font-size: 18px;
}

/* ── SECTIONS SHARED ── */
section {
  padding: 80px 80px;
}

.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rose);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.section-label::after {
  content: "";
  flex: 0 0 28px;
  height: 1.5px;
  background: var(--rose);
}

.section-title {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 300;
  color: var(--plum);
  line-height: 1.2;
  margin-bottom: 14px;
}

.section-desc {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
  max-width: 520px;
}

/* ── SERVICIOS ── */
#servicios {
  background: white;
}

.services-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 48px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  background: var(--cream);
  border-radius: var(--r);
  padding: 30px;
  border: 1px solid var(--sand);
  transition:
    transform 0.25s,
    box-shadow 0.25s,
    border-color 0.25s;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--rose), var(--plum));
  opacity: 0;
  transition: opacity 0.25s;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--rose-lt);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  font-size: 28px;
  margin-bottom: 14px;
}

.service-name {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--plum);
  margin-bottom: 10px;
  line-height: 1.2;
}

.service-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 18px;
}

.service-list li {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.service-list li::before {
  content: "·";
  color: var(--rose);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.service-price {
  background: white;
  border-radius: 10px;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--sand);
}

.service-price span {
  font-size: 12px;
  color: var(--muted);
}

.service-price strong {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.5rem;
  color: var(--plum);
}

/* ── DOCTORA ── */
#doctora {
  background: var(--plum-lt);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.doc-img-wrap {
  position: relative;
}

.doc-img {
  width: 100%;
  border-radius: 20px;
  object-fit: cover;
  aspect-ratio: 4/5;
  box-shadow: var(--shadow);
}

.doc-card {
  position: absolute;
  bottom: -5px;
  right: -20px;
  background: white;
  border-radius: 14px;
  padding: 18px 22px;
  box-shadow: var(--shadow);
}

.doc-card .name {
  font-family: "Cormorant Garamond", serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--plum);
}

.doc-card .ced {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.doc-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.credential-item {
  display: flex;
  gap: 16px;
}

.cred-dot {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--rose-lt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.cred-title {
  font-weight: 600;
  font-size: 14px;
  color: var(--plum);
  margin-bottom: 2px;
}

.cred-sub {
  font-size: 13px;
  color: var(--muted);
}

.social-row {
  display: flex;
  gap: 14px;
  margin-top: 8px;
}

.social-btn {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1.5px solid var(--sand);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition:
    background 0.2s,
    border-color 0.2s,
    color 0.2s;
  text-decoration: none;
}

.social-btn:hover {
  background: var(--rose-lt);
  border-color: var(--rose);
  color: var(--rose-dk);
}

/* ── TESTIMONIOS ── */
#testimonios {
  background: white;
}

.testi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 48px;
}

.testi-card {
  background: var(--plum-lt);
  border-radius: var(--r);
  padding: 28px;
  border: 1px solid var(--sand);
}

.testi-quote {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--text);
  line-height: 1.65;
  font-style: italic;
  margin-bottom: 18px;
}

.testi-source {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* ── CONTACTO ── */
#contacto {
  background: var(--plum);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

#contacto .section-label {
  color: var(--rose-lt);
}

#contacto .section-label::after {
  background: var(--rose-lt);
}

#contacto .section-title {
  color: white;
}

#contacto .section-desc {
  color: rgba(255, 255, 255, 0.65);
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 32px;
}

.contact-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.contact-ico {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.contact-text strong {
  display: block;
  color: white;
  font-size: 14px;
  margin-bottom: 2px;
}

.contact-text span {
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
}

.contact-form {
  background: white;
  border-radius: 20px;
  padding: 36px;
}

.form-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.5rem;
  color: var(--plum);
  margin-bottom: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.form-field label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.form-field input,
.form-field select,
.form-field textarea {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--sand);
  font-family: inherit;
  font-size: 14px;
  background: var(--cream);
  color: var(--text);
  transition: border-color 0.2s;
}

.form-field input:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--rose);
}

.form-submit {
  width: 100%;
  padding: 14px;
  background: var(--plum);
  color: white;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.2s;
}

.form-submit:hover {
  background: var(--rose-dk);
  transform: translateY(-1px);
}

#formMessage {
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  padding: 10px;
  border-radius: 8px;
  margin-top: 10px;
  display: none;
}

/* ── MAPA ── */
.map-section {
  padding: 0;
}

.map-section iframe {
  width: 100%;
  height: 420px;
  border: 0;
  display: block;
}

/* ── FOOTER ── */
footer {
  background: var(--text);
  color: rgba(255, 255, 255, 0.7);
  padding: 48px 80px 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-brand strong {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.4rem;
  color: white;
  display: block;
  margin-bottom: 8px;
}

.footer-brand p {
  font-size: 13px;
  line-height: 1.65;
}

.footer-col h4 {
  color: white;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.footer-col p,
.footer-col a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 2;
  display: block;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--rose-lt);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

/* ── WHATSAPP FLOAT ── */
.wa-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25d366, #128c7e);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(18, 140, 126, 0.35);
  text-decoration: none;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.wa-float:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 14px 32px rgba(18, 140, 126, 0.4);
}

.wa-float svg {
  width: 26px;
  height: 26px;
  fill: white;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.fade-up {
  opacity: 0;
  animation: fadeUp 0.7s ease forwards;
}

.fade-up-1 {
  animation-delay: 0.1s;
}

.fade-up-2 {
  animation-delay: 0.25s;
}

.fade-up-3 {
  animation-delay: 0.4s;
}

.fade-up-4 {
  animation-delay: 0.55s;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-right {
    height: 50vw;
  }

  .hero-left {
    padding: 48px 40px;
  }

  .hero-badge {
    display: none;
  }

  section {
    padding: 60px 40px;
  }

  #doctora {
    grid-template-columns: 1fr;
  }

  .doc-img {
    aspect-ratio: 3/2;
  }

  #contacto {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr 1fr;
  }

  footer {
    padding: 48px 40px 28px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  nav {
    padding: 0 24px;
  }
}

@media (max-width: 640px) {
  .topbar {
    font-size: 11px;
    padding: 8px 12px;
  }
  .doc-img {
    aspect-ratio: 1/1;
  }
  .doc-card {
    position: absolute;
    bottom: 0;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: 90%;
    text-align: center;
    padding: 10px 16px; /* ← más compacto */
    border-radius: 10px;
  }

  .doc-card .name {
    font-size: 0.85rem; /* ← texto más pequeño */
  }

  .doc-card .ced {
    font-size: 11px;
  }

  nav {
    height: 60px;
    padding: 0 16px;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: white;
    padding: 16px;
    box-shadow: var(--shadow);
    gap: 4px;
  }

  .nav-links.open {
    display: flex;
  }

  .hamburger {
    display: flex;
    flex-direction: column;
  }

  .hero-left {
    padding: 36px 20px;
  }

  .hero-right {
    height: 60vw;
  }

  .trust-bar {
    gap: 16px;
    padding: 18px 20px;
  }

  section {
    padding: 48px 20px;
  }

  .services-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .testi-grid {
    grid-template-columns: 1fr;
  }

  footer {
    padding: 40px 20px 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 6px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}
