:root {
  --bg: #ffffff;
  --bg-alt: #f4f3ef;
  --text: #111111;
  --muted: #6b6b6b;
  --border: #e3e3e3;
  --serif: "Montserrat", Arial, Helvetica, sans-serif;
  --sans: "Montserrat", Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.container {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.8rem;
  font-family: var(--sans);
}

.divider {
  display: block;
  width: 40px;
  height: 2px;
  background: var(--text);
  margin: 1.2rem 0;
}

.divider.center {
  margin-left: auto;
  margin-right: auto;
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 0.85rem 1.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-decoration: none;
  border-radius: 0;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  cursor: pointer;
  border: 1px solid var(--text);
  font-family: var(--sans);
}

.btn-dark {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}

.btn-dark:hover {
  background: #000;
  transform: translateY(-2px);
}

.btn-light {
  background: transparent;
  color: var(--text);
}

.btn-light:hover {
  background: var(--text);
  color: #fff;
}

/* ── Header / Nav ── */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0.5rem 0;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
  color: var(--text);
  height: 60px;
  overflow: visible;
}

.brand-img {
  height: 78px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-line-1,
.brand-line-3 {
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  font-weight: 500;
}

.brand-line-2 {
  font-family: var(--serif);
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  font-weight: 700;
  margin: 0.1rem 0;
}

.brand-line-3 {
  letter-spacing: 0.4em;
}

.main-nav {
  display: flex;
  gap: 1.8rem;
  justify-content: center;
}

.main-nav a {
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--text);
  padding: 0.3rem 0;
  position: relative;
}

.main-nav a.active::after,
.main-nav a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 1px;
  background: var(--text);
}

.header-cta {
  justify-self: end;
  font-size: 0.75rem;
  padding: 0.7rem 1.1rem;
}

/* ── Hamburger toggle (oculto en desktop) ── */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--text);
  width: 40px;
  height: 40px;
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  justify-self: end;
  border-radius: 4px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.is-active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Hero ── */
.hero {
  background: var(--bg);
  padding: 3rem 0 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(3rem, 7vw, 5.5rem);
  margin: 0.5rem 0 1rem;
  letter-spacing: 0.02em;
}

.hero-subtitle {
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: var(--text);
  margin-bottom: 0.5rem;
  font-weight: 500;
  max-width: 480px;
  line-height: 1.5;
}

.hero-image img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: 6px;
  filter: grayscale(100%) contrast(1.05);
}

/* ── Section title ── */
.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: 0.03em;
}

/* ── Intro text ── */
.intro-text {
  background: var(--bg);
  padding: 3rem 0 1rem;
  text-align: center;
}

.intro-text .container {
  max-width: 820px;
}

.intro-lead {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  font-weight: 500;
  line-height: 1.5;
  color: var(--text);
  margin-bottom: 1rem;
}

.intro-sub {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.6;
}

@media (max-width: 560px) {
  .intro-text {
    padding: 2.5rem 0 0.5rem;
  }
}

/* ── Treatments ── */
.treatments {
  background: var(--bg);
  padding: 4rem 0;
}

.treatments-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem 1.2rem;
}

.t-card {
  text-align: center;
  padding: 1rem 0.6rem;
}

.t-card svg {
  width: 54px;
  height: 54px;
  color: var(--text);
  margin: 0 auto 1rem;
  display: block;
}

.t-card h3 {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  font-family: var(--sans);
  font-weight: 700;
  line-height: 1.3;
}

/* ── About ── */
.about {
  background: var(--bg);
  padding: 4rem 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-text h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1.2rem;
}

.about-text p {
  color: var(--muted);
  margin-bottom: 1.5rem;
  max-width: 460px;
}

.about-image img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: 6px;
  filter: grayscale(100%) contrast(1.05);
}

