/* styles.css – Fisioterapias Linares site styles */

:root {
  --teal-dark: #0E6F63;
  --teal-mid: #4FB6A8;
  --green: #1F8A5B;
  --gold: #F5A623;
  --gold-light: #F8C15A;
  --coral: #E86A5C;
  --white: #FFFFFF;
  --off-white: #F8FAF9;
  --text-dark: #1a2e2b;
  --text-mid: #3d5a56;
  --text-light: #6b8a86;
  --border: #d4e8e4;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Jost', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  overflow-x: hidden;
}

h1, h2, h3 { font-family: 'Playfair Display', serif; }

/* ── NAV ─────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.nav-logo img { height: 52px; width: auto; }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  font-size: 0.85rem; font-weight: 500; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--text-mid);
  text-decoration: none; transition: color 0.2s;
}
.nav-links a:hover { color: var(--teal-dark); }
.nav-cta {
  background: var(--teal-dark); color: var(--white) !important;
  padding: 0.5rem 1.2rem; border-radius: 50px;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--teal-mid) !important; color: var(--white) !important; }

/* ── HERO ────────────────────────────────── */
#hero {
  margin-top: 72px;
  background: linear-gradient(135deg, #0a4a41 0%, #0E6F63 45%, #1a7a6e 70%, #2d9a8a 100%);
  display: flex; align-items: center;
  padding: 3.5rem 2rem 4.5rem;
  position: relative; overflow: hidden;
}
#hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
#hero::after {
  content: '';
  position: absolute; bottom: -2px; left: 0; right: 0; height: 80px;
  background: var(--white);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.hero-inner {
  max-width: 1200px; margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; padding: 1rem 0;
  position: relative; z-index: 1;
}
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  color: #fff; font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.4rem 1rem; border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.3);
  margin-bottom: 0.8rem;
}
.hero-text h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  color: #fff; line-height: 1.15; margin-bottom: 0.9rem;
  font-weight: 700;
}
.hero-text h1 span { color: var(--gold-light); }
.hero-text p {
  font-size: 1.1rem; color: rgba(255,255,255,0.85);
  line-height: 1.7; margin-bottom: 1.2rem;
}
.packages-cta-section {
  background: var(--white);
  display: flex;
  justify-content: center;
  padding: 1.2rem 2rem 2.4rem;
}
.packages-cta-btn.btn-primary {
  width: min(100%, 980px);
  justify-content: center;
  border-radius: 14px;
  padding: 1rem 1.5rem;
  background: linear-gradient(90deg, #0e6f63 0%, #1f8a5b 52%, #0b5e54 100%);
  color: #fff;
  font-size: clamp(0.95rem, 2.1vw, 1.1rem);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  box-shadow: 0 10px 28px rgba(14, 111, 99, 0.35);
  border: 1px solid rgba(79, 182, 168, 0.5);
  gap: 0.7rem;
}
.packages-cta-btn.btn-primary:hover {
  background: linear-gradient(90deg, #0b5e54 0%, #0e6f63 50%, #1f8a5b 100%);
  box-shadow: 0 12px 30px rgba(14, 111, 99, 0.45);
  transform: translateY(-2px);
}
.packages-cta-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(248, 193, 90, 0.22);
  color: var(--gold-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.packages-cta-icon svg {
  display: block;
}
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-primary {
  background: var(--gold); color: var(--text-dark);
  padding: 0.9rem 2rem; border-radius: 50px;
  font-weight: 600; font-size: 0.95rem;
  text-decoration: none; transition: all 0.25s;
  display: inline-flex; align-items: center; gap: 0.5rem;
  box-shadow: 0 4px 20px rgba(245,166,35,0.4);
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 6px 24px rgba(245,166,35,0.5); }
.btn-secondary {
  background: rgba(255,255,255,0.15); color: #fff;
  padding: 0.9rem 2rem; border-radius: 50px;
  font-weight: 500; font-size: 0.95rem;
  text-decoration: none; transition: all 0.25s;
  border: 1px solid rgba(255,255,255,0.4);
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.btn-secondary:hover { background: rgba(255,255,255,0.25); }
.hero-image-wrap {
  display: flex; justify-content: center; align-items: center;
}
.hero-logo-circle {
  width: 300px; height: 300px; border-radius: 50%;
  background: #ffffff;
  border: 4px solid rgba(255,255,255,0.9);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25), 0 0 0 8px rgba(255,255,255,0.15);
  animation: float 5s ease-in-out infinite;
}
.hero-logo-circle img { width: 85%; height: auto; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ── PAIN SECTION ────────────────────────── */
#dolor {
  padding: 4rem 2rem;
  background: var(--off-white);
}
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-label {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--teal-mid);
  margin-bottom: 0.8rem;
}
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--text-dark); line-height: 1.25;
  margin-bottom: 1.5rem;
}
.section-title span { color: var(--teal-dark); }
.dolor-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
  margin-top: 3rem;
}
.dolor-text p {
  font-size: 1.05rem; line-height: 1.85;
  color: var(--text-mid); margin-bottom: 1.2rem;
}
.dolor-stat-card {
  background: var(--teal-dark); color: #fff;
  border-radius: 20px; padding: 2.5rem;
  position: relative; overflow: hidden;
}
.dolor-stat-card::before {
  content: '';
  position: absolute; top: -40px; right: -40px;
  width: 160px; height: 160px;
  background: rgba(255,255,255,0.07); border-radius: 50%;
}
.dolor-stat-card .big-num {
  font-family: 'Playfair Display', serif;
  font-size: 5rem; font-weight: 700;
  color: var(--gold-light); line-height: 1;
  margin-bottom: 0.5rem;
}
.dolor-stat-card p { font-size: 1rem; color: rgba(255,255,255,0.85); line-height: 1.6; margin: 0; }
.dolor-features { display: flex; flex-direction: column; gap: 1.2rem; margin-top: 2rem; }
.dolor-feature {
  display: flex; align-items: flex-start; gap: 1rem;
  background: #fff; border-radius: 14px; padding: 1.2rem 1.5rem;
  border: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(14,111,99,0.06);
}
.dolor-feature-icon {
  width: 42px; height: 42px; border-radius: 10px;
  background: var(--teal-mid); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0;
}
.dolor-feature h4 { font-family: 'Jost', sans-serif; font-weight: 600; font-size: 0.95rem; color: var(--text-dark); margin-bottom: 0.2rem; }
.dolor-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dolor-img-wrap { border-radius: 20px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.15); }
.benefits-header { text-align: center; max-width: 600px; margin: 0 auto 3rem; }
.dolor-feature p { font-size: 0.88rem; color: var(--text-light); margin: 0; line-height: 1.5; }

