/* =========================================================
   Dra. Fernanda Carrau — Dermatología & Estética
   Design tokens (overridable at runtime via CSS custom props,
   values are populated from the backend /api/site settings)
   ========================================================= */
:root{
  --color-bg:        #FBF9F7;
  --color-beige:      #E8DDD4;
  --color-blush:      #E8CFCF;
  --color-dark:        #313131;
  --color-wine:        #7B4148;
  --color-bordeaux:    #5B272E;

  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-body: 'Jost', 'Helvetica Neue', Arial, sans-serif;

  --gradient-signature: linear-gradient(100deg, var(--color-wine) 0%, var(--color-bordeaux) 50%, var(--color-wine) 100%);
  --shadow-soft: 0 20px 50px -20px rgba(91, 39, 46, 0.25);
  --transition: 300ms cubic-bezier(.4,0,.2,1);
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  background: var(--color-bg);
  color: var(--color-dark);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
h1, h2, h3{
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--color-bordeaux);
  margin: 0;
  letter-spacing: 0.01em;
}
p{ margin: 0 0 1em; }
.container{
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}
.section{ padding: 110px 0; position: relative; }

.eyebrow{
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--color-wine);
  margin: 0 0 14px;
}
.eyebrow-light{ color: var(--color-blush); }

.rule-gradient{
  width: 72px;
  height: 2px;
  background: var(--gradient-signature);
  margin: 22px 0 26px;
}
.rule-gradient.center{ margin-left: auto; margin-right: auto; }

.section-head{ max-width: 640px; margin: 0 auto 60px; text-align: center; }
.section-head h2{ font-size: clamp(2rem, 3.2vw, 2.7rem); }
.section-subtitle{ color: #555; font-size: 1.02rem; }

/* Buttons */
.btn{
  display: inline-block;
  padding: 16px 38px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition);
}
.btn-primary{
  background: var(--color-bordeaux);
  color: #fff;
}
.btn-primary:hover{
  background: var(--color-wine);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}
.btn-block{ width: 100%; text-align: center; }

/* Signature corner-frame motif (echoes the logo's open rectangle) */
.corner-frame{
  position: absolute;
  width: 64px;
  height: 64px;
  border: 2px solid var(--color-wine);
  z-index: 2;
}
.corner-frame--tl{ top: -18px; left: -18px; border-right: 0; border-bottom: 0; }
.corner-frame--br{ bottom: -18px; right: -18px; border-left: 0; border-top: 0; }

/* =============== HEADER =============== */
.site-header{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  background: rgba(251, 249, 247, 0.98);
  border-bottom: 1px solid rgba(91, 39, 46, 0.08);
  box-shadow: 0 2px 20px rgba(49,41,41,0.06);
  padding: 14px 0;
}
.header-inner{
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand-logo{ height: 76px; width: auto; }
.main-nav{ display: flex; align-items: center; gap: 34px; }
.nav-link{
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-dark);
  position: relative;
  padding: 4px 0;
}
.nav-link::after{
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1px;
  background: var(--color-bordeaux);
  transition: width var(--transition);
}
.nav-link:hover::after{ width: 100%; }
.nav-cta{
  background: var(--color-bordeaux);
  color: #fff !important;
  padding: 11px 22px;
  border-radius: 2px;
}
.nav-cta::after{ display: none; }
.nav-cta:hover{ background: var(--color-wine); }

.nav-instagram{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--color-wine);
  color: var(--color-bordeaux);
  transition: background var(--transition), color var(--transition), transform var(--transition);
  flex-shrink: 0;
}
.nav-instagram:hover{
  background: var(--color-bordeaux);
  color: #fff;
  transform: translateY(-2px);
}