/* ── Features ── */
.features {
  background: var(--bg);
  padding: 2.5rem 0 3.5rem;
  border-top: 1px solid var(--border);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.f-item {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 0 0.5rem;
}

.f-item svg {
  width: 36px;
  height: 36px;
  color: var(--text);
  flex-shrink: 0;
}

.f-item h4 {
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.f-item p {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.45;
}

/* ── Gallery ── */
.gallery {
  background: var(--bg-alt);
  padding: 4rem 0;
}

/* ── Team ── */
.team {
  background: var(--bg);
  padding: 4rem 0;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.team-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.team-card:hover {
  transform: translateY(-4px);
  border-color: var(--text);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.team-photo {
  width: 110px;
  height: 110px;
  margin: 0 auto 1.2rem;
  border-radius: 50%;
  overflow: hidden;
  background: #efefef;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-photo svg {
  width: 100%;
  height: 100%;
  display: block;
}

.team-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  letter-spacing: 0.01em;
}

.team-role {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.6rem;
  line-height: 1.4;
  min-height: 2.4em;
}

.team-id {
  font-size: 0.8rem;
  color: var(--text);
  letter-spacing: 0.05em;
}

.team-id span {
  font-weight: 700;
}

@media (min-width: 1025px) {
  .team-grid {
    grid-template-columns: repeat(6, 1fr);
  }
  .team-card:nth-child(1) { grid-column: 1 / span 2; }
  .team-card:nth-child(2) { grid-column: 3 / span 2; }
  .team-card:nth-child(3) { grid-column: 5 / span 2; }
  .team-card:nth-child(4) { grid-column: 2 / span 2; }
  .team-card:nth-child(5) { grid-column: 4 / span 2; }
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.gallery-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 4px;
  filter: grayscale(100%) contrast(1.05);
  transition: filter 0.3s ease;
}

.gallery-grid img:hover {
  filter: grayscale(0%);
}

/* ── Contact ── */
.contact {
  background: var(--bg);
  padding: 4rem 0 5.5rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-panel {
  width: 100%;
}

.contact-info-panel {
  text-align: left;
}

.contact-social-panel {
  text-align: center;
  padding-top: 2.5rem;
}

@media (min-width: 801px) {
  .contact-social-panel {
    padding-top: 3.5rem;
  }
}

.contact h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 1rem;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 1.1rem;
  border: 1px solid var(--text);
  background: #fff;
  color: var(--text);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.social-icon:hover {
  background: var(--text);
  color: #fff;
  transform: translateY(-2px);
}

.social-icon svg {
  width: 26px;
  height: 26px;
  color: inherit;
  fill: currentColor;
}

.social-icon svg[fill="none"] rect,
.social-icon svg[fill="none"] circle,
.social-icon svg[fill="none"] path {
  stroke: currentColor;
}

.contact-info {
  color: var(--muted);
  margin: 1.2rem 0 0.6rem;
  line-height: 1.9;
}

.contact-info a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: border-color 0.2s ease;
}

.contact-info a:hover {
  border-color: var(--text);
}

.contact-address {
  color: var(--muted);
  margin: 0 0 1.5rem;
  line-height: 1.6;
  font-size: 0.9rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text);
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  font-family: var(--sans);
  font-size: 0.95rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  border-radius: 4px;
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--text);
}

.contact-form button {
  align-self: flex-start;
  margin-top: 0.5rem;
}

/* ── Footer ── */
.footer {
  text-align: center;
  padding: 1.5rem 1rem 2rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
}

/* ── WhatsApp floating button (sin cambios) ── */
.wsp-btn {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wsp-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.6);
}

.wsp-btn svg {
  width: 2rem;
  height: 2rem;
  fill: #fff;
  position: relative;
  z-index: 2;
}

.wsp-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25d366;
  opacity: 0.6;
  animation: wsp-pulse 2s ease-out infinite;
  z-index: 1;
}

@keyframes wsp-pulse {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .treatments-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1025px) {
  .treatments-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 800px) {
  .nav {
    grid-template-columns: 1fr auto auto;
    align-items: center;
  }

  .nav-toggle {
    display: flex;
    order: 2;
  }

  .header-cta {
    order: 3;
    justify-self: end;
  }

  .main-nav {
    grid-column: 1 / -1;
    order: 4;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    margin-top: 0;
    background: #fff;
    border-top: 1px solid transparent;
  }

  .main-nav.is-open {
    max-height: 400px;
    border-top-color: var(--border);
  }

  .main-nav a {
    padding: 0.9rem 0.2rem;
    border-bottom: 1px solid var(--border);
  }

  .main-nav a:last-child {
    border-bottom: none;
  }

  .main-nav a.active::after,
  .main-nav a:hover::after {
    display: none;
  }

  .hero-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .hero-image img {
    height: 320px;
  }
  .team-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .brand {
    gap: 0.5rem;
    height: 48px;
    overflow: visible;
  }
  .brand-img {
    height: 60px;
  }
  .brand-line-1,
  .brand-line-3 {
    font-size: 0.55rem;
  }
  .brand-line-2 {
    font-size: 1.2rem;
  }
  .brand-line-3 {
    display: none;
  }
  .treatments-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
  .gallery-grid img {
    height: 140px;
  }
  .hero-text h1 {
    font-size: 2.6rem;
  }
  .brand-line-2 {
    font-size: 1.4rem;
  }
}

/* ── Mobile-only refinements (no afecta desktop) ── */
@media (max-width: 800px) {
  .nav {
    grid-template-columns: 1fr auto auto;
  }
  .header-cta {
    order: 2;
  }
  .nav-toggle {
    order: 3;
  }
}

@media (max-width: 800px) {
  .hero {
    padding: 2rem 0 2.5rem;
  }
  .hero-image {
    margin: 0 -1rem;
  }
  .hero-image img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    border-radius: 0;
  }
}

@media (max-width: 800px) {
  .hero-text h1 {
    white-space: nowrap;
  }
  .hero-text h1 .hero-break {
    display: none;
  }
}
