@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Lora:wght@400;500;600&display=swap");
:root {
  color-scheme: light;
  --ink: #111e3c;
  --blue: #073eb7;
  --purple: #8061d5;
  --page-gutter: clamp(20px, 5vw, 32px);
  font-family: "DM Sans", Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: #fafafa;
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible { outline: 3px solid var(--purple); outline-offset: 6px; }
/* 2. Contenedor y header: logo + dos párrafos. */
.page { width: 100%; max-width: 1120px; margin-inline: auto; background: #fff; }
.header { padding: 20px var(--page-gutter); border-bottom: 1px solid #f0eff2; }
.brand { display: flex; align-items: center; gap: 12px; max-width: 100%; width: fit-content; min-height: 48px; color: inherit; text-decoration: none; }
.brand-logo { flex: 0 0 40px; width: 40px; height: 50px; color: var(--blue); }
.brand-text { min-width: 0; }
.brand-text p { margin: 0; }
.brand-name { font-family: Georgia, 'Times New Roman', serif; font-size: clamp(15px, 3.8vw, 21px); text-transform: uppercase; line-height: 1.3; overflow-wrap: break-word; }
.brand-specialty { padding-top: 6px; color: var(--blue); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; }
/* 3. Hero: una columna en celular, con texto antes de la foto. */
.hero { position: relative; isolation: isolate; background: #faf8f9; }
.hero-content { position: relative; z-index: 1; min-width: 0; padding: 32px var(--page-gutter) 0; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; color: var(--purple); font-size: 11px; line-height: 1.6; text-transform: uppercase; }
.eyebrow span { width: 28px; height: 1px; flex-shrink: 0; background: currentColor; }
h1 { margin: 0 0 20px; font-family: "Lora", Georgia, 'Times New Roman', serif; font-size: clamp(29px, 7.6vw, 44px); font-weight: 400; line-height: 1.17; letter-spacing: -.035em; overflow-wrap: break-word; }
.hero-description { max-width: 40ch; margin: 0; color: #444550; font-size: 16px; line-height: 1.7; }
/* 4. Turnos: botón ancho y cómodo para tocar en celular. */
.hero-actions { display: grid; justify-items: stretch; gap: 10px; margin-top: 24px; }
.appointment { display: inline-flex; justify-content: center; align-items: center; gap: 13px; width: 100%; min-height: 54px; padding: 14px 20px; border: 0; border-radius: 6px; background: var(--blue); color: white; font: inherit; font-size: 16px; }
.appointment { text-decoration: none; }
.appointment svg { width: 24px; height: 24px; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.appointment-note { color: #656574; font-size: 12px; line-height: 1.5; text-align: center; }
/* 5. Foto y degradado de unión con el fondo. */
.hero-portrait { height: clamp(320px, 95vw, 460px); margin-top: 20px; position: relative; overflow: hidden; }
.hero-portrait::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, #faf8f9, transparent 22%); }
.hero-portrait img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 47%; opacity: .85; }

/* 6. Tablet: recién desde 768px pasamos a dos columnas. */
@media (min-width: 768px) {
  body { padding: 24px; }
  .page { border-radius: 24px; overflow: hidden; box-shadow: 0 3px 22px #15213b0d; }
  .header { padding: 26px 36px; }
  .brand-specialty { font-size: 12px; }
  .hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); min-height: 520px; }
  .hero-content { padding: 58px 0 48px 36px; }
  .eyebrow { font-size: 10px; gap: 8px; }
  .eyebrow span { width: 22px; }
  h1 { font-size: clamp(30px, 4.3vw, 48px); }
  .hero-actions { justify-items: start; }
  .appointment { width: auto; }
  .appointment-note { text-align: left; }
  .hero-portrait { height: auto; margin: 0; }
  .hero-portrait img { position: absolute; inset: 0; object-position: center 50%; opacity: 1; }
  .hero-portrait::after { background: linear-gradient(to right, #faf8f9, transparent 35%); }
}

/* 7. Escritorio: ampliamos espacios y tipografía. */
@media (min-width: 960px) {
  body { padding: 40px 24px; }
  .header { padding: 28px 58px; }
  .brand-logo { width: 50px; flex-basis: 50px; height: 62px; }
  .hero { min-height: 620px; }
  .hero-content { padding: 80px 0 70px 58px; }
  .eyebrow { font-size: 12px; margin-bottom: 25px; }
  .eyebrow span { width: 36px; }
  h1 { font-size: 48px; margin-bottom: 24px; }
  .hero-description { font-size: 16px; }
  .hero-actions { margin-top: 30px; }
  .appointment { min-height: 56px; padding-inline: 30px; font-size: 16px; }
}

/* Cierre: botón en su propia fila para facilitar el uso en celular. */
.closing { padding: 0 var(--page-gutter); }
.closing-card { display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: center; gap: 18px 14px; padding: 22px 18px; border-radius: 12px; background: #f4f1fb; }
.closing-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: #ebe5fa; color: var(--purple); }
.closing-icon svg { width: 26px; height: 26px; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.closing-copy h2 { margin: 0 0 8px; font-family: "Lora", Georgia, serif; font-size: 20px; font-weight: 500; line-height: 1.35; }
.closing-copy p { margin: 0; color: #444550; font-size: 14px; line-height: 1.6; }
.closing-card .appointment { grid-column: 1 / -1; }
.closing-experience { display: flex; align-items: center; justify-content: center; gap: 14px; max-width: 560px; margin: 24px auto; padding-inline: 8px; }
.closing-experience svg { flex: 0 0 28px; width: 28px; height: 34px; color: var(--blue); stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.closing-experience p { margin: 0; color: #444550; font-size: 13px; line-height: 1.65; }
.site-footer { padding: 20px var(--page-gutter) 24px; border-top: 1px solid #f0eff2; text-align: center; }
.site-footer p { margin: 0; color: #656574; font-size: 12px; line-height: 1.7; }
.site-footer p + p { margin-top: 6px; }
.footer-contact { display: grid; max-width: 900px; margin: 4px auto 28px; padding: 8px 22px; border: 1px solid #e5def2; border-radius: 18px; background: linear-gradient(135deg, #f8f6fc, #f0f4fb); box-shadow: 0 6px 24px #19244b06; text-align: center; }
.footer-contact a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-width: 0; min-height: 120px; padding: 22px 0; color: var(--blue); font-size: 14px; line-height: 1.5; text-decoration: none; overflow-wrap: anywhere; }
.footer-contact a + a { border-top: 1px solid #dedfea; }
.footer-contact a span { max-width: 100%; }
.footer-contact .footer-contact-label { color: var(--ink); font-weight: 600; }
.footer-contact-icon { width: 28px; height: 28px; margin-bottom: 5px; color: var(--purple); stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.footer-whatsapp-icon { color: #23835b; }
.footer-contact a:hover span:last-child { text-decoration: underline; text-underline-offset: 4px; }
@media (min-width: 768px) {
  .footer-contact { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 24px 10px; }
  .footer-contact a { padding: 8px 14px; }
  .footer-contact a + a { border-top: 0; border-left: 1px solid #dedfea; }
}
@media (min-width: 768px) {
  .closing { padding-inline: 36px; }
  .closing-card { grid-template-columns: 64px minmax(0, 1fr) auto; gap: 22px; padding: 28px; }
  .closing-icon { width: 64px; height: 64px; }
  .closing-icon svg { width: 32px; height: 32px; }
  .closing-card .appointment { grid-column: auto; }
  .closing-copy h2 { font-size: 22px; }
}
@media (min-width: 960px) {
  .closing { padding-inline: 58px; }
}

/* 8. Especialidad y cuatro pilares de atención: base para celular. */
.specialty {
  padding: 40px var(--page-gutter) 44px;
  border-top: 1px solid #f0eff2;
  background: #fff;
}

.specialty-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.specialty-emblem {
  display: block;
  flex-shrink: 0;
  width: 64px;
  height: auto;
  color: var(--purple);
}

.specialty-copy { min-width: 0; max-width: 520px; }
.specialty-label {
  margin: 0 0 12px;
  color: var(--purple);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.specialty h2 {
  margin: 0;
  color: var(--ink);
  font-family: "Lora", Georgia, 'Times New Roman', serif;
  font-size: clamp(25px, 6.5vw, 32px);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -.025em;
  overflow-wrap: break-word;
}

.specialty-accent { color: var(--purple); }

.specialty-description {
  margin: 0;
  color: #444550;
  font-size: 15px;
  line-height: 1.75;
}

.care-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.care-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 22px 12px;
  border: 1px solid #c9b8ea;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 8px #19244b03;
  text-align: center;
}

.care-icon {
  flex-shrink: 0;
  display: block;
  width: 42px;
  height: 42px;
  margin: 0 auto 17px;
  color: var(--purple);
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.care-card h3 {
  margin: 0 0 10px;
  font-family: "Lora", Georgia, 'Times New Roman', serif;
  font-size: clamp(15px, 3.8vw, 18px);
  font-weight: 500;
  line-height: 1.4;
  overflow-wrap: break-word;
}

.care-card p {
  margin: 0;
  color: #444550;
  font-size: 14px;
  line-height: 1.75;
  overflow-wrap: break-word;
}

.care-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  min-height: 44px;
  margin-top: auto;
  padding: 16px 8px 0;
  color: var(--purple);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
  text-underline-offset: 4px;
}

.care-link[href]:hover { text-decoration: underline; }

@media (min-width: 768px) {
  .specialty { padding: 48px 36px 52px; }
  .specialty-intro { flex-direction: row; justify-content: center; gap: 24px; text-align: left; }
  .specialty-emblem { width: 76px; height: auto; }
  .care-grid { gap: 18px; margin-top: 36px; }
  .care-card { padding: 26px 20px; }
}

@media (min-width: 960px) {
  .specialty { padding: 56px 58px 60px; }
  .specialty-intro { gap: 28px; }
  .specialty-emblem { width: 84px; height: auto; }
  .specialty h2 { font-size: 34px; }
  .specialty-description { font-size: 16px; }
  .care-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 42px; }
  .care-card { padding: 28px 18px; }
}