.nav-toggle{
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px; height: 32px;
  background: none; border: none; cursor: pointer;
  padding: 0;
}
.nav-toggle span{
  display: block; width: 100%; height: 2px;
  background: var(--color-bordeaux);
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle.open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2){ opacity: 0; }
.nav-toggle.open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* =============== HERO (parallax) =============== */
.hero{
  position: relative;
  height: 100vh;
  min-height: 620px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-parallax{
  position: absolute;
  top: -10%; left: 0;
  width: 100%; height: 120%;
  background-image: url('/assets/hero-default.jpg');
  background-size: cover;
  background-position: center;
  will-change: transform;
}
.hero-overlay{
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(91,39,46,0.55) 0%, rgba(91,39,46,0.35) 45%, rgba(49,41,41,0.65) 100%);
}
.hero-content{
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 780px;
  padding: 0 28px;
  color: #fff;
}
.hero-content h1{
  color: #fff;
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  line-height: 1.1;
  margin-bottom: 22px;
  text-shadow: 0 2px 24px rgba(0,0,0,0.15);
}
.hero-subtitle{
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  font-weight: 300;
  max-width: 620px;
  margin: 0 auto 34px;
  color: #F3E9E9;
}
.hero-scroll-hint{
  position: absolute;
  bottom: 34px; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid rgba(255,255,255,0.7);
  border-radius: 14px;
  z-index: 2;
}
.hero-scroll-hint span{
  position: absolute;
  top: 8px; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 8px;
  border-radius: 2px;
  background: #fff;
  animation: scrollDown 1.8s infinite;
}
@keyframes scrollDown{
  0%{ opacity: 1; top: 8px; }
  70%{ opacity: 0; top: 20px; }
  100%{ opacity: 0; top: 20px; }
}

/* =============== SOBRE MÍ =============== */
.about-grid{
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 90px;
  align-items: center;
}
.about-image-wrap{ position: relative; }
.about-image{
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  box-shadow: var(--shadow-soft);
}
.about-text p{ color: #4a4a4a; }
.about-text p:first-child{ font-size: 1.08rem; }
.about-stats{
  display: flex;
  gap: 44px;
  margin-top: 36px;
  padding-top: 32px;
  border-top: 1px solid var(--color-beige);
  flex-wrap: wrap;
}
.stat{ display: flex; flex-direction: column; }
.stat-number{
  font-family: var(--font-display);
  font-size: 2.1rem;
  color: var(--color-bordeaux);
  font-weight: 600;
}
.stat-label{
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6b6b6b;
  margin-top: 4px;
}

/* =============== TRATAMIENTOS =============== */
.treatments{ background: var(--color-beige); }
.treatments-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
}
.treatments-see-all{
  text-align: center;
  margin-top: 48px;
}
.btn-secondary-outline{
  display: inline-block;
  background: transparent;
  color: var(--color-bordeaux);
  border: 1px solid var(--color-bordeaux);
}
.btn-secondary-outline:hover{
  background: var(--color-bordeaux);
  color: #fff;
}
.treatment-card{
  position: relative;
  background: var(--color-bg);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 10px 30px -18px rgba(49,41,41,0.2);
}
.treatment-card-category{
  position: absolute;
  top: 14px; left: 14px;
  z-index: 2;
  background: rgba(255,255,255,0.92);
  color: var(--color-bordeaux);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 20px;
}
.treatment-card:hover{
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
}
.treatment-image{
  width: 100%; height: 230px;
  object-fit: cover;
}
.treatment-body{ padding: 26px 28px 30px; }
.treatment-body h3{
  font-size: 1.35rem;
  margin-bottom: 10px;
}
.treatment-body p, .treatment-body .treatment-desc{
  color: #5c5c5c;
  font-size: 0.94rem;
  margin-bottom: 0;
}
.treatment-body .treatment-desc ul, .treatment-body .treatment-desc ol, .blog-body .blog-excerpt ul, .blog-body .blog-excerpt ol{ display: block; }
.treatment-cta{
  display: inline-block;
  margin-top: 18px;
  padding: 10px 22px;
  font-size: 0.78rem;
}

