/* ===========================================================
   Andrew Hazbun Specialized Center — hoja de estilos principal
   =========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Montserrat:wght@300;400;500;600;700&family=Allura&display=swap');

:root{
  --black: #0b0b0c;
  --charcoal: #17181b;
  --charcoal-2: #1f2024;
  --line: rgba(255,255,255,0.10);
  --white: #f5f4f1;
  --white-dim: rgba(245,244,241,0.88);
  --white-faint: rgba(245,244,241,0.68);
  --gold: #c8a862;
  --gold-soft: rgba(200,168,98,0.35);
  --whatsapp: #25D366;

  --serif: 'Playfair Display', 'Georgia', serif;
  --sans: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --script: 'Allura', cursive;

  --container: 1180px;
  --radius: 2px;
  --header-h: 84px;
}

@media (min-width: 1440px){
  :root{ --container: 1320px; }
}
@media (min-width: 1800px){
  :root{ --container: 1500px; }
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; overflow-x: hidden; width: 100%; }

body{
  margin: 0;
  background: var(--black);
  color: var(--white-dim);
  font-family: var(--sans);
  font-size: 17.5px;
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{ animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }

.container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4{
  font-family: var(--serif);
  color: var(--white);
  font-weight: 600;
  letter-spacing: 0.01em;
  margin: 0 0 0.5em;
}

h1{ font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.15; }
h2{ font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.2; }
h3{ font-size: 1.3rem; }

p{ margin: 0 0 1em; }

.eyebrow{
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-block;
  margin-bottom: 0.9em;
}

@media (min-width: 901px){
  .eyebrow{ font-size: 0.82rem; }
}

.script{
  font-family: var(--script);
  font-weight: 400;
  color: var(--white);
  line-height: 1.3;
  font-size: 1.6em;
}

.lede{
  font-size: 1.18rem;
  color: var(--white-dim);
  max-width: 60ch;
}

.center{ text-align: center; margin-left:auto; margin-right:auto; }

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 0.95em 1.9em;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.btn-gold{
  background: var(--gold);
  color: #16130b;
}
.btn-gold:hover{ background: #ddbd7c; }

.btn-outline{
  border-color: var(--gold);
  color: var(--white);
  background: rgba(200,168,98,0.1);
}
.btn-outline:hover{ border-color: var(--gold); background: rgba(200,168,98,0.2); }

.btn-whatsapp{
  background: var(--whatsapp);
  color: #06210f;
}
.btn-whatsapp:hover{ background: #2fe075; }

.btn-call{
  border-color: var(--gold);
  color: var(--white);
  background: rgba(200,168,98,0.08);
}
.btn-call:hover{ background: rgba(200,168,98,0.16); }
.btn svg{ width: 1.1em; height: 1.1em; flex: none; }

.btn-block{ width: 100%; }

/* ---------- Header ---------- */
body{ padding-top: var(--header-h); }

.site-header{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  transition: transform 0.35s ease;
}
.site-header.header-hidden{ transform: translateY(-100%); }
.site-header::before{
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(11,11,12,0.86);
  backdrop-filter: blur(10px);
}
.site-header .container{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}
.brand{ display:flex; align-items:center; gap: 12px; }
.brand img{ height: 46px; width: auto; }

.main-nav{
  display: flex;
  align-items: center;
  gap: 36px;
}
.main-nav a{
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white-dim);
  position: relative;
  padding: 6px 0;
  transition: color 0.25s ease;
}
.main-nav a:hover, .main-nav a.active{ color: var(--white); }
.main-nav a.active::after{
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: var(--gold);
}
.nav-cta{ display:flex; align-items:center; gap: 14px; }
.nav-cta .btn{ padding: 0.75em 1.5em; }
.nav-wa svg{ display: none; }

.nav-call{
  width: 40px; height: 40px;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--gold-soft);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s ease;
}
.nav-call:hover{ border-color: var(--gold); background: rgba(200,168,98,0.08); }
.nav-call svg{ width: 18px; height: 18px; }

.nav-toggle{
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.6rem;
  cursor: pointer;
}

