/* ============================================================
   JCucarella Fisioteràpia — Landing
   Estilo: deportivo y enérgico
   ============================================================ */

:root {
  --navy: #0c1322;
  --navy-2: #121c30;
  --navy-3: #1b2942;
  --ink: #0c1322;
  --text: #2a3344;
  --muted: #687486;
  --line: #e6eaf0;
  --bg: #ffffff;
  --bg-alt: #f4f7fb;

  --lime: #c4f042;        /* acento energético */
  --lime-d: #a9d62f;
  --green: #16b364;       /* salud / éxito */
  --orange: #ff6a3d;      /* energía / deporte */

  --radius: 16px;
  --radius-lg: 26px;
  --shadow: 0 18px 40px -22px rgba(12, 19, 34, .35);
  --shadow-soft: 0 10px 30px -18px rgba(12, 19, 34, .28);
  --container: 1160px;
  --font: 'Sora', system-ui, -apple-system, sans-serif;
  --display: 'Outfit', var(--font);
}


* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 86px; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); line-height: 1.12; letter-spacing: -.01em; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 22px; }

/* ---------- Botones ---------- */
.btn {
  --b: var(--lime);
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--display); font-weight: 700; font-size: 1rem;
  padding: .85rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn svg { flex: none; }
.btn-primary { background: var(--lime); color: var(--ink); box-shadow: 0 10px 24px -10px rgba(169, 214, 47, .8); }
.btn-primary:hover { transform: translateY(-2px); background: var(--lime-d); }
.btn-ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.35); }
.btn-ghost:hover { background: rgba(255,255,255,.16); transform: translateY(-2px); }
.btn-ghost-dark { background: transparent; color: var(--ink); border-color: var(--navy); }
.btn-ghost-dark:hover { background: var(--navy); color: #fff; }
.btn-sm { padding: .6rem 1.1rem; font-size: .92rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1.1rem; }

.eyebrow {
  display: inline-block; font-family: var(--display); font-weight: 700;
  text-transform: uppercase; letter-spacing: .14em; font-size: .78rem;
  color: var(--green); margin-bottom: .8rem;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.82); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 1.2rem; height: 70px; }