.treatment-categories-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 44px;
}
.treatment-category-card{
  position: relative;
  height: 280px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-color: var(--color-beige);
  display: flex;
  align-items: flex-end;
  transition: transform var(--transition);
}
.treatment-category-card:hover{ transform: translateY(-6px); }
.treatment-category-card::before{
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(49,41,41,0.8), rgba(49,41,41,0.2) 55%, rgba(49,41,41,0) 100%);
}
.treatment-category-overlay{
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 22px 20px 26px;
  text-align: center;
  /* Always stack title pill above the button, whatever the title length or
     screen width (before, a short title could sit beside the button). */
  display: flex;
  flex-direction: column;
  align-items: center;
}
.treatment-category-overlay h3{
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
  background: rgba(255,255,255,0.94);
  color: var(--color-bordeaux);
  font-size: 1.05rem;
  padding: 8px 20px;
  border-radius: 24px;
  margin-bottom: 16px;
}

/* =============== BLOG =============== */
.blog-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
}
.blog-card{
  cursor: pointer;
  background: var(--color-bg);
  border: 1px solid var(--color-beige);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.blog-card:hover{
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
}
.blog-image{ width: 100%; height: 210px; object-fit: cover; }
.blog-body{ padding: 24px 26px 28px; }
.blog-date{
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-wine);
  margin-bottom: 10px;
}
.blog-body h3{ font-size: 1.28rem; margin-bottom: 10px; line-height: 1.25; }
.blog-body p, .blog-body .blog-excerpt{ color: #5c5c5c; font-size: 0.92rem; margin-bottom: 14px; }
.blog-readmore{
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-bordeaux);
}
.blog-empty{
  grid-column: 1 / -1;
  text-align: center;
  color: #888;
  padding: 40px 0;
  font-style: italic;
}