@media (max-width: 900px){
  .main-nav{
    position: fixed;
    z-index: 150;
    top: var(--header-h); right: 0; bottom: 0; left: auto;
    width: min(320px, 86vw);
    background: var(--black);
    border-left: 1px solid var(--line);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 40px 28px;
    gap: 26px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
  }
  .main-nav.open{ transform: translateX(0); }
  .main-nav a{ font-size: 1rem; }
  .nav-toggle{ display: block; }
  .nav-cta .btn-outline{ display: none; }
}

@media (max-width: 480px){
  :root{ --header-h: 72px; }
  .site-header .container{ padding: 0 16px; height: 72px; }
  .brand img{ height: 34px; }
  .nav-cta{ gap: 8px; }
  .site-header .nav-cta .btn-whatsapp.nav-wa{
    width: 38px; height: 38px;
    padding: 0;
    border-radius: 50%;
    flex: none;
  }
  .nav-wa .btn-label{ display: none; }
  .nav-wa svg{ display: block; width: 18px; height: 18px; }
  .nav-call{ width: 38px; height: 38px; }
  .nav-call svg{ width: 16px; height: 16px; }
  .nav-toggle{ font-size: 1.3rem; }
}

/* ---------- Hero ---------- */
.hero{
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg{
  position: absolute; inset: -3%;
  background-size: cover;
  background-position: center;
  animation: kenburns 26s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes kenburns{
  from{ transform: scale(1); }
  to{ transform: scale(1.09); }
}
.hero-overlay{
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(6,6,7,0.94) 8%, rgba(6,6,7,0.62) 52%, rgba(6,6,7,0.4) 100%);
}
.hero-inner{
  position: relative;
  z-index: 2;
  max-width: 640px;
  padding: 100px 24px;
}
@media (min-width: 1100px){
  .hero-inner{ max-width: 820px; }
}
@media (min-width: 1500px){
  .hero-inner{ max-width: 960px; }
}
.hero .lede{ color: var(--white-dim); }
.hero-actions{ display: flex; gap: 16px; flex-wrap: wrap; margin-top: 2em; }

.hero-textbox{
  display: inline-block;
  max-width: 100%;
  background: rgba(8,7,6,0.7);
  border-radius: var(--radius);
  padding: clamp(18px, 3.4vw, 36px) clamp(20px, 4vw, 40px);
}
.hero-textbox .eyebrow,
.hero-textbox h1,
.hero-textbox .lede{ text-shadow: none; }

.hero-sub{
  min-height: 46vh;
}
.hero-sub .hero-inner{ padding: 160px 24px 60px; }

/* Text needs guaranteed contrast regardless of what's in the photo behind it. */
.hero h1, .hero .eyebrow, .hero .lede,
.hero-sub h1, .hero-sub .eyebrow, .hero-sub .lede{
  text-shadow: 0 2px 20px rgba(0,0,0,0.7), 0 1px 4px rgba(0,0,0,0.8);
}

.hero-bg-index{
  background-image: url('../images/reception-entrance.jpg');
  background-position: center 35%;
}
.hero-bg-contacto{
  background-image: url('../images/reception-moody.jpg');
  background-position: center 40%;
}
.hero-bg-servicios{
  background-image: url('../images/team-treatment-h.jpg');
}
.hero-bg-about{
  background-image: url('../images/hero-golden-hour.jpg');
  background-position: center 55%;
}

@media (max-width: 640px){
  .hero-sub{ min-height: 58vh; }
  .hero-sub .hero-overlay{
    background: linear-gradient(180deg, rgba(6,6,7,0.82) 0%, rgba(6,6,7,0.5) 45%, rgba(6,6,7,0.68) 100%);
  }
  .hero-bg-index{
    background-position: 60% 35%;
  }
  .hero-bg-contacto{
    background-position: center 40%;
  }
  .hero-bg-servicios{
    background-position: 60% center;
  }
  .hero-bg-about{
    background-position: 35% 55%;
  }
  .hero .hero-overlay{
    background: linear-gradient(180deg, rgba(6,6,7,0.86) 0%, rgba(6,6,7,0.42) 40%, rgba(6,6,7,0.74) 100%);
  }
}

/* ---------- Sections ---------- */
section{ padding: 100px 0; }
.section-tight{ padding: 70px 0; }
.section-alt{ background: var(--charcoal); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head{ max-width: 680px; margin-bottom: 3.2em; }
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }

/* ---------- Cards / Grids ---------- */
.grid{ display: grid; gap: 32px; }
.grid-2{ grid-template-columns: repeat(2, 1fr); }
.grid-3{ grid-template-columns: repeat(3, 1fr); }
.grid-4{ grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px){
  .grid-2, .grid-3, .grid-4{ grid-template-columns: 1fr; }
}

.card{
  background: var(--charcoal);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 32px;
}

.stat{
  text-align: center;
  padding: 20px;
}
.stat .num{
  font-family: var(--serif);
  font-size: 2.6rem;
  color: var(--gold);
  display: block;
  line-height: 1;
  margin-bottom: 0.3em;
}
.stat .label{
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white-faint);
}

