/* =========================================================
   Physionova — hoja de estilos principal
   ========================================================= */

:root {
  --teal-900: #0a3d42;
  --teal-800: #0d4f52;
  --teal-700: #0f6b70;
  --teal-600: #128a90;
  --teal-500: #16a6ab;
  --teal-100: #e2f5f5;
  --teal-50:  #f2fbfc;
  --ink:      #16221f;
  --muted:    #5c6b68;
  --bg:       #f8faf9;
  --white:    #ffffff;
  --border:   #e2e8e6;
  --shadow:   0 10px 30px rgba(10, 61, 66, 0.08);
  --radius:   16px;
  --radius-sm:10px;
  --max:      1160px;
  font-size: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

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

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

h1, h2, h3, h4 {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  color: var(--teal-900);
  line-height: 1.25;
  margin: 0 0 16px;
}

h1 { font-size: clamp(2rem, 4vw, 2.9rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 16px; color: var(--muted); }

.eyebrow {
  display: inline-block;
  color: var(--teal-600);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 10px;
}

.section {
  padding: 72px 0;
}
.section--tight { padding: 48px 0; }
.section--alt { background: var(--white); }

.section-head {
  max-width: 640px;
  margin: 0 auto 44px;
  text-align: center;
}
.section-head p { margin: 0 auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: var(--teal-600);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(18, 138, 125, 0.35);
}
.btn--primary:hover { background: var(--teal-700); }

.btn--ghost {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}
.btn--ghost:hover { background: rgba(255,255,255,0.12); }

.btn--outline {
  background: transparent;
  border-color: var(--teal-600);
  color: var(--teal-600);
}
.btn--outline:hover { background: var(--teal-50); }

.btn--sm { padding: 10px 20px; font-size: 0.88rem; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 82px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--teal-900);
}
.brand .brand-mark {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.brand .brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.brand small {
  display: block;
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.main-nav a {
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
  color: var(--ink);
  font-size: 0.95rem;
}
.main-nav a:hover,
.main-nav a.is-active { background: var(--teal-100); color: var(--teal-800); }

.header-actions { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--teal-900);
  margin: 5px 0;
  border-radius: 2px;
}

/* ---------- Sección con foto de fondo ---------- */
.section--why {
  position: relative;
  background:
    linear-gradient(120deg, rgba(10,61,66,0.68), rgba(18,138,144,0.50)),
    url('masaje-espalda.jpg') center / cover no-repeat;
}
.section--why .eyebrow { color: #bfe9e2; text-shadow: 0 2px 8px rgba(0,0,0,0.35); }
.section--why .section-head h2,
.section--why .section-head p,
.section--why > .container > div > p { color: white; text-shadow: 0 2px 10px rgba(0,0,0,0.4); }
.section--why .section-head p,
.section--why > .container > div > p { color: rgba(255,255,255,0.95); }

/* ---------- Hero ---------- */
.hero {
  background: radial-gradient(circle at 15% 20%, rgba(255,255,255,0.10), transparent 45%),
              linear-gradient(120deg, var(--teal-900), var(--teal-700) 55%, var(--teal-600));
  color: white;
  padding: 76px 0 90px;
  position: relative;
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.14);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
}
.hero h1 { color: white; }
.hero p.lead {
  color: rgba(255,255,255,0.88);
  font-size: 1.1rem;
  max-width: 520px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero-stats {
  display: flex;
  gap: 28px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.hero-stats div strong {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
}
.hero-stats div span {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
}

.hero-art {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius);
  padding: 28px;
  backdrop-filter: blur(4px);
}
.hero-art ul { list-style: none; padding: 0; margin: 0; }
.hero-art li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.92);
}
.hero-art li:last-child { border-bottom: none; }
.hero-art .icon-chip {
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(255,255,255,0.16);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.hero-art li strong { display: block; font-size: 0.98rem; color: white; }
.hero-art li span { font-size: 0.85rem; color: white; }

/* ---------- Icon circles ---------- */
.icon-circle {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--teal-100);
  color: var(--teal-700);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  flex-shrink: 0;
}
.icon-circle svg { width: 28px; height: 28px; }

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

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  height: 100%;
}
.card h3 { margin-bottom: 10px; }

