/* ==========================================================================
   Medical Care Med Spa — West Palm Beach, FL
   Design tokens derivados de la identidad original del cliente:
   Primary #f5f0e8 · Secondary #efe6d3 · Accent #ab7e1c (dorado)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,400;1,9..144,500&family=Inter:wght@300;400;500;600;700&display=swap');

:root{
  /* paleta heredada del sitio original, ajustada para contraste y riqueza tonal */
  --cream:        #f7f2e9;
  --cream-deep:   #efe4cf;
  --sand:         #e6d7b8;
  --gold:         #ab7e1c;
  --gold-deep:    #8a6414;
  --gold-light:   #cda44c;
  --ink:          #1c1a13;
  --ink-soft:     #3a352a;
  --sage:         #4b6650;
  --sage-deep:    #334537;
  --white:        #fffdf8;

  --bg:           var(--cream);
  --surface:      var(--white);
  --surface-deep: var(--cream-deep);
  --text:         var(--ink);
  --text-muted:   #6b6252;
  --accent:       var(--gold);
  --accent-contrast: var(--white);

  --font-display: 'Fraunces', 'Georgia', serif;
  --font-body:    'Inter', -apple-system, sans-serif;

  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 0px;

  --shadow-soft: 0 1px 2px rgba(28,26,19,.04), 0 8px 24px -12px rgba(28,26,19,.18);
  --shadow-deep: 0 20px 60px -20px rgba(28,26,19,.35);

  --ease: cubic-bezier(.22,.61,.36,1);
}

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