.brand { display: flex; align-items: center; gap: .65rem; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 12px; flex: none;
  display: grid; place-items: center; font-family: var(--display); font-weight: 900;
  color: var(--ink); background: var(--lime); letter-spacing: -.04em; font-size: 1.05rem;
  box-shadow: var(--shadow-soft);
}
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong { font-family: var(--display); font-weight: 800; font-size: 1.12rem; color: var(--ink); }
.brand-text em { font-style: normal; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

.main-nav { display: flex; gap: 1.5rem; margin-left: auto; }
.main-nav a { font-weight: 600; font-size: .95rem; color: var(--text); position: relative; }
.main-nav a::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--green); transition: width .2s; }
.main-nav a:hover { color: var(--ink); }
.main-nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: .7rem; margin-left: 1rem; }
.lang-switch { display: inline-flex; background: var(--bg-alt); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang-btn { border: 0; background: transparent; font-family: var(--display); font-weight: 700; font-size: .8rem; padding: .3rem .7rem; border-radius: 999px; cursor: pointer; color: var(--muted); }
.lang-btn.is-active { background: var(--navy); color: #fff; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 26px; height: 3px; background: var(--ink); border-radius: 3px; transition: .25s; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--navy); color: #fff; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 120% at 85% 0%, rgba(196,240,66,.18), transparent 45%),
    radial-gradient(90% 90% at 10% 100%, rgba(255,106,61,.16), transparent 50%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 46px 46px; mask-image: radial-gradient(80% 80% at 70% 20%, #000, transparent 75%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; padding: 4.4rem 22px 4.8rem; }
.hero-copy .eyebrow { color: var(--lime); }
.hero h1 { font-size: clamp(2.4rem, 5vw, 3.7rem); font-weight: 900; color: #fff; margin-bottom: 1rem; }
.hero h1 .hl {
  color: var(--lime); white-space: nowrap;
  display: inline-block; position: relative;
}
.hero h1 .hl::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--lime), rgba(196,240,66,.35));
  border-radius: 2px; transform: scaleX(0); transform-origin: left;
  animation: hl-in .7s cubic-bezier(.4,0,.2,1) .5s forwards;
}
@keyframes hl-in { to { transform: scaleX(1); } }
.hero .lead { font-size: 1.14rem; color: #c5cfde; max-width: 33rem; margin-bottom: 1.8rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 2.2rem; }

.hero-trust { list-style: none; display: flex; gap: 2.2rem; flex-wrap: wrap; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.12); }
.hero-trust li { display: flex; flex-direction: column; }
.hero-trust strong { font-family: var(--display); font-size: 1.4rem; color: var(--lime); }
.hero-trust span { font-size: .82rem; color: #9fb0c4; }

.hero-media { position: relative; }
.hero-photo { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/5; box-shadow: 0 40px 80px -40px rgba(0,0,0,.7); border: 1px solid rgba(255,255,255,.1); background: var(--navy-3); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
  position: absolute; left: 14px; bottom: 14px; right: 14px;
  display: flex; align-items: center; gap: .55rem; backdrop-filter: blur(8px);
  background: rgba(12,19,34,.7); border: 1px solid rgba(255,255,255,.14);
  padding: .7rem 1rem; border-radius: 12px; font-weight: 600; font-size: .9rem; color: #fff;
}
.hero-badge .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(22,179,100,.6); animation: pulse 2s infinite; flex: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(22,179,100,.6); } 70% { box-shadow: 0 0 0 12px rgba(22,179,100,0); } 100% { box-shadow: 0 0 0 0 rgba(22,179,100,0); } }

/* ---------- Secciones ---------- */
.section { padding: 5rem 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 44rem; margin: 0 auto 3rem; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; margin-bottom: .8rem; }
.section-head p { color: var(--muted); font-size: 1.06rem; }

/* ---------- Cards de valor ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem 1.4rem;
  box-shadow: var(--shadow-soft); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--lime); }
.card-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(135deg, var(--lime), var(--green));
  display: grid; place-items: center; margin-bottom: 1.1rem;
  color: var(--ink);
}
.card h3 { font-size: 1.12rem; margin-bottom: .5rem; }
.card p { color: var(--muted); font-size: .96rem; }

/* ---------- Servicios ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; max-width: 980px; margin: 0 auto; }
.service {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.2rem; font-weight: 500;
  transition: border-color .2s, transform .15s;
}
.service:hover { border-color: var(--green); transform: translateY(-2px); }
.service b { font-family: var(--display); color: var(--green); font-size: 1.1rem; white-space: nowrap; }
.services-cta { text-align: center; margin-top: 2.2rem; }

.tags-block { margin-top: 3.2rem; text-align: center; }
.tags-block h3 { font-size: 1.2rem; margin-bottom: 1.1rem; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }
.tags li { background: var(--bg); border: 1px solid var(--line); padding: .5rem 1rem; border-radius: 999px; font-size: .9rem; font-weight: 500; color: var(--text); }
.tags li:hover { border-color: var(--orange); color: var(--ink); }

/* ---------- Experiencia ---------- */
.exp-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 3rem; align-items: center; }
.exp-media { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/5; box-shadow: var(--shadow); background: var(--bg-alt); }
.exp-media img { width: 100%; height: 100%; object-fit: cover; }
.exp-copy h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-bottom: 1rem; }
.exp-copy p { color: var(--muted); margin-bottom: 1.8rem; }
.exp-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
.exp-cols h4 { font-size: 1rem; margin-bottom: .7rem; color: var(--ink); display: inline-flex; padding-bottom: .35rem; border-bottom: 3px solid var(--lime); }
.exp-cols ul { list-style: none; display: flex; flex-direction: column; gap: .55rem; }
.exp-cols li { position: relative; padding-left: 1.2rem; font-size: .92rem; color: var(--text); }
.exp-cols li::before { content: ""; position: absolute; left: 0; top: .55em; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }

