/* ============================================================
   LISTER MAIS SAÚDE — CLÍNICA DE FISIOTERAPIA
   Style Sheet — Paleta baseada no logotipo
   ============================================================ */

/* ---------- RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green-primary:   #288241;
  --green-dark:      #1A6632;
  --green-deep:      #0D2B17;
  --green-mid:       #1e5c2e;
  --green-light:     #4aab65;
  --green-subtle:    #E8F5EC;
  --green-accent:    #53A86A;
  --white:           #FFFFFF;
  --off-white:       #F7FAF8;
  --text-dark:       #111111;
  --text-mid:        #444444;
  --text-light:      #777777;
  --border:          #d4e8da;
  --shadow:          0 4px 24px rgba(0,0,0,.10);
  --shadow-lg:       0 8px 40px rgba(0,0,0,.14);
  --radius:          10px;
  --radius-lg:       18px;
  --transition:      .3s ease;
  --font-heading:    'Playfair Display', Georgia, serif;
  --font-body:       'Inter', sans-serif;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  line-height: 1.2;
  color: var(--text-dark);
}

h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.5rem); }

.section-label {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green-primary);
  display: block;
  margin-bottom: .5rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--text-dark);
  margin-bottom: .75rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-mid);
  max-width: 620px;
}

/* ---------- LAYOUT HELPERS ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-pad { padding: 5rem 0; }
.section-pad-sm { padding: 3rem 0; }

.text-center { text-align: center; }
.text-center .section-subtitle { margin: 0 auto; }

.flex { display: flex; }
.flex-center { align-items: center; }
.gap-1 { gap: 1rem; }
.gap-2 { gap: 2rem; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 2rem;
  border-radius: 50px;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: var(--green-primary);
  color: var(--white);
  border-color: var(--green-primary);
}
.btn-primary:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(40,130,65,.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.7);
}
.btn-outline:hover {
  background: rgba(255,255,255,.12);
  border-color: var(--white);
}

.btn-outline-green {
  background: transparent;
  color: var(--green-primary);
  border-color: var(--green-primary);
}
.btn-outline-green:hover {
  background: var(--green-primary);
  color: var(--white);
}

.btn-lg { padding: 1rem 2.4rem; font-size: 1.05rem; }

/* ---------- TOP BAR ---------- */
.top-bar {
  background: var(--green-deep);
  color: rgba(255,255,255,.75);
  font-size: .82rem;
  padding: .5rem 0;
}
.top-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
}
.top-bar a { color: rgba(255,255,255,.75); transition: color var(--transition); }
.top-bar a:hover { color: var(--white); }
.top-bar .top-bar-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.top-bar i { margin-right: .3rem; }

/* ---------- HEADER / NAVBAR ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 2px 16px rgba(0,0,0,.08);
  transition: box-shadow var(--transition);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .9rem 0;
  gap: 1.5rem;
}

/* Logo area */
.brand {
  display: flex;
  align-items: center;
  gap: .9rem;
  flex-shrink: 0;
  text-decoration: none;
}

.brand-logo {
  height: 52px;
  width: auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: .7rem;
  font-weight: 700;
  color: var(--green-deep);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.brand-tagline {
  font-size: .72rem;
  color: var(--green-primary);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* Nav links */
.nav-menu {
  display: flex;
  align-items: center;
  gap: .25rem;
}

.nav-menu a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-mid);
  padding: .5rem .85rem;
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}
.nav-menu a:hover,
.nav-menu a.active {
  color: var(--green-primary);
  background: var(--green-subtle);
}

/* Dropdown */
.nav-item { position: relative; }
.nav-item > a::after {
  content: ' ▾';
  font-size: .7rem;
  opacity: .6;
}
.dropdown {
  position: absolute;
  top: calc(100% + .4rem);
  left: 0;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 220px;
  padding: .5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition);
  z-index: 100;
}
.nav-item:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown a {
  display: block;
  padding: .6rem 1.2rem;
  font-size: .88rem;
  border-radius: 0;
  color: var(--text-mid);
}
.dropdown a:hover { background: var(--green-subtle); color: var(--green-primary); }

/* CTA button in nav */
.nav-cta {
  background: var(--green-primary) !important;
  color: var(--white) !important;
  border-radius: 50px !important;
  padding: .55rem 1.3rem !important;
  font-weight: 600 !important;
}
.nav-cta:hover {
  background: var(--green-dark) !important;
}

/* Mobile hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: .3rem;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: var(--transition);
}

/* ============================================================
   HERO / BANNER — FULL RESPONSIVE BACKGROUND IMAGE
   ============================================================ */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;      /* full viewport by default */
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Background image layer */
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/hero-fisioterapia.jpg');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  z-index: 0;
  /* subtle slow scale for polish */
  animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  from { transform: scale(1); }
  to   { transform: scale(1.04); }
}