body{
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
button{ font-family: inherit; cursor: pointer; }
h1,h2,h3,h4{ margin: 0; font-family: var(--font-display); font-weight: 500; letter-spacing: -0.01em; }
p{ margin: 0; }
ul{ margin: 0; padding: 0; list-style: none; }

.container{ max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.eyebrow{
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-size: 12px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--accent);
}
.eyebrow::before{ content:''; width: 28px; height: 1px; background: var(--accent); }

.section{ padding: 120px 0; position: relative; }
.section--tight{ padding: 88px 0; }
.section-head{ max-width: 640px; margin-bottom: 64px; }
.section-head h2{ font-size: clamp(34px, 4.2vw, 52px); line-height: 1.08; margin-top: 14px; }
.section-head p{ margin-top: 18px; font-size: 17px; color: var(--text-muted); max-width: 52ch; }

.btn{
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 30px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  transition: transform .35s var(--ease), background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
  white-space: nowrap;
}
.btn--gold{ background: var(--accent); color: var(--white); }
.btn--gold:hover{ background: var(--gold-deep); transform: translateY(-2px); }
.btn--outline{ background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--outline:hover{ background: var(--ink); color: var(--white); transform: translateY(-2px); }
.btn--ghost{ background: transparent; color: var(--white); border-color: rgba(255,255,255,.55); }
.btn--ghost:hover{ background: var(--white); color: var(--ink); }

/* ============================= HEADER ============================= */
.site-header{
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 22px 0;
  transition: background .4s var(--ease), padding .4s var(--ease), box-shadow .4s var(--ease);
}
.site-header.is-scrolled{
  background: rgba(247,242,233,.92); backdrop-filter: blur(10px);
  padding: 14px 0; box-shadow: 0 1px 0 rgba(28,26,19,.08);
}
.site-header .container{ display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand{ display: flex; align-items: center; gap: 12px; }
.brand img{ height: 46px; width: auto; transition: height .4s var(--ease); }
.site-header.is-scrolled .brand img{ height: 38px; }
.brand-word{ font-family: var(--font-display); font-size: 19px; letter-spacing: .02em; color: var(--ink); line-height: 1.1; }
.brand-word small{ display:block; font-family: var(--font-body); font-size: 10px; letter-spacing: .22em; color: var(--gold-deep); font-weight: 600; margin-top: 2px; }

.main-nav{ display: flex; align-items: center; gap: 36px; }
.main-nav a{
  font-size: 13px; font-weight: 500; letter-spacing: .03em; color: var(--ink-soft);
  position: relative; padding: 4px 0;
}
.main-nav a::after{
  content:''; position: absolute; left: 0; bottom: -2px; width: 0; height: 1px; background: var(--accent);
  transition: width .3s var(--ease);
}
.main-nav a:hover::after{ width: 100%; }

.header-actions{ display: flex; align-items: center; gap: 18px; }
.lang-switch{
  display: flex; align-items: center; border: 1px solid rgba(28,26,19,.22); border-radius: 999px; padding: 3px;
  font-size: 11px; font-weight: 700; letter-spacing: .04em;
}
.lang-switch button{
  border: none; background: transparent; padding: 5px 11px; border-radius: 999px; color: var(--text-muted);
  transition: background .3s var(--ease), color .3s var(--ease);
}
.lang-switch button.is-active{ background: var(--ink); color: var(--white); }

.nav-toggle{ display:none; background:none; border:none; width: 32px; height: 22px; position: relative; }
.nav-toggle span{ position:absolute; left:0; right:0; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease), opacity .3s var(--ease); }
.nav-toggle span:nth-child(1){ top:0; }
.nav-toggle span:nth-child(2){ top: 10px; }
.nav-toggle span:nth-child(3){ top: 20px; }
.nav-toggle.is-open span:nth-child(1){ transform: translateY(10px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2){ opacity:0; }
.nav-toggle.is-open span:nth-child(3){ transform: translateY(-10px) rotate(-45deg); }

/* ============================= HERO ============================= */
.hero{
  position: relative; min-height: 100svh; display: flex; align-items: center;
  padding-top: 120px; overflow: hidden; background: var(--ink);
}
.hero-media{ position: absolute; inset: 0; }
.hero-media img{ width: 100%; height: 100%; object-fit: cover; opacity: .78; }
.hero-media::after{
  content:''; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(28,26,19,.92) 8%, rgba(28,26,19,.62) 42%, rgba(28,26,19,.28) 68%, rgba(28,26,19,.06) 100%);
}
.hero-media::before{
  content:''; position:absolute; inset:0; z-index:1;
  background: linear-gradient(180deg, rgba(28,26,19,.15), transparent 30%, transparent 65%, rgba(28,26,19,.55));
}
.hero .container{ position: relative; z-index: 2; }
.hero-inner{ max-width: 660px; padding: 60px 0 96px; }
.hero-inner .eyebrow{ color: var(--gold-light); }
.hero-inner .eyebrow::before{ background: var(--gold-light); }
.hero-inner h1{
  color: var(--white); font-size: clamp(44px, 6.4vw, 84px); line-height: .98; margin-top: 22px;
  letter-spacing: -0.015em;
}
.hero-inner h1 em{ font-style: italic; color: var(--gold-light); }
.hero-inner p{ color: rgba(255,253,248,.82); font-size: 18px; max-width: 46ch; margin-top: 26px; line-height: 1.65; }
.hero-cta{ display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; }

.hero-tags{
  position: absolute; right: 32px; bottom: 48px; z-index: 2;
  display: flex; flex-direction: column; gap: 10px; text-align: right;
}
.hero-tags span{
  font-family: var(--font-display); font-style: italic; font-size: 15px; color: rgba(255,253,248,.75);
}

.hero-scroll{
  position: absolute; left: 32px; bottom: 40px; z-index: 2;
  display: flex; align-items: center; gap: 12px; color: rgba(255,253,248,.65);
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
}
.hero-scroll .line{ width: 1px; height: 34px; background: rgba(255,253,248,.4); position: relative; overflow: hidden; }
.hero-scroll .line::after{
  content:''; position:absolute; top:-100%; left:0; right:0; height: 100%; background: var(--gold-light);
  animation: scrollLine 2.2s ease-in-out infinite;
}
@keyframes scrollLine{ 0%{ top:-100%; } 60%{ top: 100%; } 100%{ top: 100%; } }

/* ============================= PHILOSOPHY / INTRO ============================= */
.philosophy{ background: var(--bg); }
.philosophy-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: end; }
.philosophy h2{ font-size: clamp(32px, 4vw, 48px); line-height: 1.15; }
.philosophy h2 em{ font-style: italic; color: var(--gold-deep); }
.philosophy-copy p{ font-size: 17px; color: var(--text-muted); line-height: 1.75; }
.philosophy-copy{ display:flex; flex-direction: column; gap: 22px; }

/* ============================= PILLARS ============================= */
.pillars{ background: var(--surface-deep); position: relative; }
.pillars::before{
  content:''; position:absolute; inset:0; opacity:.5; pointer-events:none;
  background-image: url('../assets/leaf-bg.png'), url('../assets/leaf-2-bg.png');
  background-repeat: no-repeat, no-repeat;
  background-position: left 0% bottom -80px, right 0% bottom -80px;
  background-size: 340px auto, 340px auto;
}
.pillars .container{ position: relative; z-index: 1; }
.pillar-list{ display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: rgba(28,26,19,.12); border: 1px solid rgba(28,26,19,.12); }
.pillar{
  background: var(--surface-deep); padding: 52px 48px; display: flex; flex-direction: column; gap: 20px;
  transition: background .4s var(--ease);
}
.pillar:hover{ background: var(--white); }
.pillar-num{ font-family: var(--font-display); font-style: italic; font-size: 15px; color: var(--gold); }
.pillar h3{ font-size: 26px; }
.pillar p{ color: var(--text-muted); font-size: 15px; line-height: 1.65; }
.pillar-link{ margin-top: auto; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); display:inline-flex; align-items:center; gap:8px; }
.pillar-link svg{ width: 14px; height: 14px; transition: transform .3s var(--ease); }
.pillar:hover .pillar-link svg{ transform: translateX(4px); }

