/* ============================================================
   Clínica Lubens — first draft stylesheet
   Mobile-first. Breakpoints: 768 (tablet), 1024 (desktop).
   ============================================================ */

:root {
  --teal: #0e7c7b;
  --teal-dark: #0a5c5b;
  --promo-blue: #2354c7;
  --ink: #1e2222;
  --muted: #5b6666;
  --line: #e3e6e6;
  --bg: #ffffff;
  --bg-soft: #f6f8f8;
  --radius: 12px;
  --maxw: 1280px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: clamp(1rem, 1.2vw, 1.125rem);
}

img, svg { display: block; max-width: 100%; height: auto; }

a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.15; color: var(--ink); font-weight: 700; }
h1 { font-size: clamp(1.75rem, 4vw, 3.5rem); margin: 0 0 .5rem; }
h2 { font-size: clamp(1.375rem, 3vw, 2.5rem); margin: 0 0 .5rem; }
h3 { font-size: clamp(1.125rem, 2vw, 1.75rem); margin: 0 0 .35rem; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 1.25rem; }

.muted { color: var(--muted); }
.small { font-size: clamp(.8125rem, 1vw, .9375rem); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.35rem); color: var(--muted); max-width: 60ch; }

/* ---- Skip link ---- */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: .75rem 1rem; z-index: 200;
}
.skip-link:focus { left: 0; }

/* ---- Buttons ---- */
.btn {
  display: inline-block; font-weight: 600; text-align: center;
  padding: .85rem 1.4rem; border-radius: 999px; min-height: 48px;
  line-height: 1.3; cursor: pointer; border: 2px solid transparent;
  font-size: clamp(1rem, 1.3vw, 1.125rem); transition: transform .05s ease, background .2s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--teal); color: #fff; }