/* ---------- Split (image + text) ---------- */
.split{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split-media img{
  border-radius: var(--radius);
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.split-media.align-top img{ object-position: center top; }
.split.reverse .split-media{ order: 2; }

@media (max-width: 900px){
  .split{ grid-template-columns: 1fr; gap: 36px; }
  .split.reverse .split-media{ order: 0; }
}

/* ---------- Service cards ---------- */
.service-card{
  background: var(--charcoal);
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.service-card img{ aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.service-card .body{ padding: 28px; flex: 1; display:flex; flex-direction:column; }
.service-card h3{ margin-bottom: 0.4em; }
.service-card p{ color: var(--white-faint); font-size: 0.95rem; flex: 1; }
.service-card .tag{
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.8em;
}

/* ---------- Feature list ---------- */
.check-list{ list-style: none; padding: 0; margin: 0; }
.check-list li{
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--white-dim);
}
.check-list li:last-child{ border-bottom: none; }
.check-list li::before{
  content: '';
  flex: none;
  width: 7px; height: 7px;
  margin-top: 8px;
  background: var(--gold);
  transform: rotate(45deg);
}

/* ---------- Quote / signature block ---------- */
.signature{
  font-family: var(--script);
  font-size: 2.2rem;
  color: var(--white);
  margin-top: 0.6em;
}

/* ---------- Gallery ---------- */
.gallery-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gallery-grid a{
  display:block;
  overflow:hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.gallery-grid img{
  width:100%; height:100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-grid a:hover img{ transform: scale(1.06); }
.gallery-grid .tall{ grid-row: span 2; }
.gallery-grid .tall img{ aspect-ratio: 1/2; }

@media (max-width: 700px){
  .gallery-grid{ grid-template-columns: repeat(2, 1fr); }
  .gallery-grid .tall img{ aspect-ratio: 1/1; }
}

/* Lightbox */
.lightbox{
  position: fixed; inset: 0; z-index: 300;
  background: rgba(6,6,7,0.94);
  display: none;
  align-items: center; justify-content: center;
  padding: 40px;
}
.lightbox.open{ display: flex; }
.lightbox img{ max-width: 92vw; max-height: 86vh; border: 1px solid var(--line); }
.lightbox-close{
  position: absolute; top: 24px; right: 32px;
  color: var(--white); font-size: 2rem; cursor: pointer; background:none; border:none;
}

/* ---------- Social row ---------- */
.social-row{ display:flex; gap: 18px; align-items:center; }
.social-row a{
  width: 42px; height: 42px;
  display:flex; align-items:center; justify-content:center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--white-dim);
  transition: all 0.2s ease;
}
.social-row a:hover{ border-color: var(--gold); color: var(--gold); }

/* ---------- CTA band ---------- */
.cta-band{
  text-align:center;
  padding: 90px 24px;
  background: linear-gradient(180deg, var(--black), #131316);
  border-top: 1px solid var(--line);
}

/* ---------- Footer ---------- */
.site-footer{
  background: var(--black);
  border-top: 1px solid var(--line);
  padding: 70px 0 30px;
}
.footer-grid{
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}
@media (max-width: 800px){
  .footer-grid{ grid-template-columns: 1fr; gap: 34px; }
}
.footer-grid h4{
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1.2em;
}
.footer-grid p, .footer-grid a{ color: var(--white-faint); font-size: 0.92rem; }
.footer-grid a:hover{ color: var(--gold); }
.footer-grid ul{ list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap: 10px; }
.footer-bottom{
  border-top: 1px solid var(--line);
  padding-top: 26px;
  display:flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--white-faint);
}

/* ---------- Floating contact buttons ---------- */
.float-contact{
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-end;
}
.float-whatsapp, .float-call{
  width: 62px; height: 62px;
  border-radius: 50%;
  display:flex; align-items:center; justify-content:center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.float-whatsapp{
  background: var(--whatsapp);
  animation: pulse 2.6s infinite;
}
.float-call{
  background: var(--gold);
}
.float-whatsapp svg{ width: 30px; height: 30px; }
.float-call svg{ width: 26px; height: 26px; }
@keyframes pulse{
  0%{ box-shadow: 0 0 0 0 rgba(37,211,102,0.5), 0 8px 24px rgba(0,0,0,0.4); }
  70%{ box-shadow: 0 0 0 14px rgba(37,211,102,0), 0 8px 24px rgba(0,0,0,0.4); }
  100%{ box-shadow: 0 0 0 0 rgba(37,211,102,0), 0 8px 24px rgba(0,0,0,0.4); }
}

@media (max-width: 640px){
  .float-contact{ right: 16px; bottom: 16px; gap: 12px; }
  .float-whatsapp, .float-call{ width: 54px; height: 54px; }
}

/* ---------- Badges row (home) ---------- */
.badge-row{
  display:flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 2em;
}
.badge{
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  border: none;
  background: rgba(255,255,255,0.045);
  color: var(--white-faint);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.55em 0.9em;
  border-radius: 3px;
}
.badge::before{
  content: "";
  width: 5px;
  height: 5px;
  flex: none;
  border-radius: 50%;
  background: var(--gold-soft);
}

/* ---------- Map ---------- */
.map-frame{
  border: 1px solid var(--line);
  filter: grayscale(0.4) invert(0.9) contrast(0.9);
  width: 100%;
  height: 420px;
}

/* ---------- Scroll reveal ---------- */
.reveal{
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s cubic-bezier(.22,.61,.36,1), transform 0.9s cubic-bezier(.22,.61,.36,1);
}
.reveal.is-visible{ opacity: 1; transform: translateY(0); }
.reveal-1{ transition-delay: 0.08s; }
.reveal-2{ transition-delay: 0.16s; }
.reveal-3{ transition-delay: 0.24s; }
.reveal-4{ transition-delay: 0.32s; }

/* ---------- Service icon cards ---------- */
.icon-card{
  background: var(--charcoal);
  border: 1px solid var(--line);
  padding: 40px 30px;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.icon-card:hover{ border-color: var(--gold-soft); transform: translateY(-4px); }
.icon-wrap{
  width: 58px; height: 58px;
  border: 1px solid var(--gold-soft);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.6em;
  transition: background 0.3s ease, transform 0.3s ease;
}
.icon-card:hover .icon-wrap{ background: rgba(200,168,98,0.1); transform: scale(1.06); }
.icon-wrap svg{ width: 26px; height: 26px; stroke: var(--gold); fill: none; stroke-width: 1.4; }
.icon-card h3{ margin-bottom: 0.5em; font-size: 1.15rem; }
.icon-card p{ color: var(--white-faint); font-size: 0.96rem; margin: 0; }

/* ---------- Full-width banner ---------- */
.full-banner{ padding: 0; line-height: 0; }
.full-banner img{
  width: 100%;
  display: block;
  max-height: 520px;
  object-fit: cover;
  object-position: center 30%;
}
@media (max-width: 640px){
  .full-banner img{ max-height: 320px; object-position: center 25%; }
}

/* ---------- Triptych (3 vertical photos in a row) ---------- */
.triptych{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.triptych figure{ margin: 0; }
.triptych img{
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}
.triptych figcaption{
  margin-top: 0.9em;
  font-size: 0.82rem;
  color: var(--white-faint);
  text-align: center;
}
@media (max-width: 700px){
  .triptych{ gap: 8px; }
  .triptych figcaption{ font-size: 0.68rem; margin-top: 0.5em; }
}

/* ---------- Misc ---------- */
.divider{
  width: 64px; height: 2px;
  background: var(--gold);
  margin: 1.4em 0;
}
.text-center{ text-align:center; }
.mt-0{ margin-top:0; }