/* ============================= SERVICES DETAIL ============================= */
.services{ background: var(--bg); }
.service-block{
  display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center;
  padding: 72px 0; border-top: 1px solid rgba(28,26,19,.12);
}
.service-block:first-of-type{ border-top: none; }
.service-block:nth-of-type(even) .service-media{ order: 2; }
.service-media{ position: relative; }
.service-media img{ width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.service-media .tag{
  position: absolute; bottom: -18px; left: -18px; background: var(--accent); color: var(--white);
  padding: 14px 22px; font-family: var(--font-display); font-style: italic; font-size: 15px;
}
.service-copy .eyebrow{ margin-bottom: 16px; }
.service-copy h3{ font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; }
.service-copy > p{ margin-top: 16px; color: var(--text-muted); font-size: 16px; line-height: 1.7; max-width: 48ch; }
.service-items{ margin-top: 32px; display: flex; flex-direction: column; gap: 22px; }
.service-item{ display: grid; grid-template-columns: 22px 1fr; gap: 14px; }
.service-item .dot{ width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-top: 9px; }
.service-item h4{ font-family: var(--font-body); font-weight: 600; font-size: 15px; letter-spacing: .01em; }
.service-item p{ margin-top: 4px; color: var(--text-muted); font-size: 14.5px; line-height: 1.6; }

/* ============================= GALLERY ============================= */
.gallery{ background: var(--ink); color: var(--white); }
.gallery .eyebrow{ color: var(--gold-light); }
.gallery .eyebrow::before{ background: var(--gold-light); }
.gallery .section-head h2{ color: var(--white); }
.gallery .section-head p{ color: rgba(255,253,248,.6); }
.gallery-grid{
  display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 16px;
}
.gallery-grid figure{ margin:0; overflow: hidden; position: relative; }
.gallery-grid img{ width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.gallery-grid figure:hover img{ transform: scale(1.06); }
.gallery-grid figure:nth-child(1){ grid-column: span 2; grid-row: span 2; }
.gallery-grid figure:nth-child(4){ grid-column: span 2; }
.gallery-grid figcaption{
  position: absolute; left: 18px; bottom: 16px; font-family: var(--font-display); font-style: italic;
  font-size: 14px; color: var(--white); opacity: 0; transform: translateY(6px);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.gallery-grid figure::before{
  content:''; position:absolute; inset:0; background: linear-gradient(180deg, transparent 55%, rgba(28,26,19,.85));
  opacity: 0; transition: opacity .35s var(--ease);
}
.gallery-grid figure:hover::before, .gallery-grid figure:hover figcaption{ opacity: 1; transform: translateY(0); }

/* ============================= TESTIMONIALS ============================= */
.testimonials{ background: var(--surface-deep); }
.testi-head{ display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 56px; }
.testi-rating{ display: flex; align-items: center; gap: 14px; }
.testi-stars{ color: var(--gold); font-size: 18px; letter-spacing: 2px; }
.testi-rating strong{ font-family: var(--font-display); font-size: 22px; }
.testi-rating span{ display:block; font-size: 12px; color: var(--text-muted); }
.testi-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.testi-card{
  background: var(--white); padding: 38px 34px; border: 1px solid rgba(28,26,19,.08);
  display: flex; flex-direction: column; gap: 22px; transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.testi-card:hover{ transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.testi-quote{ font-family: var(--font-display); font-style: italic; font-size: 18px; line-height: 1.55; color: var(--ink-soft); }
.testi-person{ display: flex; align-items: center; gap: 12px; }
.testi-avatar{
  width: 42px; height: 42px; border-radius: 50%; background: var(--accent); color: var(--white);
  display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 16px;
}
.testi-person div strong{ display:block; font-size: 14px; }
.testi-person div span{ font-size: 12px; color: var(--text-muted); }

/* ============================= OFFER STRIP ============================= */
.offer{
  background: var(--accent); color: var(--white); padding: 56px 0;
}
.offer .container{ display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.offer-text .eyebrow{ color: rgba(255,253,248,.85); }
.offer-text .eyebrow::before{ background: rgba(255,253,248,.85); }
.offer-text h3{ color: var(--white); font-size: clamp(26px, 3vw, 34px); margin-top: 10px; }
.offer-text p{ color: rgba(255,253,248,.85); margin-top: 8px; }

/* ============================= HOURS / CONTACT ============================= */
.contact{ background: var(--bg); }
.contact-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 72px; }
.contact-info h2{ font-size: clamp(34px, 4vw, 50px); line-height: 1.1; }
.contact-info > p{ margin-top: 18px; color: var(--text-muted); font-size: 16px; max-width: 44ch; }
.info-rows{ margin-top: 44px; display: flex; flex-direction: column; gap: 0; }
.info-row{ display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 20px 0; border-top: 1px solid rgba(28,26,19,.12); }
.info-row:last-child{ border-bottom: 1px solid rgba(28,26,19,.12); }
.info-row .label{ font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep); font-weight: 700; padding-top: 2px; }
.info-row .value{ font-size: 15.5px; line-height: 1.6; color: var(--ink-soft); }
.info-row .value a{ border-bottom: 1px solid transparent; transition: border-color .3s var(--ease); }
.info-row .value a:hover{ border-color: var(--ink-soft); }
.contact-cta{ margin-top: 40px; display: flex; gap: 16px; flex-wrap: wrap; }

.map-frame{ position: relative; border: 1px solid rgba(28,26,19,.14); min-height: 480px; }
.map-frame iframe{ width: 100%; height: 100%; min-height: 480px; border: 0; filter: grayscale(.25) contrast(1.05); }

/* ============================= FINAL CTA ============================= */
.final-cta{
  position: relative; background: var(--ink); color: var(--white); padding: 140px 0; text-align: center; overflow: hidden;
}
.final-cta::before{
  content:''; position:absolute; inset:0; opacity:.14; pointer-events:none;
  background-image: url('../assets/leaf-2-bg.png'); background-repeat: no-repeat; background-position: center; background-size: 640px auto;
}
.final-cta .container{ position: relative; z-index: 1; }
.final-cta .eyebrow{ color: var(--gold-light); justify-content: center; }
.final-cta .eyebrow::before{ background: var(--gold-light); }
.final-cta h2{ color: var(--white); font-size: clamp(38px, 5.4vw, 68px); line-height: 1.05; margin: 22px auto 0; max-width: 820px; }
.final-cta h2 em{ color: var(--gold-light); font-style: italic; }
.final-cta-actions{ margin-top: 44px; display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; }

/* ============================= FOOTER ============================= */
.site-footer{ background: var(--surface-deep); padding: 72px 0 28px; border-top: 1px solid rgba(28,26,19,.1); }
.footer-grid{ display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 48px; }
.footer-brand .brand{ margin-bottom: 18px; }
.footer-brand p{ color: var(--text-muted); font-size: 14px; max-width: 34ch; line-height: 1.6; }
.footer-social{ margin-top: 22px; display: flex; gap: 12px; }
.footer-social a{
  width: 38px; height: 38px; border: 1px solid rgba(28,26,19,.2); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; transition: background .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
}
.footer-social a:hover{ background: var(--ink); border-color: var(--ink); color: var(--white); }
.footer-col h5{ font-family: var(--font-body); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-deep); font-weight: 700; margin-bottom: 18px; }
.footer-col ul{ display: flex; flex-direction: column; gap: 12px; }
.footer-col a, .footer-col span{ font-size: 14px; color: var(--ink-soft); }
.footer-col a:hover{ color: var(--gold-deep); }
.footer-bottom{
  border-top: 1px solid rgba(28,26,19,.12); padding-top: 24px; display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 12px; font-size: 12.5px; color: var(--text-muted);
}

/* ============================= WHATSAPP FAB ============================= */
.wa-fab{
  position: fixed; right: 24px; bottom: 24px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-deep);
  transition: transform .3s var(--ease);
}
.wa-fab:hover{ transform: scale(1.08); }
.wa-fab svg{ width: 28px; height: 28px; }

/* ============================= REVEAL ANIMATION ============================= */
[data-reveal]{ opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-reveal].is-visible{ opacity: 1; transform: translateY(0); }

/* ============================= RESPONSIVE ============================= */
@media (max-width: 1080px){
  .philosophy-grid{ grid-template-columns: 1fr; gap: 32px; }
  .pillar-list{ grid-template-columns: 1fr; }
  .service-block{ grid-template-columns: 1fr; gap: 36px; }
  .service-block:nth-of-type(even) .service-media{ order: 0; }
  .gallery-grid{ grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .gallery-grid figure:nth-child(1){ grid-column: span 2; grid-row: span 1; }
  .testi-grid{ grid-template-columns: 1fr; }
  .contact-grid{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px){
  .main-nav{ display: none; }
  .nav-toggle{ display: block; }
  .site-header .header-actions .lang-switch{ display: none; }
  .site-header.is-open .main-nav{
    display: flex; flex-direction: column; position: fixed; inset: 0; top: 76px;
    background: var(--cream); padding: 40px 32px; gap: 26px; align-items: flex-start;
  }
  .site-header.is-open .main-nav a{ font-size: 20px; }
  .site-header.is-open .header-actions .lang-switch{ display: flex; }
  .hero-tags{ display: none; }
  .section{ padding: 84px 0; }
  .offer .container{ flex-direction: column; align-items: flex-start; }
}

@media (max-width: 600px){
  .container{ padding: 0 20px; }
  .hero-inner{ padding: 40px 0 72px; }
  .hero-cta{ flex-direction: column; align-items: stretch; }
  .hero-cta .btn{ width: 100%; }
  .footer-grid{ grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom{ flex-direction: column; }
  .testi-head{ flex-direction: column; align-items: flex-start; }
}