/* =============== OPINIONES (Google reviews widget) =============== */
.reviews{ background: var(--color-beige); }
.reviews-embed{
  max-width: 980px;
  margin: 0 auto;
  min-height: 60px;
}
.reviews-cta{
  display: block;
  width: fit-content;
  margin: 32px auto 0;
  background: transparent;
  color: var(--color-bordeaux);
  border: 1px solid var(--color-bordeaux);
}
.reviews-cta:hover{
  background: var(--color-bordeaux);
  color: #fff;
}
.reviews-summary{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
  text-align: left;
}
.reviews-summary-number{
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 600;
  color: var(--color-bordeaux);
  line-height: 1;
}
.reviews-summary-meta{ display: flex; flex-direction: column; gap: 4px; }
.reviews-summary-stars{ color: #d9a441; font-size: 1.2rem; letter-spacing: 2px; }
.reviews-summary-count{ font-size: 0.86rem; color: #6b6b6b; }
.reviews-summary-count a{ color: var(--color-wine); font-weight: 500; }
.reviews-cards-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.review-card{
  background: var(--color-bg);
  border: 1px solid #ddcfc4;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
}
.review-card-head{ display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.review-avatar{
  width: 42px; height: 42px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.review-avatar-fallback{
  display: flex; align-items: center; justify-content: center;
  background: var(--color-bordeaux); color: #fff;
  font-family: var(--font-display); font-weight: 600; font-size: 1.1rem;
}
.review-author{ margin: 0; font-size: 0.92rem; font-weight: 500; color: var(--color-dark); }
.review-stars{ margin: 2px 0 0; color: #d9a441; font-size: 0.9rem; letter-spacing: 1px; }
.review-text{
  font-size: 0.9rem;
  color: #555;
  margin: 0 0 10px;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.review-time{ margin: 0; font-size: 0.74rem; color: #999; text-transform: uppercase; letter-spacing: 0.04em; }

@media (max-width: 900px){
  .reviews-cards-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px){
  .reviews-cards-grid{ grid-template-columns: 1fr; }
  .reviews-summary{ justify-content: flex-start; text-align: left; }
}

/* =============== COLABORACIONES Y PARTNERS (marquee) =============== */
.partners{ background: var(--color-bg); overflow: hidden; padding-bottom: 90px; }
.partners-marquee{
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.partners-track{
  display: flex;
  width: max-content;
  animation: partnersScroll var(--partners-duration, 40s) linear infinite;
  will-change: transform;
}
.partners-group{
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 72px;
  padding-right: 72px; /* same as gap so both groups are exactly equal width */
}
.partners-marquee:hover .partners-track{ animation-play-state: paused; }
.partner-logo{
  height: 52px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  flex-shrink: 0;
  filter: grayscale(100%);
  opacity: 0.55;
  transition: filter 250ms ease, opacity 250ms ease;
}
.partner-logo:hover{
  filter: grayscale(0%);
  opacity: 1;
}
@keyframes partnersScroll{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}
@media (max-width: 620px){
  .partners-group{ gap: 48px; padding-right: 48px; }
  .partner-logo{ height: 40px; max-width: 110px; }
}
@media (prefers-reduced-motion: reduce){
  .partners-track{ animation: none; overflow-x: auto; }
}

/* =============== CONTACTO =============== */
.contact{ background: var(--color-bordeaux); color: #fff; }
.contact .eyebrow{ color: var(--color-blush); }
.contact h2{ color: #fff; }
.contact-subtitle{ color: #ecdcdc; }
.contact-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.contact-list{ list-style: none; padding: 0; margin: 30px 0 0; }
.contact-list li{
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  font-size: 0.98rem;
  color: #f3e9e9;
}
.contact-icon{ font-size: 1.1rem; }

.contact-form{
  background: var(--color-bg);
  padding: 40px;
  color: var(--color-dark);
  box-shadow: var(--shadow-soft);
}
.form-row{ margin-bottom: 20px; }
.form-row label{
  display: block;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: var(--color-wine);
}
.form-row input, .form-row textarea{
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--color-beige);
  background: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-dark);
  resize: vertical;
}
.form-row input:focus, .form-row textarea:focus{
  outline: none;
  border-color: var(--color-wine);
}
.form-feedback{
  margin-top: 14px;
  font-size: 0.88rem;
  text-align: center;
  min-height: 1.2em;
}
.form-feedback.success{ color: #3a7a4e; }
.form-feedback.error{ color: #a13333; }

.contact-list a{ color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.contact-list a:hover{ color: var(--color-blush); }

.contact-map-wrap{ margin-top: 56px; }
.contact-map-embed{
  width: 100%;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.contact-map-embed iframe{
  width: 100%;
  height: 380px;
  border: 0;
  display: block;
}
@media (max-width: 480px){
  .contact-map-embed iframe{ height: 280px; }
}

/* =============== FOOTER =============== */
.site-footer{
  background: var(--color-dark);
  color: #cfc9c9;
  padding: 50px 0 30px;
}
.footer-inner{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
}
.footer-logo{ height: 68px; filter: brightness(0) invert(1); opacity: 0.85; }
.footer-nav{ display: flex; gap: 26px; flex-wrap: wrap; justify-content: center; }
.footer-nav a{ font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: #cfc9c9; }
.footer-nav a:hover{ color: #fff; }
.footer-text{ font-size: 0.78rem; color: #9c9494; margin: 0; }

/* =============== BLOG POST READER (modal) =============== */
.post-overlay{
  position: fixed; inset: 0;
  background: rgba(49,41,41,0.6);
  z-index: 1000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 20px;
  overflow-y: auto;
}
.post-overlay.open{ display: flex; }
.post-reader{
  background: var(--color-bg);
  max-width: 780px;
  width: 100%;
  position: relative;
  box-shadow: 0 30px 80px rgba(0,0,0,0.35);
  margin-bottom: 40px;
}
.post-close{
  position: absolute;
  top: 16px; right: 16px;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.85);
  color: var(--color-bordeaux);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
}
.post-banner{
  width: 100%; height: 320px;
  background-size: cover;
  background-position: center;
}
.post-reader-body{ padding: 42px 48px 60px; }
.post-date{
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-wine);
  margin-bottom: 12px;
}
.post-reader-body h1{
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin-bottom: 24px;
}
.post-content p{ color: #444; font-size: 1.02rem; margin-bottom: 1.2em; }
.post-content h2{ font-size: 1.7rem; line-height: 1.25; margin: 1.4em 0 .6em; color: var(--bordeaux, #5a1a2b); }
.post-content h3{ font-size: 1.3rem; line-height: 1.3; margin: 1.2em 0 .5em; color: var(--bordeaux, #5a1a2b); }
.post-content small{ font-size: .85rem; }
.post-content strong{ font-weight: 600; }
.post-content .fw-light{ font-weight: 300; }
.post-content a{ color: var(--bordeaux, #5a1a2b); text-decoration: underline; }
.post-content ul, .post-content ol{ margin: 0 0 1.2em 1.4em; color: #444; }
.post-content li{ margin-bottom: .35em; }
.post-content blockquote{ border-left: 3px solid #ccc; margin: 1.2em 0; padding-left: 1em; color: #555; font-style: italic; }

/* =============== STANDALONE PAGE INTRO (Tratamientos, etc.) =============== */
.page-intro{
  background: var(--color-beige);
  padding: 190px 0 70px;
  text-align: center;
}
.page-intro .container{ max-width: 720px; }
.page-intro h1{ font-size: clamp(2rem, 3.4vw, 2.8rem); }
.page-subtitle{ color: #555; font-size: 1.02rem; margin-top: 4px; }

/* =============== TRATAMIENTOS POR CATEGORÍA =============== */
.treatments-by-category{ padding-top: 80px; }
.category-block{ margin-bottom: 74px; scroll-margin-top: 110px; }
.category-block:last-child{ margin-bottom: 0; }
.category-title{
  font-size: 1.7rem;
  color: var(--color-bordeaux);
  margin-bottom: 30px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--color-beige);
}

/* =============== TRABAJÁ CON NOSOTROS =============== */
.careers{ padding-top: 190px; }
.careers-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.careers-copy .eyebrow{ color: var(--color-wine); }
.careers-text p{ color: #4a4a4a; font-size: 1.02rem; }
.careers-form{
  background: var(--color-beige);
  padding: 40px;
  box-shadow: var(--shadow-soft);
}
.careers-form input[type="file"]{
  width: 100%;
  padding: 10px 0;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--color-dark);
}

/* =============== RESPONSIVE =============== */
@media (max-width: 980px){
  .about-grid{ grid-template-columns: 1fr; gap: 50px; }
  .about-image-wrap{ max-width: 420px; margin: 0 auto; }
  .treatments-grid{ grid-template-columns: repeat(2, 1fr); }
  .treatment-categories-grid{ grid-template-columns: repeat(2, 1fr); }
  .blog-grid{ grid-template-columns: repeat(2, 1fr); }
  .contact-grid{ grid-template-columns: 1fr; gap: 50px; }
  .careers-grid{ grid-template-columns: 1fr; gap: 50px; }
}

@media (max-width: 760px){
  .main-nav{
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: 78%;
    max-width: 320px;
    background: var(--color-bg);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 28px;
    padding: 40px;
    transform: translateX(100%);
    transition: transform var(--transition);
    box-shadow: -10px 0 40px rgba(0,0,0,0.15);
  }
  .main-nav.open{ transform: translateX(0); }
  .nav-toggle{ display: flex; }
  .nav-cta{ margin-top: 10px; }
  .nav-instagram{ margin-top: 4px; }

  .site-header{ padding: 10px 0; }
  .header-inner{ padding: 0 16px; }
  .brand-logo{ height: 64px; }
  .footer-logo{ height: 62px; }

  .section{ padding: 70px 0; }
  .treatments-grid{ grid-template-columns: 1fr; }
  .treatment-categories-grid{ grid-template-columns: 1fr; }
  .blog-grid{ grid-template-columns: 1fr; }
  .post-reader-body{ padding: 30px 24px 44px; }
  .post-banner{ height: 220px; }
  .page-intro{ padding: 130px 0 50px; }
  .careers{ padding-top: 130px; }
  .careers-form{ padding: 28px 22px; }
}

@media (max-width: 480px){
  .container{ padding: 0 20px; }
  .contact-form{ padding: 28px 22px; }
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  .hero-parallax{ transform: none !important; }
  .hero-scroll-hint span{ animation: none; }
  *{ transition-duration: 0.01ms !important; }
}

/* =============== FLOATING WHATSAPP BUTTON =============== */
.whatsapp-float{
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  z-index: 800;
  transition: transform var(--transition), box-shadow var(--transition);
  animation: whatsappPulse 2.6s ease-in-out infinite;
}
.whatsapp-float:hover{
  transform: scale(1.08);
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.55);
}
@keyframes whatsappPulse{
  0%, 100%{ box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45); }
  50%{ box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45), 0 0 0 8px rgba(37, 211, 102, 0.15); }
}
@media (max-width: 480px){
  .whatsapp-float{
    right: 16px;
    bottom: 16px;
    width: 52px;
    height: 52px;
  }
}
@media (prefers-reduced-motion: reduce){
  .whatsapp-float{ animation: none; }
}

.post-content img{display:block;max-width:100%;height:auto;border-radius:12px;margin:1.4em auto}
.post-content img.img-full{width:100%}
.post-content img.img-medium{width:65%}
.post-content img.img-small{width:35%}
@media (max-width:640px){.post-content img.img-medium{width:85%}.post-content img.img-small{width:60%}}

/* =============== GALERÍA (secciones con carrusel) =============== */
.gallery-block{ margin-bottom: 80px; }
.gallery-block:last-child{ margin-bottom: 0; }
.gallery-desc{ max-width: 720px; margin: 0 auto 28px; text-align: center; color: #555; font-size: 1.02rem; }
.carousel{ position: relative; max-width: 980px; margin: 0 auto; }
.carousel-track{
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  border-radius: 16px;
  -webkit-overflow-scrolling: touch;
}
.carousel-track::-webkit-scrollbar{ display: none; }
.carousel-slide{ flex: 0 0 100%; scroll-snap-align: start; margin: 0; position: relative; background: var(--color-beige); }
.carousel-slide img{ display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.carousel-slide figcaption{
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 28px 20px 16px; color: #fff; font-size: .95rem; text-align: center;
  background: linear-gradient(to top, rgba(0,0,0,.55), transparent);
}
.carousel-arrow{
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.9); color: var(--color-bordeaux);
  font-size: 1.7rem; line-height: 1; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,.18); transition: background .2s;
}
.carousel-arrow:hover{ background: #fff; }
.carousel-prev{ left: 14px; }
.carousel-next{ right: 14px; }
.carousel-dots{ display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.carousel-dot{ width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; background: #cdbfb8; transition: background .2s, transform .2s; }
.carousel-dot.active{ background: var(--color-bordeaux); transform: scale(1.25); }
@media (max-width: 640px){
  .carousel-slide img{ aspect-ratio: 4 / 3; }
  .carousel-arrow{ width: 36px; height: 36px; font-size: 1.4rem; }
  .gallery-block{ margin-bottom: 56px; }
}

/* =============== FORMATO DE TEXTO (peso / color desde el admin) =============== */
.fw-light{ font-weight: 300; }
.fw-normal{ font-weight: 400; }
.fw-bold{ font-weight: 600; }
.c-bordeaux{ color: #5B272E; }
.c-wine{ color: #7B4148; }
.c-blush{ color: #E8CFCF; }
.c-beige{ color: #E8DDD4; }
.c-dark{ color: #313131; }
.c-white{ color: #fff; }
.c-inherit{ color: inherit; }
.gallery-block .category-title{ text-align: center; }

/* Tamaños de letra (desde el admin) */
.fs-small{ font-size: .85em; }
.fs-normal{ font-size: 1em; }
.fs-large{ font-size: 1.3em; }
.fs-xlarge{ font-size: 1.7em; line-height: 1.2; }
/* Textos con formato / punteos dentro de las secciones */
.rich-content p{ margin: 0 0 .7em; }
.rich-content p:last-child{ margin-bottom: 0; }
.rich-content ul, .rich-content ol{ display: inline-block; text-align: left; margin: .5em auto; padding-left: 1.4em; }
.rich-content li{ margin-bottom: .3em; }
.about-text.rich-content ul, .about-text.rich-content ol, .careers-text.rich-content ul, .careers-text.rich-content ol{ display: block; }
