/* ============================================================
   Clínica Vitalis — paleta calma: celeste + verde salud.
   ============================================================ */

:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f0f7f6;
  --color-ink: #113a3a;
  --color-ink-soft: #52706e;
  --color-teal: #0e8f82;
  --color-teal-dark: #0b6f65;
  --color-blue: #2f7dd1;
  --color-line: #dde9e7;

  --font-sans: 'Manrope', sans-serif;
  --max-width: 1160px;
  --radius: 12px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-sans); background: var(--color-bg); color: var(--color-ink); line-height: 1.6; }
h1, h2, h3 { color: var(--color-ink); line-height: 1.2; margin: 0 0 0.5em; font-weight: 800; }
p { color: var(--color-ink-soft); margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.76rem; font-weight: 700; color: var(--color-teal); margin-bottom: 0.75em; }

.btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.85em 1.7em; border-radius: 999px; font-weight: 700; font-size: 0.95rem; border: 2px solid transparent; cursor: pointer; transition: all 0.15s ease; }
.btn-primary { background: var(--color-teal); color: #fff; }
.btn-primary:hover { background: var(--color-teal-dark); }
.btn-ghost { background: transparent; border-color: var(--color-teal); color: var(--color-teal); }
.btn-ghost:hover { background: var(--color-teal); color: #fff; }
.btn-block { width: 100%; }

/* top bar */
.top-bar { background: var(--color-ink); color: #cfe8e5; font-size: 0.82rem; }
.top-bar-inner { display: flex; justify-content: space-between; padding: 8px 24px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(6px); border-bottom: 1px solid var(--color-line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.05rem; }
.brand-mark { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; background: var(--color-teal); color: #fff; border-radius: 50%; font-weight: 800; }
.main-nav { display: flex; align-items: center; gap: 28px; font-size: 0.94rem; font-weight: 600; }
.main-nav a:hover { color: var(--color-teal); }
.nav-cta { background: var(--color-teal); color: #fff !important; padding: 0.6em 1.3em; border-radius: 999px; }
.nav-cta:hover { background: var(--color-teal-dark); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--color-ink); border-radius: 2px; }

/* hero */
.hero { padding: 88px 0 76px; background: linear-gradient(180deg, var(--color-bg-alt), #fff); }
.hero-inner { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2rem, 3.4vw, 2.7rem); }
.hero-lead { font-size: 1.05rem; max-width: 48ch; }
.hero-actions { display: flex; gap: 16px; margin-top: 28px; }
.hero-panel { background: var(--color-teal); border-radius: var(--radius); padding: 30px; color: #fff; }
.hero-panel-row { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.2); font-size: 0.94rem; }
.hero-panel-row:last-child { border-bottom: none; }
.hero-panel-row strong { font-size: 1.2rem; }

/* sections */
section { padding: 96px 0; }
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); }

/* tabs */
.tabs-nav { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 36px; }
.tab-btn { background: var(--color-bg-alt); border: 1px solid var(--color-line); padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: 0.9rem; color: var(--color-ink-soft); cursor: pointer; }
.tab-btn:hover { border-color: var(--color-teal); color: var(--color-teal); }
.tab-btn.active { background: var(--color-teal); color: #fff; border-color: var(--color-teal); }
.tab-panels { max-width: 680px; margin: 0 auto; }
.tab-panel { display: none; background: var(--color-bg-alt); border: 1px solid var(--color-line); border-radius: var(--radius); padding: 32px; }
.tab-panel.active { display: block; }
.tab-panel li { padding: 8px 0; border-bottom: 1px solid var(--color-line); font-size: 0.94rem; }
.tab-panel li:last-child { border-bottom: none; }

/* doctor slider */
.team { background: var(--color-bg-alt); }
.doctor-slider { display: flex; align-items: center; gap: 16px; }
.doctor-track { display: flex; gap: 20px; overflow: hidden; flex: 1; scroll-behavior: smooth; }
.doctor-card { min-width: calc(25% - 15px); flex-shrink: 0; text-align: center; background: #fff; border: 1px solid var(--color-line); border-radius: var(--radius); padding: 24px; transition: transform 0.3s ease; }
.doctor-photo { width: 90px; height: 90px; border-radius: 50%; margin: 0 auto 14px; background: linear-gradient(135deg, var(--color-teal), var(--color-blue)); }
.doctor-card h3 { font-size: 1rem; margin-bottom: 0.2em; }
.doctor-card p { font-size: 0.85rem; margin: 0; color: var(--color-teal); font-weight: 600; }
.slider-arrow { flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--color-line); background: #fff; font-size: 1.3rem; cursor: pointer; color: var(--color-ink); }
.slider-arrow:hover { border-color: var(--color-teal); color: var(--color-teal); }

/* faq */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--color-line); }
.faq-trigger { width: 100%; display: flex; justify-content: space-between; align-items: center; background: none; border: none; cursor: pointer; padding: 20px 4px; color: var(--color-ink); font-size: 1rem; font-weight: 700; }
.faq-icon { color: var(--color-teal); transition: transform 0.2s ease; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-panel { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-item.open .faq-panel { max-height: 200px; }
.faq-panel p { padding-bottom: 20px; font-size: 0.94rem; }

/* contact */
.contact-inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.contact-form { background: var(--color-bg-alt); border: 1px solid var(--color-line); border-radius: var(--radius); padding: 32px; }
.form-row { margin-bottom: 18px; }
.form-row-group { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label { display: block; font-size: 0.86rem; font-weight: 700; margin-bottom: 6px; }
input, select { width: 100%; padding: 0.75em 0.9em; border: 1px solid var(--color-line); border-radius: 8px; background: #fff; font-family: inherit; }
input:focus, select:focus { outline: none; border-color: var(--color-teal); }
.form-status { margin-top: 14px; font-size: 0.9rem; font-weight: 700; color: var(--color-teal); }

/* footer */
.site-footer { background: var(--color-ink); color: #cfe8e5; padding: 56px 0 0; }
.footer-inner { display: grid; grid-template-columns: 1.2fr 2fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-brand .brand { color: #fff; }
.footer-brand p { max-width: 32ch; font-size: 0.88rem; margin-top: 10px; }
.footer-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.footer-links h4 { color: #fff; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px; }
.footer-links a { display: block; font-size: 0.9rem; margin-bottom: 10px; }
.footer-links a:hover { color: #6fe0d0; }
.footer-bottom { padding: 20px 0; font-size: 0.8rem; text-align: center; }

/* responsive */
@media (max-width: 960px) {
  .hero-inner, .contact-inner { grid-template-columns: 1fr; }
  .doctor-card { min-width: calc(50% - 10px); }
}
@media (max-width: 720px) {
  .top-bar-inner { flex-direction: column; gap: 4px; text-align: center; }
  .main-nav { position: absolute; top: 78px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--color-line); flex-direction: column; align-items: flex-start; gap: 0; padding: 12px 24px 20px; display: none; }
  .main-nav.open { display: flex; }
  .main-nav a { width: 100%; padding: 12px 0; border-bottom: 1px solid var(--color-line); }
  .nav-cta { margin-top: 12px; text-align: center; }
  .nav-toggle { display: flex; }
  .doctor-card { min-width: 100%; }
  .form-row-group { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
  .hero { padding: 56px 0 48px; }
}
