/* =========================================================
   Quiropráctica y Fisioterapia Integral
   Fondo blanco · Diseño creativo/profesional
   Archivos: css/style.css · js/main.js · index.html
   ========================================================= */

:root{
  --bg: #07090d;
  --ink: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.70);
  --line: rgba(255,255,255,.12);

  --card: rgba(255,255,255,.06);
  --shadow: 0 18px 60px rgba(0, 0, 0, .55);

  --a: #d1a547; /* dorado */
  --b: #3aa7ff; /* azul limpio */

  --radius: 18px;
  --radius2: 26px;

  --max: 1120px;
}


*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
  color: var(--ink);
  background: var(--bg);
}

img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
a:hover{ text-decoration: underline; }
strong{ font-weight: 750; }

.container{
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

/* Progress */
.progress{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 9999;
  background: transparent;
}
.progress__bar{
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--a), var(--b));
}

/* Header */
.header{
  position: sticky;
  top: 0;
  z-index: 999;
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,.72);
  border-bottom: 1px solid var(--line);
}
.header__inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
}
.brand{
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 260px;
}
.brand__logoWrap{
  width: 46px;
  height: 46px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(27,127,255,.18);
  background: rgba(255,255,255,.9);
  box-shadow: 0 16px 40px rgba(16, 24, 40, .10);
}
.brand__logo{
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.brand__text{ display: grid; gap: 2px; }
.brand__name{ font-weight: 900; font-size: 14px; }
.brand__tag{ font-size: 12px; color: var(--muted); }

.nav{
  display: flex;
  align-items: center;
  gap: 16px;
  font-weight: 700;
  font-size: 14px;
}
.nav a{ padding: 10px 10px; border-radius: 12px; }
.nav a:hover{
  background: rgba(27,127,255,.08);
  text-decoration: none;
}

/* Mobile nav button */
.navbtn{
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.9);
  box-shadow: 0 10px 30px rgba(16, 24, 40, .06);
}
.navbtn__line{
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: rgba(11, 18, 32, .75);
  border-radius: 2px;
}

/* Buttons */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  font-weight: 800;
  font-size: 14px;
  text-decoration: none !important;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  cursor: pointer;
  user-select: none;
}
.btn:hover{ transform: translateY(-1px); box-shadow: 0 14px 30px rgba(16, 24, 40, .10); }
.btn--sm{ padding: 10px 12px; border-radius: 14px; }
.btn--block{ width: 100%; }
.btn--primary{
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--a), var(--b));
}
.btn--ghost{
  background: rgba(255,255,255,.9);
}
.btn--ghost:hover{
  background: rgba(27,127,255,.06);
  border-color: rgba(27,127,255,.18);
}