/* ── SERVICES ─────────────────────────────── */
#servicios {
  padding: 4rem 2rem;
  background: var(--off-white);
}
.services-header { text-align: center; max-width: 680px; margin: 0 auto 3.5rem; }
.services-tabs {
  display: flex; gap: 0.75rem; justify-content: center;
  flex-wrap: wrap; margin-bottom: 3rem;
}
.tab-btn {
  padding: 0.6rem 1.4rem; border-radius: 50px;
  font-size: 0.88rem; font-weight: 500;
  border: 1px solid var(--border);
  background: #fff; color: var(--text-mid);
  cursor: pointer; transition: all 0.2s;
}
.tab-btn.active, .tab-btn:hover {
  background: var(--teal-dark); color: #fff; border-color: var(--teal-dark);
}
.service-panel { display: none; }
.service-panel.active { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.service-item {
  background: #fff; border-radius: 14px; padding: 1.2rem 1.4rem;
  border: 1px solid var(--border);
  display: flex; align-items: center; gap: 0.8rem;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(14,111,99,0.05);
}
.service-item:hover {
  border-color: var(--teal-mid);
  box-shadow: 0 4px 16px rgba(14,111,99,0.12);
  transform: translateY(-2px);
}
.service-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--teal-mid); flex-shrink: 0;
}
.service-item span { font-size: 0.9rem; color: var(--text-dark); font-weight: 400; line-height: 1.4; }