.btn--primary:hover { background: var(--teal-dark); color: #fff; }
.btn--outline { background: transparent; color: var(--teal); border-color: var(--teal); }
.btn--light { background: #fff; color: var(--ink); }

/* ============================================================
   HEADER + NAV
   ============================================================ */
.site-header { border-bottom: 1px solid rgba(255,255,255,.12); position: sticky; top: 0; background: rgba(30,34,34,.96); backdrop-filter: blur(6px); z-index: 100; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; }

.brand { display: flex; align-items: center; gap: .7rem; line-height: 1.1; }
.brand:hover { text-decoration: none; }
.brand__logo { display: block; height: 53px; width: auto; }

.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 48px; height: 48px; background: none; border: 0; cursor: pointer; padding: 10px;
}
.nav-toggle span { height: 2px; background: #fff; border-radius: 2px; }

.main-nav { display: none; }
.main-nav.is-open { display: block; }

.main-nav__list { list-style: none; margin: 0; padding: .5rem 0 1rem; }
.main-nav__item > a { display: block; padding: .85rem 1.25rem; min-height: 48px; color: #fff; font-weight: 600; }
.main-nav__item[aria-current] > a { color: #7fd6d5; }
.submenu { list-style: none; margin: 0; padding: 0 0 .5rem 1.25rem; }
.submenu a { display: block; padding: .6rem 1.25rem; min-height: 44px; color: #cdd4d4; font-weight: 500; }
.main-nav__cta { padding: .75rem 1.25rem; }
.main-nav__cta .btn { display: block; width: 100%; }

@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .main-nav { display: block; }
  .main-nav__list { display: flex; align-items: center; gap: .25rem; padding: 0; }
  .main-nav__item { position: relative; }
  .main-nav__item > a { padding: .65rem .9rem; }
  .submenu {
    position: absolute; top: 100%; left: 0; min-width: 240px; background: #fff;
    border: 1px solid var(--line); border-radius: var(--radius); padding: .4rem 0;
    box-shadow: 0 12px 30px rgba(0,0,0,.08); opacity: 0; visibility: hidden;
    transform: translateY(6px); transition: all .16s ease; z-index: 50;
  }
  .has-children:hover .submenu, .has-children:focus-within .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
  .submenu a { padding: .55rem 1.1rem; color: var(--muted); }
  .main-nav__cta { padding: 0 0 0 .5rem; }
  .main-nav__cta .btn { width: auto; padding: .6rem 1.2rem; min-height: 44px; }
}

/* ============================================================
   PROMO BAR
   ============================================================ */
.promo { background: #eaf2fb; color: var(--ink); border-bottom: 1px solid #d7e6f7; }
.promo__inner { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; padding-block: .7rem; }
.promo__badge { background: #c1440e; color: #fff; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: .25rem .6rem; border-radius: 999px; }
.promo__text { flex: 1 1 260px; font-size: .95rem; }
.promo__cta { padding: .55rem 1.1rem; min-height: 40px; }

/* ============================================================
   PAGE (simple pages)
   ============================================================ */
.page__head { padding-block: 2.5rem 1rem; }
.prose { padding-block: 1rem 3rem; max-width: 75ch; }
.prose h2 { margin-top: 2rem; }
.prose h3 { margin-top: 1.5rem; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li { margin-bottom: .35rem; }
.prose p { margin: 0 0 1rem; }
.prose strong { color: var(--ink); }
.map-embed { position: relative; width: 100%; aspect-ratio: 4 / 3; margin: 1rem 0 1.5rem; border-radius: var(--radius); overflow: hidden; }
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ============================================================
   HERO (homepage)
   ============================================================ */
.hero { position: relative; }
.hero__media .img-placeholder, .hero__media .img { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: 0 16px 40px rgba(0,0,0,.12); }
.hero__inner { padding-block: 3rem; }
.hero h1 { max-width: 16ch; }
.hero .lead { margin-bottom: 1.5rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; }

@media (min-width: 1024px) {
  .hero { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 2rem; }
  .hero__inner { padding-block: 4.5rem; }
}

/* Homepage location */
.location-home__details { max-width: 38rem; }
.location-home__facts { display: grid; grid-template-columns: 1fr; gap: .75rem; margin: 1.5rem 0; }
.location-home__facts div { border-left: 3px solid var(--brand); padding-left: .75rem; }
.location-home__facts dt { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.location-home__facts dd { margin: .15rem 0 0; font-weight: 600; }
@media (min-width: 640px) {
  .location-home__facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ============================================================
   CAROUSEL (basic dots + arrows, e.g. hero__media)
   ============================================================ */
.carousel { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: 0 16px 40px rgba(0,0,0,.12); aspect-ratio: 4 / 3; }
.carousel__track { display: flex; height: 100%; transition: transform .4s ease; }
.carousel__slide { flex: 0 0 100%; min-width: 0; height: 100%; margin: 0; }
.carousel__slide .img, .carousel__slide .img-placeholder { margin: 0; border-radius: 0; box-shadow: none; height: 100%; }
.carousel__slide img { width: 100%; height: 100%; object-fit: cover; }
.carousel__arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 2.25rem; height: 2.25rem; border-radius: 50%; border: none;
  background: rgba(255,255,255,.75); color: var(--ink); font-size: 1.1rem; line-height: 1;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,.15); opacity: .8; transition: opacity .2s ease, background .2s ease;
}
.carousel__arrow:hover { opacity: 1; background: #fff; }
.carousel__arrow--prev { left: .75rem; }
.carousel__arrow--next { right: .75rem; }
.carousel__dots { position: absolute; bottom: .85rem; left: 50%; transform: translateX(-50%); display: flex; gap: .4rem; }
.carousel__dot { width: .5rem; height: .5rem; padding: 0; border: none; border-radius: 50%; background: rgba(255,255,255,.6); cursor: pointer; }
.carousel__dot.is-active { background: #fff; }

/* ============================================================
   SPLIT (text + image side-by-side, e.g. homepage welcome)
   ============================================================ */
.split { display: grid; gap: 1.75rem; align-items: center; }
.split__media .img, .split__media .img-placeholder { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: 0 16px 40px rgba(0,0,0,.12); }
.split__text .lead { margin-bottom: 1.25rem; }

@media (min-width: 1024px) {
  .split { grid-template-columns: 1fr 1fr; gap: 3rem; }
}

/* ============================================================
   SECTIONS + GRIDS
   ============================================================ */
.section { padding-block: 2.5rem; }
.section--soft { background: var(--bg-soft); }
.section__head { max-width: 60ch; margin-bottom: 1.5rem; }

.grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 768px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } .grid--3 { grid-template-columns: repeat(2, 1fr); } .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } .grid--4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  display: flex; flex-direction: column; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; background: #fff; transition: box-shadow .2s ease, transform .2s ease;
}
.card:hover { box-shadow: 0 12px 30px rgba(0,0,0,.08); transform: translateY(-3px); }
.card a { color: inherit; }
.card__body { padding: 1.1rem 1.2rem 1.3rem; }
.card__body h3 { margin-bottom: .35rem; }
.card__body p { color: var(--muted); margin: 0; }
.card--link { text-decoration: none; }
.card--link:hover { text-decoration: none; }

/* ============================================================
   CONTACT ROW (tappable tel/WhatsApp/email buttons)
   ============================================================ */
.contact-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.contact-row .btn { flex: 1 1 220px; }

/* ============================================================
   BREADCRUMBS
   ============================================================ */
.breadcrumbs { padding: .85rem 1rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; margin: 0; padding: 0; font-size: .8125rem; color: var(--muted); }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: .35rem; color: var(--muted); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--ink); }
.breadcrumbs li[aria-current="page"] { color: var(--ink); font-weight: 600; }

/* ============================================================
   TREATMENT DETAIL
   ============================================================ */
.treatment__hero { position: relative; overflow: hidden; aspect-ratio: 4 / 3; }
.treatment__hero .img, .treatment__hero .img-placeholder { position: absolute; inset: 0; width: 100%; height: 100%; }
.treatment__hero .img img { width: 100%; height: 100%; object-fit: cover; }
.treatment__hero-overlay { position: absolute; inset: 0; display: flex; align-items: flex-end; background: linear-gradient(to top, rgba(0,0,0,.65), rgba(0,0,0,0) 60%); }
.treatment__hero-overlay h1, .treatment__hero-overlay .lead { color: #fff; }
.treatment__hero-overlay h1 { font-size: clamp(1.375rem, 6vw, 3.5rem); max-width: 20ch; }
.treatment__hero-overlay .lead { font-size: clamp(.9rem, 3.2vw, 1.35rem); margin-bottom: 0; max-width: 45ch; }
.treatment__hero-overlay .container { padding-block: 1rem 1.25rem; }

@media (min-width: 768px) {
  .treatment__hero { aspect-ratio: 16 / 6; }
}
.treatment__actions { display: flex; flex-wrap: wrap; gap: .75rem; padding-block: 1.25rem .25rem; }
.treatment__actions .btn { flex: 0 1 auto; }
@media (max-width: 480px) {
  .treatment__actions .btn { flex: 1 1 100%; }
}
.treatment__meta { list-style: none; display: flex; flex-wrap: wrap; gap: 1rem 2rem; padding: 1.25rem; margin: 0; border-bottom: 1px solid var(--line); }
.treatment__meta li { font-weight: 600; }
.treatment__meta span { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }

/* ============================================================
   FAQ
   ============================================================ */
.faq { padding-block: 1rem 3rem; max-width: 75ch; }
.faq__list { margin: 0; }
.faq__item { border-bottom: 1px solid var(--line); padding-block: 1.1rem; }
.faq__item dt { font-weight: 700; margin-bottom: .4rem; }
.faq__item dd { margin: 0; color: var(--muted); }

/* ============================================================
   TEAM (Nosotros — staff cards)
   ============================================================ */
.team-card__body { text-align: center; }
.team-card__name { margin-bottom: .6rem; }
.team-card__facts { margin: 0 0 .75rem; }
.team-card__facts div:not(:last-child) { margin-bottom: .5rem; }
.team-card__facts dt {
  font-size: .68rem; text-transform: uppercase; letter-spacing: .06em;
  color: var(--muted); font-weight: 700;
}
.team-card__facts dd { margin: 0; font-size: .9rem; color: var(--ink); }
.team-card__bio { color: var(--muted); font-size: .9rem; margin: 0; text-align: left; }

/* ============================================================
   REVIEWS (curated Google testimonial)
   ============================================================ */
.review-card { max-width: 640px; margin-inline: auto; text-align: center; }
.review-card__stars { color: #e8a900; font-size: 1.25rem; letter-spacing: .15em; margin-bottom: .75rem; }
.review-card__text { color: var(--ink); font-size: clamp(1.05rem, 1.6vw, 1.35rem); margin: 0 0 .75rem; }
.review-card__author { color: var(--muted); font-size: .875rem; margin: 0; font-weight: 600; }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band { background: var(--teal); color: #fff; text-align: center; padding-block: 3rem; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.85); margin-bottom: 1.25rem; }
.cta-band .btn--primary { background: #fff; color: var(--teal); }
.cta-band .btn--primary:hover { background: #f0f0f0; color: var(--teal-dark); }
.cta-band .btn--outline { color: #fff; border-color: rgba(255,255,255,.75); }
.cta-band .btn--outline:hover { background: rgba(255,255,255,.12); color: #fff; }
.cta-band__steps {
  list-style: none; padding: 0; max-width: 56ch;
  margin: 0 auto 1.5rem; text-align: left; color: rgba(255,255,255,.9);
}
.cta-band__steps li { position: relative; padding-left: 1.6rem; margin-bottom: .5rem; }
.cta-band__steps li::before { content: "✓"; position: absolute; left: 0; font-weight: 700; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }
.cta-band .small { color: rgba(255,255,255,.7); margin: 1rem auto 0; max-width: 60ch; }

/* ---- Inline contextual CTA (mid-page) ---- */
.cta-inline { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; margin: 1.75rem 0 2.25rem; }
.cta-inline__alt { font-weight: 600; }
.prose--urgent { padding-bottom: 1.25rem; }
.urgent-mid-cta .cta-inline { margin-bottom: .5rem; }
.urgent-directions { margin: 1rem 0 2.5rem; padding: 1.5rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.urgent-directions h2 { margin-top: 0; }
@media (max-width: 640px) {
  .cta-inline { align-items: stretch; gap: .65rem; }
  .cta-inline .btn { width: 100%; }
  .cta-inline__alt {
    display: block;
    width: 100%;
    margin-top: .55rem;
    padding-inline: .75rem;
    text-align: center;
  }
}

/* ---- Practitioner (treatment pages) ---- */
.practitioner__inner { display: grid; gap: 1.5rem; align-items: center; }
.practitioner__photo { max-width: 240px; }
.practitioner__photo .img, .practitioner__photo .img-placeholder { border-radius: var(--radius); overflow: hidden; }
.practitioner__name { font-size: clamp(1.125rem, 2vw, 1.5rem); font-weight: 700; margin: 0 0 .15rem; }
.practitioner__role { color: var(--muted); font-weight: 600; margin: 0 0 .75rem; }
@media (min-width: 768px) {
  .practitioner__inner { grid-template-columns: 240px 1fr; gap: 2.5rem; }
}

/* ============================================================
   IMAGE PLACEHOLDERS
   ============================================================ */
.img-placeholder { margin: 0; width: 100%; border: 1px dashed rgba(0,0,0,.15); }
.img-placeholder svg { width: 100%; height: 100%; }
.img { margin: 0; }

/* ============================================================
   /ig/ LINK-IN-BIO PAGE
   ============================================================ */
.ig { max-width: 480px; margin-inline: auto; padding: 2rem 1.25rem 3rem; text-align: center; }
.ig__logo { font-weight: 800; font-size: 1.5rem; }
.ig__tag { color: var(--muted); font-size: .9rem; margin-bottom: 1.5rem; }
.ig__links { list-style: none; padding: 0; margin: 1.25rem 0; display: grid; gap: .7rem; }
.ig__links a { display: flex; align-items: center; justify-content: center; gap: .5rem; min-height: 52px; border: 1px solid var(--line); border-radius: 999px; font-weight: 600; color: var(--ink); background: #fff; }
.ig__links a:hover { border-color: var(--teal); text-decoration: none; }
.ig__primary a { background: var(--teal); color: #fff; border-color: var(--teal); }
.ig__promo { background: #eaf2fb; color: var(--ink); border: 1px solid #d7e6f7; border-left: 4px solid var(--promo-blue); border-radius: var(--radius); padding: 1rem; margin: 1rem 0; }
.ig__contact { display: flex; gap: .5rem; justify-content: center; margin-top: 1.25rem; }
.ig__contact a { flex: 1; }

/* ============================================================
   STICKY MOBILE CTA BAR
   ============================================================ */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
  display: flex; background: #fff; border-top: 1px solid var(--line);
  box-shadow: 0 -4px 16px rgba(0,0,0,.08);
}
.sticky-cta__item {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: .4rem;
  min-height: 56px; font-weight: 700; font-size: .85rem; color: var(--ink);
}
.sticky-cta__item:hover { text-decoration: none; background: var(--bg-soft); }
.sticky-cta__item--primary { background: var(--teal); color: #fff; }
.sticky-cta__item--primary:hover { background: var(--teal-dark); color: #fff; }
body { padding-bottom: 56px; }

@media (min-width: 1024px) {
  .sticky-cta { display: none; }
  body { padding-bottom: 0; }
}

/* ============================================================
   COOKIE CONSENT BANNER
   ============================================================ */
.cookie-banner {
  position: fixed; left: 1rem; right: 1rem; bottom: calc(56px + 1rem); z-index: 160;
  max-width: 480px; margin-inline: auto; background: var(--ink); color: #fff;
  border-radius: var(--radius); padding: 1.1rem 1.25rem; box-shadow: 0 12px 30px rgba(0,0,0,.25);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0 0 .85rem; font-size: .9rem; color: rgba(255,255,255,.85); }
.cookie-banner__actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.cookie-banner .btn { min-height: 40px; padding: .55rem 1rem; font-size: .9rem; }

@media (min-width: 1024px) {
  .cookie-banner { bottom: 1rem; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--ink); color: #cdd4d4; margin-top: 3rem; }
.site-footer a { color: #cdd4d4; }
.site-footer a:hover { color: #fff; }
.site-footer__grid { display: grid; grid-template-columns: 1fr; gap: 1.75rem; padding-block: 2.5rem; }
.site-footer__logo { display: block; height: 62px; width: auto; margin-bottom: .9rem; }
.site-footer__location { margin: 0 0 .9rem; color: #cdd4d4; font-size: .75rem; font-weight: 700; letter-spacing: .1em; }
.site-footer__title { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: #8b9797; margin-bottom: .6rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .4rem; }
.footer-contact { font-style: normal; line-height: 1.7; }
.site-footer__bottom { border-top: 1px solid #2c3232; }
.site-footer__bottom .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; padding-block: 1rem; }
.site-footer .muted { color: #8b9797; }

@media (min-width: 768px) { .site-footer__grid { grid-template-columns: 2fr 1fr 1fr; } }
@media (min-width: 1024px) { .site-footer__grid { grid-template-columns: 2fr 1fr 1fr 1.4fr; } }

/* Treatment "Tratamiento a cargo de" block */
.practitioners__intro { color: var(--muted); max-width: 60ch; margin: 0 0 1.5rem; }
.practitioners__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1.75rem 1rem;
  justify-items: center;
}
.practitioner-card {
  background: transparent; border: 0; box-shadow: none; padding: 0;
  text-align: center; max-width: 180px; width: 100%;
}
.practitioner-card .img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; width: 100%; }
.practitioner-card .img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.practitioner-card__body { padding: .65rem 0 0; }
.practitioner-card__name { margin-bottom: .5rem; font-size: 1rem; }
.practitioner-card__name a { color: var(--teal-dark); text-decoration: none; }
.practitioner-card__name a:hover { text-decoration: underline; }
.practitioner-card__cred { color: var(--teal-dark); font-size: .82rem; font-weight: 600; margin: 0 0 .5rem; line-height: 1.35; }
.practitioner-card__facts { margin: 0; }
.practitioner-card__facts div:not(:last-child) { margin-bottom: .5rem; }
@media (min-width: 768px) {
  .practitioners__grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
}

.practitioners__editorial { margin-top: 1.75rem; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); }
.practitioners__editorial p { margin: 0 0 .2rem; }
.practitioners__editorial .ed-lbl { color: var(--ink); font-weight: 600; }
.practitioners__editorial a { color: var(--teal-dark); }
