/* Dr. Levy Clínica Fisio — Main CSS */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green: #2d6a4f;
  --green-mid: #40916c;
  --green-light: #52b788;
  --green-pale: #d8f3dc;
  --green-ultra: #f0faf2;
  --cream: #faf9f6;
  --dark: #1c1c1a;
  --mid: #3d3d3b;
  --muted: #7a7a77;
  --border: #e5e2db;
  --white: #ffffff;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--dark);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

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

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(250,249,246,0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  height: 70px;
  transition: box-shadow 0.3s;
}

.nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.08); }

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--mid);
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover { color: var(--green); background: var(--green-ultra); }

.nav-cta {
  display: flex !important;
  align-items: center;
  gap: 0.4rem;
  background: var(--green) !important;
  color: white !important;
  padding: 0.5rem 1.1rem !important;
  border-radius: 100px !important;
  font-weight: 500 !important;
  transition: background 0.2s !important;
}

.nav-cta:hover { background: var(--green-mid) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--green);
  color: white;
  padding: 0.875rem 1.75rem;
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: background 0.2s, transform 0.15s;
  cursor: pointer;
  border: none;
}

.btn-primary:hover { background: var(--green-mid); transform: translateY(-2px); color: white; }
.btn-primary.btn-lg { padding: 1rem 2.25rem; font-size: 1rem; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--mid);
  font-size: 0.95rem;
  font-weight: 400;
  transition: color 0.2s;
}

.btn-secondary::after { content: '→'; transition: transform 0.2s; }
.btn-secondary:hover { color: var(--green); }
.btn-secondary:hover::after { transform: translateX(4px); }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-top: 70px;
}

.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5rem 3rem 5rem 5rem;
  max-width: 640px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--green-pale);
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.375rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.75rem;
  width: fit-content;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 3.5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  color: var(--dark);
}

.hero h1 em {
  font-style: italic;
  color: var(--green);
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--mid);
  font-weight: 300;
  margin-bottom: 2rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.hero-phone-note {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.hero-phone-note svg { flex-shrink: 0; stroke: var(--muted); }

.hero-right {
  background: var(--green-ultra);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 3rem;
  gap: 3rem;
  overflow: hidden;
}

.hero-bg-blob {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(82,183,136,0.15) 0%, transparent 70%);
  top: -100px;
  right: -150px;
  pointer-events: none;
}

.hero-logo-display {
  position: relative;
  z-index: 1;
  background: white;
  border-radius: 24px;
  padding: 2.5rem 3rem;
  box-shadow: 0 8px 40px rgba(45,106,79,0.12);
  border: 1px solid rgba(45,106,79,0.08);
}

.hero-logo-big {
  width: 280px;
  height: auto;
}

.hero-stat-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  width: 100%;
  position: relative;
  z-index: 1;
}

.stat-card {
  background: white;
  border-radius: 16px;
  padding: 1.25rem 1rem;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  border: 1px solid rgba(45,106,79,0.08);
}

.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--green);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.3;
}

/* ── CTA BANNER ── */
.cta-banner {
  background: var(--green);
  padding: 3rem 2rem;
}

.cta-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cta-banner-text h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.4rem;
}

.cta-banner-text p {
  color: rgba(255,255,255,0.75);
  font-size: 0.95rem;
  font-weight: 300;
}