/* Dark gradient overlay for readability */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(13, 43, 23, .88) 0%,
    rgba(13, 43, 23, .70) 45%,
    rgba(13, 43, 23, .30) 100%
  );
  z-index: 1;
}

/* Content sits above overlay */
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 7rem 0 5rem; /* space for sticky header */
}

.hero-inner {
  max-width: 640px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  color: var(--white);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .4rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 1.2rem;
}

.hero-title span {
  color: var(--green-light);
}

.hero-subtitle {
  font-size: clamp(.95rem, 2vw, 1.15rem);
  color: rgba(255,255,255,.85);
  margin-bottom: 2.2rem;
  max-width: 520px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.8rem;
}

/* Trust bar inside hero at bottom */
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: rgba(255,255,255,.82);
  font-size: .88rem;
}

.trust-item i {
  color: var(--green-light);
  font-size: 1rem;
}

/* ---------- STATS STRIP ---------- */
.stats-strip {
  background: var(--green-primary);
  padding: 2.5rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: center;
}
.stat-item { color: var(--white); }
.stat-num {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1;
  margin-bottom: .3rem;
}
.stat-label { font-size: .88rem; opacity: .85; }

/* ---------- INTRO SPLIT ---------- */
.intro-section { background: var(--off-white); }
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.intro-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.intro-image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}
.intro-badge-img {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--green-primary);
  color: var(--white);
  border-radius: var(--radius);
  padding: .8rem 1.2rem;
  text-align: center;
  box-shadow: var(--shadow);
}
.intro-badge-img strong { display: block; font-size: 1.6rem; font-family: var(--font-heading); }
.intro-badge-img span { font-size: .78rem; opacity: .85; }

.intro-text .section-title { margin-bottom: 1rem; }
.intro-text p { color: var(--text-mid); margin-bottom: 1rem; }
.intro-checks { margin: 1.5rem 0; }
.intro-checks li {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  margin-bottom: .65rem;
  font-size: .95rem;
  color: var(--text-mid);
}
.intro-checks li i { color: var(--green-primary); margin-top: .2rem; flex-shrink: 0; }

/* ---------- ESPECIALIDADES ---------- */
.esp-section { background: var(--white); }
.esp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.esp-card {
  background: var(--off-white);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  border: 1px solid var(--border);
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
  display: block;
}
.esp-card:hover {
  border-color: var(--green-primary);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}
.esp-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: var(--green-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--green-primary);
  margin-bottom: 1.2rem;
}
.esp-card h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.esp-card p { font-size: .9rem; color: var(--text-mid); line-height: 1.55; }
.esp-more {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  margin-top: .9rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--green-primary);
}

/* ---------- PATOLOGIAS TABS ---------- */
.pat-section { background: var(--green-deep); }
.pat-section .section-title,
.pat-section .section-label { color: var(--white); }
.pat-section .section-subtitle { color: rgba(255,255,255,.7); }

.pat-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 2rem 0 1.5rem;
}
.pat-tab {
  padding: .5rem 1.1rem;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,.25);
  color: rgba(255,255,255,.7);
  font-size: .85rem;
  cursor: pointer;
  transition: var(--transition);
  background: transparent;
  font-family: var(--font-body);
}
.pat-tab:hover,
.pat-tab.active {
  background: var(--green-primary);
  border-color: var(--green-primary);
  color: var(--white);
}

.pat-panel { display: none; }
.pat-panel.active { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }

.pat-item {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: 1.2rem 1rem;
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.pat-item:hover {
  background: rgba(255,255,255,.12);
  border-color: var(--green-light);
}
.pat-item i {
  display: block;
  font-size: 1.3rem;
  color: var(--green-light);
  margin-bottom: .5rem;
}
.pat-item h4 { font-size: .9rem; color: var(--white); margin-bottom: .3rem; font-family: var(--font-body); font-weight: 600; }
.pat-item p { font-size: .78rem; color: rgba(255,255,255,.6); line-height: 1.45; }

/* ---------- COMO FUNCIONA ---------- */
.como-section { background: var(--off-white); }
.como-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
  position: relative;
}
.como-grid::before {
  content: '';
  position: absolute;
  top: 35px;
  left: 8%;
  right: 8%;
  height: 2px;
  background: linear-gradient(90deg, var(--green-subtle), var(--green-primary), var(--green-subtle));
  z-index: 0;
}
.como-step {
  position: relative;
  z-index: 1;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem 1.4rem;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.como-num {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--green-primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-family: var(--font-heading);
  font-weight: 700;
  margin: 0 auto 1.2rem;
  box-shadow: 0 4px 16px rgba(40,130,65,.35);
}
.como-step h3 { font-size: 1rem; margin-bottom: .5rem; }
.como-step p { font-size: .88rem; color: var(--text-mid); }

/* ---------- TESTIMONIALS ---------- */
.testimonials-section { background: var(--white); }
.test-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.test-card {
  background: var(--off-white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--border);
  position: relative;
}
.test-card::before {
  content: '"';
  position: absolute;
  top: .8rem;
  left: 1.5rem;
  font-size: 4rem;
  color: var(--green-primary);
  opacity: .2;
  font-family: var(--font-heading);
  line-height: 1;
}
.test-stars { color: #f5a623; margin-bottom: .8rem; font-size: .9rem; }
.test-text { font-size: .92rem; color: var(--text-mid); font-style: italic; margin-bottom: 1.2rem; line-height: 1.6; }
.test-author { display: flex; align-items: center; gap: .7rem; }
.test-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--green-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: .9rem;
  flex-shrink: 0;
}
.test-info strong { display: block; font-size: .88rem; }
.test-info span { font-size: .78rem; color: var(--text-light); }

/* ---------- FAQ ---------- */
.faq-section { background: var(--green-subtle); }
.faq-list { max-width: 760px; margin: 2.5rem auto 0; }
.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  margin-bottom: .75rem;
  border: 1px solid var(--border);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.1rem 1.4rem;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: .95rem;
  font-weight: 600;
  color: var(--text-dark);
  font-family: var(--font-body);
}
.faq-question i { color: var(--green-primary); transition: transform var(--transition); }
.faq-item.open .faq-question i { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease;
}
.faq-item.open .faq-answer { max-height: 300px; }
.faq-answer p {
  padding: 0 1.4rem 1.2rem;
  font-size: .92rem;
  color: var(--text-mid);
  line-height: 1.65;
}

/* ---------- CTA BAND ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--green-deep) 0%, var(--green-primary) 100%);
  padding: 5rem 0;
  text-align: center;
  color: var(--white);
}
.cta-band h2 { color: var(--white); margin-bottom: 1rem; }
.cta-band p { font-size: 1.05rem; opacity: .85; margin-bottom: 2rem; max-width: 580px; margin-left: auto; margin-right: auto; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--green-deep);
  color: rgba(255,255,255,.75);
  padding: 4rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
}
.footer-logo img { height: 44px; margin-bottom: 1rem; }
.footer-logo p { font-size: .88rem; line-height: 1.6; }

.footer-col h4 {
  color: var(--white);
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer-col ul li { margin-bottom: .4rem; }
.footer-col ul li a {
  font-size: .88rem;
  color: rgba(255,255,255,.65);
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--white); }
.footer-col .contact-item {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  margin-bottom: .65rem;
  font-size: .88rem;
}
.footer-col .contact-item i { color: var(--green-light); margin-top: .15rem; flex-shrink: 0; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 1.5rem 0;
  margin-top: 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .82rem;
  color: rgba(255,255,255,.45);
}
.footer-bottom a { color: rgba(255,255,255,.55); }
.footer-bottom a:hover { color: var(--white); }

/* WhatsApp floating */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.5rem;
  box-shadow: 0 4px 20px rgba(37,211,102,.4);
  transition: var(--transition);
}
.whatsapp-float:hover { transform: scale(1.1); }

/* Page hero (interior pages) */
.page-hero {
  background: linear-gradient(135deg, var(--green-deep) 0%, var(--green-mid) 100%);
  padding: 5rem 0 4rem;
  color: var(--white);
  text-align: center;
}
.page-hero h1 { color: var(--white); margin-bottom: .75rem; }
.page-hero p { color: rgba(255,255,255,.75); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }
.breadcrumb {
  display: flex;
  justify-content: center;
  gap: .5rem;
  font-size: .82rem;
  color: rgba(255,255,255,.5);
  margin-bottom: 1rem;
}
.breadcrumb a { color: rgba(255,255,255,.65); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { color: rgba(255,255,255,.35); }

/* --- Team cards --- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.team-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border);
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.team-photo {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: var(--green-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--green-primary);
}
.team-info { padding: 1.4rem; }
.team-info h3 { font-size: 1rem; margin-bottom: .25rem; }
.team-info .role { font-size: .82rem; color: var(--green-primary); font-weight: 600; margin-bottom: .5rem; display: block; }
.team-info p { font-size: .85rem; color: var(--text-mid); }

/* --- Values grid --- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.value-card {
  background: var(--off-white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border-left: 4px solid var(--green-primary);
  transition: var(--transition);
}
.value-card:hover { box-shadow: var(--shadow); }
.value-card i { font-size: 1.8rem; color: var(--green-primary); margin-bottom: 1rem; display: block; }
.value-card h3 { margin-bottom: .5rem; }
.value-card p { font-size: .9rem; color: var(--text-mid); }

/* Specialties detail */
.esp-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  padding: 3rem 0;
  border-bottom: 1px solid var(--border);
}
.esp-detail:last-child { border-bottom: none; }
.esp-detail.reverse { direction: rtl; }
.esp-detail.reverse > * { direction: ltr; }
.esp-detail-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.esp-detail-img img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}
.esp-detail-text .section-title { font-size: 1.6rem; margin-bottom: .75rem; }
.esp-detail-text p { color: var(--text-mid); margin-bottom: .9rem; font-size: .95rem; }
.esp-tag-list { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; }
.esp-tag {
  background: var(--green-subtle);
  color: var(--green-dark);
  border-radius: 50px;
  padding: .25rem .8rem;
  font-size: .78rem;
  font-weight: 600;
}

