/* Dra. Mildred Medina — Medsy. Réplica del sitio de WordPress/Elementor.
   Medidas tomadas del sitio original a 375 px (móvil) y 1280 px (desktop). Mobile first; desktop desde 960 px. */
/* Neue Haas Display: Light para pesos hasta 500, Medium desde 600 (igual que en WordPress). */
@font-face { font-family: "Neue Haas"; font-weight: 100 500; font-display: swap; src: url(/fonts/NeueHaasDisplayLight.woff2) format('woff2'); }
@font-face { font-family: "Neue Haas"; font-weight: 600 900; font-display: swap; src: url(/fonts/NeueHaasDisplayMedium.woff2) format('woff2'); }
@font-face { font-family: Inter; font-weight: 300 400; font-display: swap; src: url(/fonts/inter-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: Inter; font-weight: 500; font-display: swap; src: url(/fonts/inter-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: Inter; font-weight: 600 700; font-display: swap; src: url(/fonts/inter-latin-600-normal.woff2) format('woff2'); }

:root {
  --azul: #1C3F60;
  --verde: #A0E8AF;
  --lila: #CECCFC;
  --lila-claro: #E8E7F4;
  --lila-fondo: #F4F4FE;
  --naranja: #F08700;
  --noche: #001E22;
  --gris: #898989;
  --nh: "Neue Haas", Inter, system-ui, sans-serif;
  --inter: Inter, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: #fff; color: var(--azul); font-family: var(--nh); font-weight: 400; font-size: 20px; line-height: 1.5; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--naranja); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3, p, ul, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
strong { font-weight: 600; }

.wrap { width: 100%; max-width: 1184px; margin: 0 auto; padding-inline: 10px; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 30px; font-family: var(--nh); font-weight: 600; text-decoration: none; line-height: 1; border: 0; transition: background .2s, color .2s; }
.btn svg { flex: none; width: 1em; height: 1em; pointer-events: none; }
.elementor-button-content-wrapper { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 100%; min-height: inherit; }
.btn--verde { background: var(--verde); color: var(--azul); }
.btn--verde:hover { background: #8fdc9f; }
.btn--top { min-height: 34px; padding: 0 16px; font-size: 14px; }
.btn--hero { min-height: 48px; padding: 0 32px; font-size: 20px; }
.btn--ayuda { min-height: 48px; padding: 0 28px; font-size: 14px; background: var(--azul); color: #fff; border: 3px solid var(--verde); }
.btn--ayuda:hover { background: var(--verde); color: var(--azul); }
.btn--pie { min-height: 60px; border-radius: 8px; font-family: var(--inter); font-size: 20px; background: var(--lila); color: var(--noche); }
.btn--pie:hover { background: #fff; }

/* Encabezado */
.top { display: flex; align-items: center; justify-content: space-between; padding: 20px 10px 0 20px; }
.top__logo { width: 163px; }

/* Hero */
.hero { padding-top: 60px; text-align: center; }
.hero h1 { font-weight: 500; font-size: 56px; line-height: 1; letter-spacing: -0.02em; }
.hero__sub { margin-top: 20px; font-family: var(--inter); font-size: 16px; line-height: 1.5; }
.hero__cta { margin-top: 46px; }
.hero__foto { margin-top: 30px; }
.hero__foto img { width: 289px; margin-inline: auto; border-radius: 25px; object-fit: cover; aspect-ratio: 383 / 478; }

/* Servicios */
.servicios-wrap { margin-top: 70px; }
.servicios { background: var(--azul); border-radius: 30px; padding: 30px 0 22px; }
.servicios h2 { font-weight: 500; font-size: 55px; line-height: 1; color: var(--lila-claro); padding: 0 13px 22px; border-bottom: 1px solid rgba(232,231,244,.25); }
.servicios__grid { display: grid; gap: 20px; padding: 20px 10px 0; }
.servicio { display: flex; align-items: flex-end; min-height: 150px; padding: 20px 17px 26px; border-radius: 14px; font-family: var(--nh); font-weight: 500; font-size: 26px; line-height: 1; }
.servicio--1 { background: var(--lila); }
.servicio--2 { background: var(--lila-claro); }
.servicio--3 { background: #E48A34; color: var(--lila-claro); }
.servicio--4 { background: var(--verde); }

/* Sobre mí */
.sobre { background: var(--lila-fondo); margin-top: 60px; padding: 60px 0 80px; }
.sobre h2 { font-weight: 600; font-size: 55px; line-height: 1; padding-left: 20px; }
.sobre__grid { display: grid; margin-top: 60px; }
.sobre__texto { background: #fff; border-radius: 30px 30px 0 0; padding: 60px 30px 20px; font-size: 20px; line-height: 1.5; }
.sobre__redonda { width: 290px; margin: 0 auto 20px; border-radius: 50%; }
.sobre__texto p + p { margin-top: 15px; }
.sobre__cedulas { margin-top: 35px !important; font-size: 16px; line-height: 1.5; }
.sobre__foto { display: none; }
.logos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px 20px; align-items: center; justify-items: center; background: #fff; border-radius: 0 0 30px 30px; padding: 30px 30px 60px; }
.logos img { width: auto; height: 30px; max-width: 100%; object-fit: contain; filter: grayscale(1); opacity: .85; }
.logos img.logo-alto { height: 62px; }

/* Cómo te puedo ayudar */
.ayuda-wrap { margin-top: 80px; }
.ayuda { background: var(--azul); color: #fff; border-radius: 30px; padding: 60px 20px; }
.ayuda h2 { color: var(--verde); font-weight: 600; font-size: 40px; line-height: 1; text-align: center; }
.lista-problemas { display: grid; gap: 0 60px; margin-top: 60px; padding-inline: 10px; font-family: var(--inter); font-weight: 300; font-size: 24px; line-height: 1.5; }
.lista-problemas li { padding-block: 17px; border-top: 1px solid rgba(232,231,244,.45); }
.lista-problemas li:last-child { border-bottom: 1px solid rgba(232,231,244,.45); }
.ayuda__cta { margin-top: 90px; text-align: center; }

/* Filosofía */
.filosofia { display: grid; gap: 40px; padding-block: 90px 40px; }
.filosofia h2 { font-weight: 600; font-size: 40px; line-height: 1; text-align: center; padding-inline: 40px; margin-bottom: 20px; text-wrap: balance; }
.filosofia > * { min-width: 0; }
.filosofia__media { order: -1; }
.filosofia__texto { padding-inline: 40px; }
.filosofia__texto p { font-size: 20px; line-height: 1.5; }
.filosofia__texto p + p { margin-top: 15px; }
.carrusel { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-inline: calc(50% - 136px); }
.carrusel::-webkit-scrollbar { display: none; }
.carrusel img { flex: 0 0 273px; width: 273px; aspect-ratio: 1; object-fit: cover; border-radius: 25px; scroll-snap-align: center; }

/* Testimonios */
.testimonios { padding-block: 60px 40px; }
.testimonios h2 { text-align: center; font-weight: 500; font-size: 55px; line-height: 1; padding-inline: 60px; }
.testimonios__calif { display: block; width: 116px; margin: 20px auto 40px; }
.testimonios__grid { display: grid; gap: 14px; }
.testimonios__grid > img { display: none; width: 100%; aspect-ratio: 241 / 300; object-fit: cover; border-radius: 25px; }
.cita { display: flex; flex-direction: column; gap: 35px; padding: 40px 20px; border-radius: 25px; font-size: 18px; line-height: 1.5; }
.cita::before { content: ""; display: block; width: 24px; height: 20px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 20'%3E%3Cpath d='M0 20V11.5C0 4.6 3.4.8 9.6 0l1 2.7C7.1 3.6 5.4 5.6 5.3 8.6H10V20H0zm13.6 0V11.5C13.6 4.6 17 .8 23.2 0l1 2.7c-3.5.9-5.2 2.9-5.3 5.9h4.7V20H13.6z'/%3E%3C/svg%3E") no-repeat center / contain; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 20'%3E%3Cpath d='M0 20V11.5C0 4.6 3.4.8 9.6 0l1 2.7C7.1 3.6 5.4 5.6 5.3 8.6H10V20H0zm13.6 0V11.5C13.6 4.6 17 .8 23.2 0l1 2.7c-3.5.9-5.2 2.9-5.3 5.9h4.7V20H13.6z'/%3E%3C/svg%3E") no-repeat center / contain; }
.cita footer { font-weight: 600; font-size: 20px; line-height: 1; }
.cita--lila { background: var(--lila); }
.cita--verde { background: var(--verde); }

/* Banda oscura (solo desktop, como en WordPress) */
.banda { display: none; background: var(--noche); color: #fff; padding-block: 40px; }
.banda .lista-problemas { margin-top: 0; padding-inline: 0; }

/* Pie */
.pie { background: var(--azul); color: var(--lila); }
.pie__cta { display: grid; gap: 30px; padding-block: 60px; text-align: center; border-bottom: 1px solid rgba(206,204,252,.35); }
.pie__cta h2 { font-weight: 500; font-size: 48px; line-height: 1; }
.pie__cta .btn { margin-inline: 36px; }
.pie__datos { display: grid; gap: 30px; padding: 30px 10px 20px; }
.pie__nombre { font-weight: 400; font-size: 84px; line-height: 1; letter-spacing: -0.05em; }
.pie__contacto { display: grid; gap: 14px; align-content: start; font-size: 24px; line-height: 1.5; padding-left: 10px; }
.pie__contacto a { text-decoration: none; }
.pie__contacto a:hover { text-decoration: underline; }
.pie__redes { display: flex; gap: 22px; margin-top: 6px; padding-left: 4px; }
.pie__redes a { display: inline-flex; width: 26px; height: 26px; }
.pie__legal { display: grid; gap: 12px; padding: 20px 12px 30px; font-family: var(--inter); font-size: 10px; line-height: 1.5; color: var(--gris); }
.pie__legal a { text-decoration: none; }
.pie__legal a:hover { text-decoration: underline; }

/* Páginas legales */
.legal { max-width: 760px; padding: 40px 20px 80px; font-size: 18px; }
.legal h1 { font-weight: 600; font-size: 40px; line-height: 1.1; margin-bottom: 24px; }
.legal h2 { font-weight: 600; font-size: 22px; margin: 30px 0 10px; }
.legal p + p, .legal ul { margin-top: 10px; }
.legal ul { list-style: disc; padding-left: 22px; }

@media (min-width: 640px) {
  .servicios__grid { grid-template-columns: repeat(2, 1fr); }
  .lista-problemas { grid-template-columns: repeat(2, 1fr); grid-auto-flow: column; grid-template-rows: repeat(6, auto); }
  .lista-problemas li:nth-child(6) { border-bottom: 1px solid rgba(232,231,244,.45); }
  .logos { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 960px) {
  .wrap { padding-inline: 32px; }
  .top { padding: 20px 32px 0; max-width: 1184px; margin: 0 auto; }
  .top__logo { width: 193px; }
  .btn--top { min-height: 55px; padding: 0 44px; font-size: 15px; }

  .hero { display: grid; grid-template-columns: 545px 1fr; gap: 40px; align-items: center; text-align: left; padding-top: 30px; }
  .hero h1 { font-size: 68px; }
  .hero__cta { margin-top: 44px; }
  .btn--hero { min-height: 55px; padding: 0 44px; font-size: 15px; }
  .hero__foto { margin-top: 0; }
  .hero__foto img { width: 427px; margin: 0 0 0 auto; }

  .servicios-wrap { margin-top: 100px; }
  .servicios { padding: 30px 0 40px; }
  .servicios__grid { grid-template-columns: repeat(4, 1fr); padding: 20px 13px 0; }
  .servicio { padding-left: 14px; }

  .sobre { margin-top: 100px; padding: 70px 0 100px; }
  .sobre h2 { padding-left: 0; }
  .sobre__grid { grid-template-columns: 1fr 555px; gap: 30px; }
  .sobre__texto { border-radius: 30px; padding: 50px 30px; }
  .sobre__redonda { display: none; }
  .sobre__foto { display: block; }
  .sobre__foto img { width: 555px; height: 720px; object-fit: cover; border-radius: 30px; }
  .logos { border-radius: 30px; margin-top: 30px; padding: 40px 60px; }
  .logos img { height: 40px; }
  .logos img.logo-alto { height: 80px; }

  .ayuda-wrap { margin-top: 100px; }
  .ayuda { padding: 70px 50px; }
  .ayuda h2 { font-size: 48px; text-align: left; }
  .lista-problemas { padding-inline: 0; }
  .ayuda__cta { text-align: left; }
  .btn--ayuda { min-height: 61px; padding: 0 56px; font-size: 15px; }

  .filosofia { grid-template-columns: 408px 1fr; gap: 120px; align-items: center; padding: 140px 32px 60px; }
  .filosofia h2 { font-size: 48px; text-align: left; padding-inline: 0; }
  .filosofia__texto { padding-inline: 0; }
  .carrusel { padding-inline: 0; gap: 20px; }
  .carrusel img { flex-basis: 408px; width: 408px; scroll-snap-align: start; }

  .testimonios { padding-block: 100px 80px; }
  .testimonios h2 { padding-inline: 0; }
  .testimonios__grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .testimonios__grid > img { display: block; height: 100%; }
  .cita { grid-column: span 2; justify-content: space-between; padding: 40px; }

  .banda { display: block; }
  .pie__cta { grid-template-columns: 1fr 382px; gap: 60px; text-align: left; align-items: center; }
  .pie__cta h2 { font-family: var(--inter); }
  .pie__cta .btn { margin: 0; min-height: 55px; font-size: 15px; }
  .pie__datos { grid-template-columns: 1fr 1fr; padding: 40px 32px 20px; }
  .pie__contacto { font-size: 29px; padding-left: 0; }
  .pie__legal { grid-template-columns: 1fr 1fr 1fr; padding: 20px 32px 30px; }
}