/* ---------- Galería ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 150px; gap: .8rem; }
.gallery .g-item { overflow: hidden; border-radius: 14px; background: var(--bg); box-shadow: var(--shadow-soft); }
.gallery .g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery .g-item:hover img { transform: scale(1.07); }
.gallery .g-item.tall { grid-row: span 2; }
.gallery .g-item.wide { grid-column: span 2; }

/* ---------- Opiniones ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.review { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem 1.5rem; box-shadow: var(--shadow-soft); position: relative; }
.review::before { content: "“"; font-family: var(--display); font-size: 3.4rem; line-height: 1; color: var(--lime); position: absolute; top: .4rem; right: 1rem; }
.review p { font-size: 1rem; color: var(--text); margin-bottom: 1rem; }
.review footer { font-size: .85rem; color: var(--muted); font-weight: 600; }
.review footer span { color: var(--green); }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--navy) 0%, var(--navy-3) 100%); position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(196,240,66,.25), transparent 70%); }
.cta-band-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 3rem 22px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.cta-band p { color: #c5cfde; margin-top: .4rem; }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.6rem; align-items: stretch; }
.contact-info { font-style: normal; }
.contact-info h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 1.6rem; }
.contact-list { list-style: none; display: flex; flex-direction: column; gap: 1.2rem; }
.contact-list li { display: flex; gap: .9rem; }
.ci-ico { width: 44px; height: 44px; flex: none; display: grid; place-items: center; background: var(--bg-alt); border-radius: 12px; color: var(--green); }
.contact-list div { display: flex; flex-direction: column; }
.contact-list strong { font-family: var(--display); font-size: 1rem; }
.contact-list span, .contact-list a { font-size: .95rem; color: var(--muted); }
.contact-list a { color: var(--green); font-weight: 600; }
.social { margin-top: 1.8rem; }
.social a { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; color: var(--ink); }
.social a:hover { color: var(--orange); }
.contact-map { border-radius: var(--radius-lg); overflow: hidden; min-height: 340px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.contact-map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #c5cfde; padding: 2.6rem 0; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: .8rem; text-align: center; }
.brand-footer .brand-text strong { color: #fff; }
.brand-footer .brand-text em { color: #8aa; }
.footer-note { font-size: .92rem; }
.footer-copy { font-size: .82rem; color: #7c8aa0; }

/* ---------- FAB ---------- */
.fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--lime); color: var(--ink); font-family: var(--display); font-weight: 800;
  padding: .85rem 1.3rem; border-radius: 999px; box-shadow: 0 14px 30px -10px rgba(169,214,47,.9);
  transition: transform .15s;
}
.fab:hover { transform: translateY(-3px); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2.4rem; }
  .hero-media { max-width: 420px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .services { grid-template-columns: repeat(2, 1fr); }
  .exp-grid { grid-template-columns: 1fr; }
  .exp-media { max-width: 420px; }
  .reviews { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 840px) {
  .main-nav {
    position: fixed; inset: 70px 0 auto 0; flex-direction: column; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: .5rem 22px 1rem;
    transform: translateY(-130%); transition: transform .28s ease; box-shadow: var(--shadow);
    margin-left: 0;
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav a { padding: .85rem 0; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: flex; }
  .header-actions { margin-left: auto; }
  .header-actions .btn-sm { display: none; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}
@media (max-width: 520px) {
  .cards { grid-template-columns: 1fr; }
  .services { grid-template-columns: 1fr; }
  .exp-cols { grid-template-columns: 1fr; }
  .hero-trust { gap: 1.4rem; }
  .fab span { display: none; }
  .fab { padding: .9rem; }
}

/* Animación de entrada */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