/* Patologias page */
.pat-search-bar {
  max-width: 480px;
  margin: 0 auto 2rem;
  position: relative;
}
.pat-search-bar input {
  width: 100%;
  padding: .9rem 1.2rem .9rem 3rem;
  border: 2px solid var(--border);
  border-radius: 50px;
  font-size: .95rem;
  outline: none;
  transition: border-color var(--transition);
}
.pat-search-bar input:focus { border-color: var(--green-primary); }
.pat-search-bar i {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
}

.pat-group { margin-bottom: 3rem; }
.pat-group-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--green-dark);
  border-bottom: 2px solid var(--green-subtle);
  padding-bottom: .5rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: .7rem;
}
.pat-group-title i { color: var(--green-primary); }

.pat-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.pat-card {
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 1.2rem;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
}
.pat-card:hover {
  border-color: var(--green-primary);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.pat-card h4 { font-size: .92rem; margin-bottom: .3rem; font-family: var(--font-body); font-weight: 600; }
.pat-card p { font-size: .8rem; color: var(--text-mid); line-height: 1.45; }

/* Contactos */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  align-items: start;
}
.contact-info-cards { display: flex; flex-direction: column; gap: 1rem; }
.contact-info-card {
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 1.4rem;
  border: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.contact-info-card .icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--green-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--green-primary);
  flex-shrink: 0;
}
.contact-info-card h4 { font-size: .88rem; font-weight: 700; margin-bottom: .3rem; }
.contact-info-card p, .contact-info-card a { font-size: .9rem; color: var(--text-mid); }
.contact-info-card a:hover { color: var(--green-primary); }

.contact-form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.contact-form-card h3 { margin-bottom: 1.5rem; }

.form-group { margin-bottom: 1.2rem; }
.form-group label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: .4rem;
  color: var(--text-dark);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .85rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: .95rem;
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--off-white);
  outline: none;
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--green-primary);
  background: var(--white);
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* Map */
.map-section { background: var(--off-white); padding: 3rem 0; }
.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 380px;
  background: var(--green-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-mid);
  font-size: 1rem;
  border: 1px solid var(--border);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* ---- Large tablet / small desktop ---- */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .pat-panel.active { grid-template-columns: repeat(3, 1fr); }
  .pat-cards-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---- Tablet ---- */
@media (max-width: 860px) {
  .esp-grid { grid-template-columns: repeat(2, 1fr); }
  .como-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .como-grid::before { display: none; }
  .test-grid { grid-template-columns: 1fr; }
  .intro-grid { grid-template-columns: 1fr; gap: 2rem; }
  .intro-image img { height: 300px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .esp-detail { grid-template-columns: 1fr; }
  .esp-detail.reverse { direction: ltr; }
  .values-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .pat-panel.active { grid-template-columns: repeat(2, 1fr); }
  .pat-cards-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---- Mobile ---- */
@media (max-width: 640px) {
  /* Hero */
  .hero { min-height: 100svh; }
  .hero-content { padding: 5rem 0 3rem; }
  .hero-inner { max-width: 100%; }
  .hero-title { font-size: clamp(1.9rem, 7vw, 2.6rem); }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-trust { flex-direction: column; gap: .8rem; }

  /* Navbar */
  .hamburger { display: flex; }
  .nav-menu {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--white);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    z-index: 2000;
    padding: 2rem;
  }
  .nav-menu.open { display: flex; }
  .nav-menu a { font-size: 1.15rem; padding: .7rem 1.5rem; }
  .nav-item > a::after { display: none; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: var(--green-subtle); }
  .close-menu {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
    background: none;
    border: none;
  }

  /* Grids */
  .esp-grid { grid-template-columns: 1fr; }
  .como-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .test-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .pat-panel.active { grid-template-columns: repeat(2, 1fr); }
  .pat-cards-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 380px) {
  .team-grid { grid-template-columns: 1fr; }
  .pat-panel.active { grid-template-columns: 1fr; }
  .pat-cards-grid { grid-template-columns: 1fr; }
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
