/*
Theme Name: Dr_Theme
Theme URI: https://daalit.com
Description: Plantilla profesional y moderna para médicos. Contenido editable desde el panel "Mi Sitio", colores y layout personalizables. Producto de DAAL IT.
Version: 2.0.1
Author: DAAL IT
Text Domain: dr-theme
*/

/* ============================================================
   PALETA PASTEL
   ============================================================ */
:root {
  --bg:            #F6F3FB;   /* lavanda blanco */
  --surface:       #FFFFFF;
  --surface-2:     #EFE9F8;
  --primary:       #7C6BB0;   /* violeta pastel */
  --primary-deep:  #5C4B94;
  --primary-soft:  #E6DFF4;
  --accent:        #E9A6C3;   /* rosa pastel */
  --accent-soft:   #F9DCE8;
  --mint:          #9FC9BE;   /* menta suave */
  --mint-soft:     #DFF0EB;
  --lavender:      #D8CCF0;
  --text:          #39324C;
  --text-soft:     #6B6480;
  --radius:        22px;
  --radius-sm:     14px;
  --shadow:        0 12px 40px rgba(92, 75, 148, 0.10);
  --shadow-lg:     0 24px 60px rgba(92, 75, 148, 0.16);
  --grad-hero:     linear-gradient(135deg, #E6DFF4 0%, #F9DCE8 50%, #DFF0EB 100%);
}

/* ============================================================
   BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  letter-spacing: -0.01em;
}
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 .5em;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.2;
}
a { color: var(--primary-deep); text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.container { width: min(1180px, 92%); margin-inline: auto; }
#main { display: flex; flex-direction: column; }
.section { padding: 96px 0; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; border-radius: 999px;
  padding: 15px 30px; cursor: pointer; border: none;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 10px 24px rgba(124,107,176,.35); }
.btn-primary:hover { background: var(--primary-deep); transform: translateY(-2px); box-shadow: 0 16px 32px rgba(92,75,148,.4); }
.btn-outline { background: transparent; color: var(--primary-deep); border: 1.5px solid var(--primary); }
.btn-outline:hover { background: var(--primary-soft); transform: translateY(-2px); }


/* ============================================================
   NAV
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(246,243,251,.86);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid rgba(92,75,148,.10);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; color: var(--text); font-size: 1.05rem; }
.brand .dot {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--grad-hero);
  display: grid; place-items: center; font-size: 1.05rem;
}
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { color: var(--text); font-weight: 500; font-size: .98rem; }
.nav-links a:hover { color: var(--primary-deep); }
.nav-cta { padding: 11px 22px; }
/* El botón "Agendar Cita" del menú debe tener texto blanco (más específico que .nav-links a) */
.nav-links a.btn-primary,
.nav-links a.btn-primary:hover {
  color: #fff;
}

/* ============================================================
   HERO
   ============================================================ */
.hero { background: var(--grad-hero); position: relative; overflow: hidden; padding: 110px 0; }
.hero::after {
  content: ""; position: absolute; right: -120px; top: -120px;
  width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.7), transparent 60%);
}
.hero .container { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
.eyebrow {
  display: inline-block; background: #fff; color: var(--primary-deep);
  font-weight: 600; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase;
  padding: 8px 16px; border-radius: 999px; margin-bottom: 24px;
}
.hero-copy { max-width: 640px; }
.hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); line-height: 1.12; margin-bottom: 20px; }
.hero h1 span { color: var(--primary-deep); }
.hero p { font-size: 1.12rem; line-height: 1.7; color: var(--text-soft); max-width: 540px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
/* Estadísticas del hero: 3 tarjetas iguales, separadas del bloque de texto */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(92, 75, 148, .14);
}
.hero-stats .stat {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  min-height: 92px;
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(92, 75, 148, .16);
  border-radius: 18px;
  padding: 16px 18px;
  box-shadow: 0 10px 26px rgba(57, 50, 76, .07);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.hero-stats .stat strong {
  display: block;
  font-size: clamp(1.2rem, 1.7vw, 1.4rem);
  line-height: 1.2;
  color: var(--primary-deep);
  margin-bottom: 6px;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.hero-stats .stat span {
  display: block;
  color: var(--text-soft);
  font-size: .85rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
  -webkit-hyphens: auto;
  hyphens: auto;
}
.hero-photo {
  border-radius: 40px; overflow: hidden; box-shadow: var(--shadow-lg);
  background: #fff; padding: 14px;
}
.brand-logo { height: 46px; width: auto; display: block; }
.hero-photo img { border-radius: 30px; width: 100%; display: block; }
.hero-badge {
  position: absolute; bottom: 26px; left: -18px;
  background: #fff; border-radius: 18px; padding: 14px 18px;
  box-shadow: var(--shadow); display: flex; gap: 12px; align-items: center;
}
.hero-badge .ico { width: 42px; height: 42px; border-radius: 12px; background: var(--mint-soft); display: grid; place-items: center; font-size: 1.2rem; }
.hero-badge b { display: block; font-size: .95rem; color: var(--text); }
.hero-badge span { font-size: .82rem; color: var(--text-soft); }

/* ============================================================
   SECCIÓN: SOBRE MÍ
   ============================================================ */
.about { background: var(--surface); }
.section-head { max-width: 640px; margin: 0 auto 60px; text-align: center; }
.section-head .eyebrow { margin-bottom: 14px; }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.section-head p { color: var(--text-soft); font-size: 1.06rem; }
.about-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 60px; align-items: center; }
.about-img { border-radius: 34px; overflow: hidden; box-shadow: var(--shadow-lg); }
.about-img img { width: 100%; display: block; }
.about-copy h3 { font-size: 1.6rem; margin-bottom: 16px; }
.about-copy p { color: var(--text-soft); margin-bottom: 20px; }
.about-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 12px; }
.about-list li { display: flex; gap: 12px; align-items: flex-start; }
.about-list li::before {
  content: "✓"; flex: 0 0 26px; height: 26px; border-radius: 50%;
  background: var(--mint-soft); color: var(--primary-deep);
  display: grid; place-items: center; font-weight: 700;
}