/* ── BENEFITS ─────────────────────────────── */
#beneficios {
  padding: 4rem 2rem;
  background: linear-gradient(135deg, var(--teal-dark) 0%, #0a5246 100%);
  position: relative;
}
#beneficios .section-label { color: var(--gold-light); }
#beneficios .section-title { color: #fff; }
.benefits-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
  margin-top: 3rem;
}
.benefit-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 18px; padding: 2rem;
  transition: all 0.25s;
  backdrop-filter: blur(4px);
}
.benefit-card:hover {
  background: rgba(255,255,255,0.14);
  transform: translateY(-4px);
}
.benefit-icon {
  width: 52px; height: 52px;
  margin-bottom: 1rem;
  color: var(--gold-light);
  display: flex; align-items: center; justify-content: center;
  background: rgba(245,166,35,0.12);
  border-radius: 14px;
  padding: 10px;
  flex-shrink: 0;
}
.benefit-icon svg {
  width: 100%; height: 100%;
  stroke: var(--gold-light);
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.benefit-card h3 { color: #fff; font-size: 1rem; margin-bottom: 0.6rem; font-family: 'Jost', sans-serif; font-weight: 600; }
.benefit-card p { font-size: 0.88rem; color: rgba(255,255,255,0.72); line-height: 1.6; }

/* ── TESTIMONIALS ─────────────────────────── */
#testimonios {
  padding: 4rem 2rem;
  background: var(--off-white);
}
.testimonios-header { text-align: center; max-width: 600px; margin: 0 auto 3.5rem; }
.testimonios-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
  max-width: 1100px; margin: 0 auto;
}
.testimonial-card {
  background: #fff; border-radius: 18px; padding: 2rem;
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(14,111,99,0.08);
  position: relative;
}
.testimonial-card::before {
  content: '"';
  position: absolute; top: 1rem; right: 1.5rem;
  font-family: 'Playfair Display', serif;
  font-size: 5rem; color: var(--border); line-height: 1;
}
.stars { color: var(--gold); font-size: 1rem; margin-bottom: 1rem; letter-spacing: 2px; }
.testimonial-card blockquote {
  font-size: 0.95rem; line-height: 1.75; color: var(--text-mid);
  margin-bottom: 1.5rem; font-style: italic;
}
.testimonial-author { display: flex; align-items: center; gap: 0.8rem; }
.author-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-dark), var(--teal-mid));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1rem; flex-shrink: 0;
}
.author-name { font-weight: 600; font-size: 0.9rem; color: var(--text-dark); }
.author-sub { font-size: 0.8rem; color: var(--text-light); }

/* ── ABOUT ────────────────────────────────── */
#nosotros {
  padding: 4rem 2rem;
  background: #fff;
}
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center;
  max-width: 1100px; margin: 0 auto;
}
.about-img-wrap {
  position: relative;
}
.about-logo-display {
  width: 100%; max-width: 400px;
  background: linear-gradient(135deg, var(--off-white) 0%, #e8f5f3 100%);
  border-radius: 24px; padding: 3rem;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  box-shadow: 0 12px 40px rgba(14,111,99,0.1);
}
.about-logo-display img { width: 100%; height: auto; }
.about-badge {
  position: absolute; bottom: -20px; right: -10px;
  background: var(--gold); color: var(--text-dark);
  border-radius: 14px; padding: 1rem 1.5rem;
  box-shadow: 0 8px 24px rgba(245,166,35,0.4);
  text-align: center;
}
.about-badge .ab-num { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 700; line-height: 1; }
.about-badge .ab-txt { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.about-text p { font-size: 1.05rem; line-height: 1.85; color: var(--text-mid); margin-bottom: 1.2rem; }
.about-pills { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.5rem; align-items: center; }
.section-intro { color: var(--text-mid); margin-top: 1rem; font-size: 1rem; line-height: 1.7; }
.contact-intro { text-align: center; max-width: 600px; margin: 0 auto 3.5rem; }
.pill {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.5rem 1rem; border-radius: 50px;
  background: #e8f5f3; color: var(--teal-dark);
  font-size: 0.82rem; font-weight: 500;
  border: 1px solid var(--border);
  line-height: 1.2; white-space: nowrap;
}

/* ── FAQ ──────────────────────────────────── */
#faq {
  padding: 4rem 2rem;
  background: var(--off-white);
}
.faq-header { text-align: center; max-width: 600px; margin: 0 auto 3.5rem; }
.faq-list { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 0.8rem; }
.faq-item {
  background: #fff; border-radius: 14px;
  border: 1px solid var(--border);
  overflow: hidden;
}
.faq-question {
  padding: 1.3rem 1.5rem;
  font-size: 1rem; font-weight: 500; color: var(--text-dark);
  cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  transition: background 0.2s;
  user-select: none;
}
.faq-question:hover { background: var(--off-white); }
.faq-question.open { color: var(--teal-dark); }
.faq-icon {
  width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0; transition: transform 0.3s;
  color: var(--teal-mid);
}
.faq-question.open .faq-icon { transform: rotate(45deg); border-color: var(--teal-mid); }
.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height 0.35s ease, padding 0.2s;
}
.faq-answer.open { max-height: 300px; }
.faq-answer p {
  padding: 0 1.5rem 1.3rem;
  font-size: 0.95rem; color: var(--text-mid); line-height: 1.75;
}