/* ---------- Tarjetas de servicios (Inicio) ---------- */
#servicios .card {
  background: linear-gradient(135deg, var(--teal-600), var(--teal-800));
  border: none;
}
#servicios .card .icon-circle { background: rgba(255,255,255,0.2); color: white; }
#servicios .card h3 { color: white; }
#servicios .card p { color: rgba(255,255,255,0.9); }
#servicios .card .card-link { color: white; }

/* ---------- Tarjeta destacada (turquesa, texto blanco) ---------- */
.card--teal {
  background: linear-gradient(135deg, var(--teal-600), var(--teal-800));
  border: none;
}
.card--teal h3 { color: white; }
.card--teal p { color: rgba(255,255,255,0.92); }
.card p:last-child { margin-bottom: 0; }
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--teal-600);
  margin-top: 6px;
}

/* ---------- Service detail blocks ---------- */
.service-block {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 26px;
  padding: 36px 0;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 100px;
}
.service-block:last-child { border-bottom: none; }
.service-block .icon-circle { width: 72px; height: 72px; margin-bottom: 0; }
.service-block .icon-circle svg { width: 34px; height: 34px; }
.service-block ul { margin: 12px 0 0; padding-left: 20px; color: var(--muted); }
.service-block li { margin-bottom: 6px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--teal-800), var(--teal-600));
  color: white;
  border-radius: var(--radius);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-band h2, .cta-band p { color: white; }
.cta-band p { color: rgba(255,255,255,0.85); margin-bottom: 0; }

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.gallery--wide img { aspect-ratio: 16 / 10; }

@media (max-width: 900px) {
  .gallery { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .gallery { grid-template-columns: 1fr; }
}

/* ---------- Blog ---------- */
.blog-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.blog-card .blog-thumb {
  height: 150px;
  background: linear-gradient(135deg, var(--teal-500), var(--teal-800));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}
.blog-card .blog-thumb svg { width: 46px; height: 46px; }
.blog-card .blog-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.blog-meta {
  font-size: 0.78rem;
  color: var(--teal-600);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}
.blog-card h3 { margin-bottom: 10px; }
.blog-card p { flex: 1; }

article.post {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 44px;
  box-shadow: var(--shadow);
}
article.post h2 { margin-top: 32px; }
article.post p { color: var(--ink); opacity: 0.85; }
article.post ul { color: var(--ink); opacity: 0.85; padding-left: 20px; }
.post-meta {
  display: flex;
  gap: 16px;
  align-items: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.tag {
  background: var(--teal-100);
  color: var(--teal-700);
  padding: 4px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.78rem;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.contact-info-item {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.contact-info-item:last-child { border-bottom: none; }
.contact-info-item h4 { margin: 0 0 4px; font-size: 1rem; }
.contact-info-item p { margin: 0; }

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.map-wrap iframe { width: 100%; height: 340px; border: 0; display: block; }

.form-field { margin-bottom: 16px; }
.form-field label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--ink);
}
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--bg);
}
.form-field textarea { min-height: 120px; resize: vertical; }
.form-note {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: -6px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--teal-900);
  color: rgba(255,255,255,0.82);
  padding: 56px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-grid h4 {
  color: white;
  font-size: 0.95rem;
  margin-bottom: 16px;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 10px; font-size: 0.92rem; }
.footer-grid a:hover { color: white; }
.footer-brand p { color: rgba(255,255,255,0.7); font-size: 0.92rem; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .service-block { grid-template-columns: 60px 1fr; }
}

@media (max-width: 720px) {
  .main-nav, .header-actions .btn--outline { display: none; }
  .nav-toggle { display: block; }
  .site-header.nav-open .main-nav {
    display: flex;
    position: absolute;
    top: 82px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 16px 24px 24px;
    border-bottom: 1px solid var(--border);
  }