/* ============================================================
   SECCIÓN: SERVICIOS
   ============================================================ */
.services { background: var(--bg); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; }
.card {
  background: var(--surface); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow);
  border: 1px solid rgba(92,75,148,.06);
  display: flex; flex-direction: column; justify-content: center;
  transition: transform .3s ease, box-shadow .3s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card .ico {
  width: 56px; height: 56px; border-radius: 16px;
  display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 18px;
}
.card.rose .ico { background: var(--accent-soft); }
.card.mint .ico { background: var(--mint-soft); }
.card.lav .ico { background: var(--lavender); }
.card h3 { font-size: 1.18rem; margin-bottom: 8px; }
.card p { color: var(--text-soft); font-size: .96rem; margin: 0; }

/* ============================================================
   SECCIÓN: ESPECIALIDADES
   ============================================================ */
.specialties { background: var(--surface-2); }
.spec-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.spec {
  background: var(--surface); border-radius: var(--radius); padding: 30px 26px;
  box-shadow: var(--shadow); border-top: 4px solid var(--primary);
  display: flex; flex-direction: column; justify-content: center; gap: 8px;
}
.spec .spec-ico {
  width: 54px; height: 54px; border-radius: 14px;
  display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 6px;
}
.spec-t1 { border-top-color: #7C6BB0; }
.spec-t1 .spec-ico { background: #E6DFF4; }
.spec-t2 { border-top-color: #E9A6C3; }
.spec-t2 .spec-ico { background: #F9DCE8; }
.spec-t3 { border-top-color: #9FC9BE; }
.spec-t3 .spec-ico { background: #DFF0EB; }
.spec-t4 { border-top-color: #D8CCF0; }
.spec-t4 .spec-ico { background: #E6DFF4; }
.spec h3 { font-size: 1.15rem; margin: 0; }
.spec p { color: var(--text-soft); font-size: .95rem; margin: 0; }

/* ============================================================
   SECCIÓN: POR QUÉ ELEGIRME
   ============================================================ */
.why { background: var(--surface); }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 26px; }
.why-item { text-align: center; padding: 30px 22px; border-radius: var(--radius); background: var(--bg); display: flex; flex-direction: column; justify-content: center; }
.why-item .ico { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 1.7rem; box-shadow: var(--shadow); }
.why-item h3 { font-size: 1.1rem; margin-bottom: 8px; }
.why-item p { color: var(--text-soft); font-size: .95rem; margin: 0; }


/* ============================================================
   SECCIÓN: CONTACTO / CTA
   ============================================================ */
.contact { background: var(--grad-hero); }
.contact-wrap {
  background: #fff; border-radius: 34px; padding: 60px;
  box-shadow: var(--shadow-lg); display: grid;
  grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
.contact h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.contact p { color: var(--text-soft); margin-bottom: 28px; }
.contact-channels { display: grid; gap: 14px; }
.channel { display: flex; align-items: center; gap: 16px; padding: 18px; border-radius: var(--radius-sm); background: var(--bg); }
.channel .ico { width: 48px; height: 48px; border-radius: 14px; background: #fff; display: grid; place-items: center; font-size: 1.3rem; box-shadow: var(--shadow); }
.channel b { display: block; }
.channel span { color: var(--text-soft); font-size: .9rem; }
.channel a { color: var(--primary-deep); font-weight: 600; }
.contact-photo { border-radius: 26px; overflow: hidden; box-shadow: var(--shadow); }
.contact-photo img { width: 100%; display: block; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: #2E2840; color: rgba(255,255,255,.8); padding: 48px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 30px; }
.footer-grid h4 { color: #fff; font-size: 1.02rem; margin-bottom: 14px; }
.footer-grid a { color: rgba(255,255,255,.78); display: block; margin-bottom: 8px; }
.footer-grid a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; font-size: .85rem; text-align: center; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
/* Botón menú móvil (oculto en escritorio) */
.nav-toggle {
  display: none;
  flex-direction: column; gap: 5px; background: none; border: none;
  cursor: pointer; padding: 8px; z-index: 110;
}
.nav-toggle span { width: 26px; height: 3px; border-radius: 2px; background: var(--text); display: block; }

@media (max-width: 900px) {
  .hero .container, .about-grid, .contact-wrap { grid-template-columns: 1fr; }
  .hero .container { gap: 44px; }
  .hero { padding: 70px 0; }
  .hero-badge { left: 10px; }
  .nav-links { gap: 16px; }
  .section { padding: 64px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
}

@media (max-width: 768px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: #fff; padding: 18px 6%; display: none;
    box-shadow: 0 20px 30px rgba(57,50,76,.12);
    border-top: 1px solid rgba(92,75,148,.08);
  }
  .nav-links a { padding: 12px 8px; font-size: 1rem; border-radius: 10px; }
  .nav-links a:hover { background: var(--surface-2); }
  .nav-links.open { display: flex; }
  .nav-links .nav-cta { margin-top: 8px; text-align: center; justify-content: center; }

  .hero { padding: 52px 0; }
  .hero h1 { font-size: 2rem; margin-bottom: 16px; }
  .hero p { margin-bottom: 26px; }
  .hero .container { gap: 38px; }
  .hero-stats { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-top: 30px; padding-top: 26px; }
  .hero-stats .stat { min-height: 84px; padding: 14px 15px; border-radius: 16px; }
  .hero-stats .stat strong { font-size: 1.15rem; margin-bottom: 4px; }
  .hero-badge { bottom: 12px; left: 8px; padding: 10px 14px; }
  .about-copy h3, .section-head h2 { font-size: 1.5rem; }
  .cards, .spec-grid, .why-grid { grid-template-columns: 1fr; }
  .contact-wrap { padding: 28px 20px; }
  .footer-grid { gap: 22px; }
  .page-hero { padding: 46px 0 40px; }
}


/* ============================================================
   PÁGINAS INTERNAS
   ============================================================ */
.page-hero {
  background: var(--grad-hero); padding: 70px 0 60px; text-align: center;
}
.page-hero h1 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin: 0; }
.page-body { padding: 70px 0; }
.page-card {
  background: var(--surface); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 50px;
}
.page-card h2 { font-size: 1.5rem; margin-top: 1.2em; }
.page-card p { color: var(--text-soft); }

/* ============================================================
   PÁGINA DE CONTACTO  (logo + canales + horarios + ubicación)
   ============================================================ */
.contact-logo {
  display: block; margin: 0 auto 24px;
  max-height: 90px; width: auto;
}
.contact-top {
  background: var(--grad-hero); border-radius: var(--radius);
  padding: 40px; text-align: center; margin-bottom: 34px;
}
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 26px; }
.contact-col {
  background: var(--surface); border-radius: var(--radius);
  padding: 34px; box-shadow: var(--shadow);
}
.contact-col h3 { font-size: 1.25rem; margin-bottom: 18px; }
.channel { display: flex; align-items: center; gap: 16px; padding: 16px; border-radius: var(--radius-sm); background: var(--bg); margin-bottom: 12px; }
.channel .ico { width: 46px; height: 46px; border-radius: 14px; background: #fff; display: grid; place-items: center; font-size: 1.2rem; box-shadow: var(--shadow); flex: 0 0 auto; }
.channel b { display: block; }
.channel span, .channel a { color: var(--text-soft); }
.channel a { color: var(--primary-deep); font-weight: 600; }

/* Horarios */
.horarios table { width: 100%; border-collapse: collapse; }
.horarios th, .horarios td { padding: 12px 10px; text-align: left; border-bottom: 1px solid rgba(92,75,148,.08); }
.horarios th { color: var(--primary-deep); font-size: .86rem; text-transform: uppercase; letter-spacing: .06em; }
.horarios td { color: var(--text); }
.horarios .cerrado { color: #c0392b; font-weight: 600; }

/* Ubicación */
.ubicacion .map {
  margin-top: 16px; border-radius: var(--radius-sm); overflow: hidden;
  border: 1px solid rgba(92,75,148,.1);
}
.ubicacion iframe { width: 100%; height: 240px; border: 0; display: block; }

/* Formulario de contacto (WPForms) */
.wpforms-container { margin-top: 20px; }
.wpforms-form button[type=submit], .wpforms-form .wpforms-submit {
  background: var(--primary) !important; border-radius: 999px !important;
  font-weight: 600 !important; color: #fff !important;
  padding: 14px 30px !important; border: none !important;
}

@media (max-width: 820px) {
  .contact-grid { grid-template-columns: 1fr; }
  .page-card, .contact-col, .contact-top { padding: 26px 20px; }
}


/* ============================================================
   PÁGINA: CLÍNICA DE SUEÑO
   ============================================================ */
.sleep-intro { background: var(--surface); }
.sleep-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 50px; align-items: center; }
.sleep-grid img { border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.sleep-copy p { color: var(--text-soft); margin-bottom: 16px; }
.sleep-stats { display: grid; grid-template-columns: repeat(auto-fit,minmax(150px,1fr)); gap: 18px; margin-top: 26px; }
.sleep-stat { background: var(--bg); border-radius: var(--radius-sm); padding: 20px; text-align: center; }
.sleep-stat b { display: block; font-size: 1.6rem; color: var(--primary-deep); }
.sleep-stat span { color: var(--text-soft); font-size: .88rem; }

.sleep-treat { background: var(--bg); }
.sleep-steps { display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 22px; }
.step { background: var(--surface); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow); position: relative; }
.step .num { width: 46px; height: 46px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 700; margin-bottom: 16px; }
.step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.step p { color: var(--text-soft); font-size: .95rem; margin: 0; }

.sleep-cta { background: var(--grad-hero); text-align: center; }
.sleep-cta .container { background: #fff; border-radius: 34px; padding: 56px 40px; box-shadow: var(--shadow-lg); max-width: 820px; }
.sleep-cta h2 { font-size: clamp(1.7rem,3vw,2.4rem); margin-bottom: 12px; }
.sleep-cta p { color: var(--text-soft); margin-bottom: 26px; }

/* ============================================================
   PÁGINA: GRACIAS
   ============================================================ */
.thanks { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 70px 0; }
.thanks .tick { width: 90px; height: 90px; border-radius: 50%; background: var(--mint-soft); display: grid; place-items: center; font-size: 2.6rem; margin: 0 auto 26px; }
.thanks h1 { font-size: clamp(1.9rem,3.4vw,2.6rem); margin-bottom: 14px; }
.thanks p { color: var(--text-soft); max-width: 520px; margin: 0 auto 30px; }

@media (max-width: 820px) {
  .sleep-grid { grid-template-columns: 1fr; }
  .sleep-cta .container { padding: 40px 22px; }
}