/* Hero */
.hero{
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero__bg{
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.blob{
  position: absolute;
  filter: blur(30px);
  opacity: .42;
  transform: translateZ(0);
}
.blob--a{
  width: 520px; height: 520px;
  left: -160px; top: -160px;
  background: radial-gradient(circle at 30% 30%, rgba(27,127,255,.9), rgba(27,127,255,0));
}
.blob--b{
  width: 560px; height: 560px;
  right: -220px; bottom: -220px;
  background: radial-gradient(circle at 40% 40%, rgba(38,211,180,.9), rgba(38,211,180,0));
}
.gridnoise{
  position: absolute;
  inset: 0;
  opacity: .28;
  background-image:
    linear-gradient(to right, rgba(11,18,32,.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(11,18,32,.06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 40% 20%, black 0%, transparent 70%);
}

.hero__inner{
  position: relative;
  display: grid;
  grid-template-columns: 1.25fr .95fr;
  gap: 26px;
  padding: 52px 0 42px;
}
.pill{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(27,127,255,.22);
  background: rgba(255,255,255,.78);
  box-shadow: 0 16px 40px rgba(16, 24, 40, .08);
  font-weight: 850;
  font-size: 12px;
}
h1{
  margin: 14px 0 12px;
  font-size: clamp(30px, 3.4vw, 44px);
  letter-spacing: -0.02em;
  line-height: 1.06;
}
.accent{
  background: linear-gradient(90deg, var(--a), var(--b));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead{
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 70ch;
}
.hero__cta{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}
.hero__meta{
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.meta{
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,.84);
  border: 1px solid var(--line);
}
.meta__k{
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}
.meta__v{
  display: block;
  font-weight: 900;
  font-size: 13px;
}

.hero__media{
  display: grid;
  gap: 12px;
  align-content: start;
}
.mediaCard{
  position: relative;
  border-radius: var(--radius2);
  overflow: hidden;
  border: 1px solid rgba(11,18,32,.10);
  box-shadow: 0 26px 80px rgba(16, 24, 40, .18);
  background: #fff;
}
.mediaCard img{
  width: 100%;
  height: 360px;
  object-fit: cover;
}
.mediaCard__overlay{
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.35) 100%);
}
.mediaCard__cap{
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 10px;
  color: #fff;
}
.cap__title{ font-weight: 950; letter-spacing: .02em; }
.cap__sub{ opacity: .92; font-weight: 700; font-size: 13px; }

.mediaRow{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.miniCard{
  border: 1px solid rgba(11,18,32,.10);
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 16px 55px rgba(16, 24, 40, .12);
  cursor: zoom-in;
}
.miniCard img{
  width: 100%;
  height: 150px;
  object-fit: cover;
}

/* Cards */
.card{
  border-radius: var(--radius2);
  background: rgba(255,255,255,.86);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

/* Sections */
.section{ padding: 64px 0; }
.section--alt{
  background: linear-gradient(180deg, rgba(27,127,255,.04), rgba(38,211,180,.03));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section__head{
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
}
.section__head h2{
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.01em;
}
.section__head p{
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  max-width: 78ch;
}

/* Service grid */
.grid{ display: grid; gap: 18px; }
.grid--3{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
.service{ padding: 18px; }
.service__top{ display: grid; gap: 8px; margin-bottom: 12px; }
.icon{
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(27,127,255,.22);
  background: rgba(255,255,255,.88);
}
.service h3{ margin: 0; font-size: 18px; }
.service p{ margin: 0; color: var(--muted); line-height: 1.55; }

/* Lists */
.list{
  margin: 0;
  padding-left: 18px;
  color: rgba(11,18,32,.86);
  line-height: 1.7;
  font-weight: 700;
}
.list--tight{ line-height: 1.55; }

/* Callout */
.callout{
  margin-top: 18px;
  padding: 18px;
  border-radius: var(--radius2);
  border: 1px solid rgba(27,127,255,.18);
  background: rgba(255,255,255,.9);
  box-shadow: 0 18px 60px rgba(16, 24, 40, .10);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.callout__copy h3{ margin: 0 0 6px; font-size: 18px; }
.callout__copy p{ margin: 0; color: var(--muted); line-height: 1.6; }
.callout__cta{ display: flex; gap: 10px; flex-wrap: wrap; }

/* Steps */
.steps{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.step{ padding: 18px; }
.step__n{
  display: inline-flex;
  width: 44px;
  height: 34px;
  border-radius: 14px;
  align-items: center;
  justify-content: center;
  font-weight: 950;
  letter-spacing: .06em;
  background: rgba(27,127,255,.08);
  border: 1px solid rgba(27,127,255,.18);
  margin-bottom: 10px;
}
.step h3{ margin: 0 0 8px; font-size: 18px; }
.step p{ margin: 0; color: var(--muted); line-height: 1.6; }

/* Split panels */
.split{
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.panel{
  padding: 18px;
  border-radius: var(--radius2);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.9);
  box-shadow: 0 14px 40px rgba(16, 24, 40, .08);
}
.panel--soft{
  background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(27,127,255,.03));
}
.panel h3{ margin: 0 0 8px; font-size: 18px; }
.panel p{ margin: 0 0 12px; color: var(--muted); line-height: 1.6; }

/* Chips */
.chips{ display: flex; gap: 8px; flex-wrap: wrap; }
.chip{
  display: inline-flex;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(38,211,180,.25);
  font-weight: 900;
  font-size: 12px;
}

/* Gallery */
.gallery{
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}
.gitem{
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: zoom-in;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 18px 60px rgba(16, 24, 40, .14);
  border: 1px solid rgba(11,18,32,.10);
}
.gitem img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.gitem:hover img{ transform: scale(1.02); }

.gallery .gitem:nth-child(1){ grid-column: span 6; grid-row: span 2; height: 320px; }
.gallery .gitem:nth-child(2){ grid-column: span 6; height: 320px; }
.gallery .gitem:nth-child(3){ grid-column: span 4; height: 240px; }
.gallery .gitem:nth-child(4){ grid-column: span 4; height: 240px; }
.gallery .gitem:nth-child(5){ grid-column: span 4; height: 240px; }
.gallery .gitem:nth-child(6){ grid-column: span 6; height: 280px; }
.gallery .gitem:nth-child(7){ grid-column: span 6; height: 280px; }

/* Booking */
.booking{
  padding: 18px;
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 16px;
}
.booking h3{ margin: 0 0 8px; font-size: 18px; }
.booking p{ margin: 0; color: var(--muted); line-height: 1.6; }
.booking__actions{ display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }

.info{
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.92);
}
.info--soft{
  margin-top: 10px;
  background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(38,211,180,.03));
}
.info h4{ margin: 0 0 8px; font-size: 14px; }
.info p{ margin: 0; color: var(--muted); line-height: 1.6; }

/* Contact */
.contact{ padding: 18px; display: grid; gap: 16px; }
.contact__brand{
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}
.contact__logo{
  width: 52px;
  height: 52px;
  border-radius: 18px;
  border: 1px solid rgba(27,127,255,.18);
  object-fit: cover;
}
.contact__box h3{ margin: 0 0 4px; font-size: 18px; }
.contact__actions{ display: flex; gap: 10px; flex-wrap: wrap; }
.muted{ color: var(--muted); }

/* Footer */
.footer{ padding-top: 28px; }
.footer__inner{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
  padding: 18px 0;
  color: rgba(11,18,32,.75);
  border-top: 1px solid var(--line);
}
.dot{ opacity: .7; }

/* Floating button */
.float{
  position: fixed;
  right: 18px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 999px;
  border: 1px solid rgba(27,127,255,.22);
  background: rgba(255,255,255,.92);
  box-shadow: 0 18px 50px rgba(16, 24, 40, .16);
  z-index: 999;
}
.float:hover{ text-decoration: none; transform: translateY(-1px); }
.float__icon{
  width: 34px;
  height: 34px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 950;
  background: linear-gradient(135deg, var(--a), var(--b));
}
.float__label{ font-weight: 950; font-size: 13px; }

/* Lightbox */
.lightbox{
  position: fixed;
  inset: 0;
  background: rgba(8, 12, 20, .78);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  z-index: 1000;
}
.lightbox.is-open{ display: flex; }
.lightbox__img{
  max-width: min(980px, 96vw);
  max-height: 86vh;
  border-radius: 22px;
  box-shadow: 0 30px 100px rgba(0,0,0,.45);
  border: 1px solid rgba(255,255,255,.18);
}
.lightbox__close{
  position: absolute;
  top: 18px;
  right: 18px;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.10);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.lightbox__close:hover{ background: rgba(255,255,255,.16); }

/* Reveal animations */
.reveal{
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-in{ opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 980px){
  .hero__inner{ grid-template-columns: 1fr; padding: 44px 0 34px; }
  .hero__meta{ grid-template-columns: 1fr; }
  .grid--3{ grid-template-columns: 1fr; }
  .steps{ grid-template-columns: 1fr; }
  .split{ grid-template-columns: 1fr; }
  .booking{ grid-template-columns: 1fr; }
  .callout{ flex-direction: column; align-items: flex-start; }
  .navbtn{ display: inline-grid; place-items: center; }
  .nav{
    position: absolute;
    right: 20px;
    top: 64px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: min(360px, calc(100vw - 40px));
    padding: 12px;
    border-radius: 18px;
    background: rgba(255,255,255,.95);
    border: 1px solid var(--line);
    box-shadow: 0 24px 70px rgba(16, 24, 40, .18);
  }
  .nav.is-open{ display: flex; }

  .mediaCard img{ height: 280px; }
  .miniCard img{ height: 140px; }

  .gallery{ grid-template-columns: 1fr; }
  .gallery .gitem{ grid-column: auto !important; height: 240px !important; }
}


/* ===== Dark theme overrides ===== */
body{ background: var(--bg); color: var(--ink); }

.header{
  background: rgba(7, 9, 13, .72);
  border-bottom: 1px solid var(--line);
}
.brand__logoWrap{
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(209,165,71,.18);
}
.nav a:hover{ background: rgba(209,165,71,.10); }

.btn{
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line);
}
.btn--ghost:hover{
  background: rgba(209,165,71,.10);
  border-color: rgba(209,165,71,.22);
}
.btn--primary{
  color: #0b0e14;
  background: linear-gradient(135deg, var(--a), #f2d28b);
  border-color: transparent;
}

.pill{
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(209,165,71,.22);
}

.meta, .panel, .info, .card{
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: var(--shadow);
}

.section--alt{
  background: linear-gradient(180deg, rgba(209,165,71,.08), rgba(58,167,255,.06));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.icon{
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(209,165,71,.20);
}

.callout{
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(209,165,71,.18);
}

.mediaCard, .miniCard, .gitem{
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 26px 80px rgba(0,0,0,.55);
}

.lightbox{
  background: rgba(0,0,0,.82);
}
.lightbox__close{
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
}
.lightbox__close:hover{ background: rgba(255,255,255,.16); }

.footer__inner{
  color: rgba(255,255,255,.70);
  border-top: 1px solid rgba(255,255,255,.10);
}

.float{
  background: rgba(7, 9, 13, .80);
  border: 1px solid rgba(255,255,255,.12);
}
.float__icon{
  color: #0b0e14;
  background: linear-gradient(135deg, var(--a), #f2d28b);
}

a{ color: rgba(255,255,255,.92); }
a:hover{ color: #fff; }

.gridnoise{
  opacity: .22;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.07) 1px, transparent 1px);
}