.cta-banner .btn-primary {
  background: white;
  color: var(--green);
  flex-shrink: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.cta-banner .btn-primary:hover {
  background: var(--green-pale);
  color: var(--green);
  transform: translateY(-2px);
}

/* ── SEGUROS ── */
.seguros-bar {
  background: var(--dark);
  padding: 1.25rem 2rem;
}

.seguros-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.seguros-label {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.seguros-list {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.seguro {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

.seguro:hover { color: rgba(255,255,255,0.95); }

.seguro-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  flex-shrink: 0;
}

/* ── SECTIONS ── */
.section {
  padding: 6rem 2rem;
}

.section-alt { background: var(--white); }

.section > * { max-width: 1200px; margin-left: auto; margin-right: auto; }

.section-header {
  margin-bottom: 3.5rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.section-tag {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--dark);
  max-width: 520px;
}

.section-title em {
  font-style: italic;
  color: var(--green);
}

/* ── SERVICES ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  background: var(--cream);
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid var(--border);
  transition: transform 0.25s, box-shadow 0.25s;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(45,106,79,0.1);
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--green-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.service-icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--green);
}

.service-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  color: var(--dark);
}

.service-desc {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.75;
}

/* ── STEPS ── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto 3rem;
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 24px;
  left: calc(12.5% + 24px);
  right: calc(12.5% + 24px);
  height: 1px;
  background: var(--border);
}

.step { text-align: center; padding: 0 0.5rem; }

.step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--green);
  color: white;
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 16px rgba(45,106,79,0.25);
}

.step h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.step p { font-size: 0.85rem; color: var(--muted); line-height: 1.65; }

.steps-cta {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

/* ── TEAM ── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.team-card {
  text-align: center;
  background: var(--cream);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  border: 1px solid var(--border);
  transition: transform 0.2s;
}

.team-card:hover { transform: translateY(-4px); }

.team-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--green-pale);
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--green);
  border: 3px solid white;
  box-shadow: 0 4px 16px rgba(45,106,79,0.12);
}

.team-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.team-role {
  font-size: 0.82rem;
  color: var(--green);
  font-weight: 500;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.team-bio { font-size: 0.875rem; color: var(--muted); line-height: 1.7; }

/* ── TESTIMONIALS ── */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.testimonial {
  background: var(--cream);
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid var(--border);
}

.testimonial-stars {
  color: #f59e0b;
  font-size: 1rem;
  margin-bottom: 1rem;
  letter-spacing: 2px;
}

.testimonial-text {
  font-size: 0.95rem;
  color: var(--mid);
  line-height: 1.8;
  margin-bottom: 1.25rem;
  font-style: italic;
}

.testimonial-author {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--green);
}

/* ── CONTACT ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}

.contact-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--green-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--green);
}

.contact-label {
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.2rem;
}

.contact-value {
  font-size: 0.95rem;
  color: var(--dark);
  line-height: 1.5;
}

.contact-value a { color: var(--green); transition: opacity 0.2s; }
.contact-value a:hover { opacity: 0.75; }

.map-embed {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

.map-embed iframe { display: block; }

/* ── FOOTER ── */
.footer {
  background: var(--dark);
  padding: 4rem 2rem 2rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto 3rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
}

.footer-logo-img {
  height: 56px;
  width: auto;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.footer-tagline {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.footer-col ul { list-style: none; }

.footer-col li {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.45);
  margin-bottom: 0.6rem;
  transition: color 0.2s;
}

.footer-col a { color: rgba(255,255,255,0.45); transition: color 0.2s; }
.footer-col a:hover { color: var(--green-light); }

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-left { padding: 4rem 2rem 2rem; max-width: 100%; }
  .hero-right { padding: 3rem 2rem 4rem; }
  .hero-stat-cards { grid-template-columns: repeat(3, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid::before { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0; background: var(--cream); border-bottom: 1px solid var(--border); padding: 1rem; gap: 0.25rem; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .hero-stat-cards { grid-template-columns: 1fr 1fr; }
  .hero-logo-big { width: 200px; }
  .services-grid, .team-grid, .testimonials-grid, .contact-grid { grid-template-columns: 1fr; }
  .cta-banner-inner { flex-direction: column; text-align: center; }
  .section { padding: 4rem 1.5rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .seguros-inner { gap: 1rem; }
}

@media (max-width: 480px) {
  .hero-stat-cards { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .steps-grid { grid-template-columns: 1fr; }
}