/* ── MAP / CONTACT ────────────────────────── */
#contacto {
  padding: 4rem 2rem;
  background: #fff;
}
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.3fr; gap: 4rem; align-items: start;
  max-width: 1100px; margin: 0 auto;
}
.contact-item {
  display: flex; align-items: flex-start; gap: 1.2rem;
  margin-bottom: 2rem;
}
.contact-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: #e8f5f3; color: var(--teal-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; flex-shrink: 0;
}
.contact-item h4 { font-family: 'Jost', sans-serif; font-weight: 600; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-light); margin-bottom: 0.3rem; }
.contact-item p, .contact-item a { font-size: 1rem; color: var(--text-dark); text-decoration: none; font-weight: 500; }
.contact-item a:hover { color: var(--teal-dark); }
.whatsapp-btn {
  display: inline-flex; align-items: center; gap: 0.7rem;
  background: #25D366; color: #fff;
  padding: 0.9rem 1.8rem; border-radius: 50px;
  font-weight: 600; font-size: 0.95rem;
  text-decoration: none; transition: all 0.25s;
  margin-top: 0.5rem;
  box-shadow: 0 4px 16px rgba(37,211,102,0.35);
}
.whatsapp-btn:hover { background: #1ebd58; transform: translateY(-2px); }
.map-wrap {
  border-radius: 20px; overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 8px 30px rgba(14,111,99,0.1);
}
.map-wrap iframe { display: block; width: 100%; height: 420px; border: 0; }

/* ── FOOTER ───────────────────────────────── */
footer {
  background: var(--text-dark);
  padding: 3rem 2rem 2rem;
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1.5rem;
}
.footer-logo img { height: 48px; filter: brightness(0) invert(1); opacity: 0.85; }
.footer-copy { font-size: 0.85rem; color: rgba(255,255,255,0.5); text-align: center; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { font-size: 0.85rem; color: rgba(255,255,255,0.5); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--teal-mid); }
.footer-social { display: flex; gap: 1rem; }
.footer-social a {
  color: rgba(255,255,255,0.5);
  display: flex; align-items: center; justify-content: center;
  transition: color 0.2s, transform 0.2s;
}
.footer-social a:hover { color: var(--teal-mid); transform: scale(1.1); }

/* ── FLOATING WA ──────────────────────────── */
.wa-float {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 99;
  background: #25D366; color: #fff;
  width: 58px; height: 58px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; font-size: 1.6rem;
  box-shadow: 0 4px 20px rgba(37,211,102,0.5);
  transition: transform 0.25s, box-shadow 0.25s;
  animation: pulse-wa 2.5s ease-in-out infinite;
}
.wa-float:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,0.6); animation: none; }
@keyframes pulse-wa {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.5); }
  50% { box-shadow: 0 4px 32px rgba(37,211,102,0.75); }
}

/* ── SCROLL ANIMATIONS ───────────────────── */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ── RESPONSIVE ──────────────────────────── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-image-wrap { order: -1; }
  .hero-logo-circle { width: 220px; height: 220px; }
  .hero-btns { justify-content: center; }
  .dolor-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .benefits-grid { grid-template-columns: 1fr 1fr; }
  .testimonios-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .about-logo-display { max-width: 280px; margin: 0 auto; }
  .about-badge { right: 0; }
}
@media (max-width: 600px) {
  .benefits-grid { grid-template-columns: 1fr; }
}
