/*
Theme Name: Fisioterapia Moreira
Theme URI: https://logi-k.es
Author: Logi-k
Author URI: https://logi-k.es
Description: Theme comercial one-page para clinicas de fisioterapia, optimizado para rendimiento, cumplimiento legal (cookies) y conversion local. Desarrollado por Logi-k.
Version: 1.2.1
Text Domain: fisioterapiamoreira
*/

:root {
  --brand: #dd9933;
  --ink: #252525;
  --muted: #5a5a5a;
  --paper: #ffffff;
  --bg: #f4f1ec;
  --line: #e7dfd3;
  --shadow: 0 14px 34px rgba(0, 0, 0, 0.12);
}

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Manrope:wght@400;500;600;700&display=swap');

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "Manrope", "Segoe UI", "Noto Sans", Arial, sans-serif;
  line-height: 1.55;
}

h1, h2, h3 {
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  letter-spacing: 0.2px;
}

a { color: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(7px);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  width: min(1160px, 94vw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 90px;
}

.logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-width: 120px;
  text-decoration: none;
}

.logo img {
  width: 118px;
  height: 118px;
  object-fit: contain;
  display: block;
}

.menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 10px;
  margin-left: auto;
}

.menu a {
  text-decoration: none;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .8px;
  padding: 8px 11px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: .2s ease;
}

.menu a:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.hero {
  min-height: 64svh;
  display: grid;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(21, 18, 14, .66), rgba(21, 18, 14, .3)),
    url("assets/images/cabecera2.jpg") center/cover no-repeat;
  color: #fff;
}

.hero-inner {
  width: min(1160px, 94vw);
  margin: 0 auto;
  padding: 58px 0;
}

.kicker {
  color: #ffd8a1;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 5.6vw, 4.1rem);
  font-weight: 700;
  line-height: 1.06;
  text-wrap: balance;
}

.hero p {
  max-width: 800px;
  margin: 18px 0 0;
  font-size: clamp(1rem, 2.2vw, 1.18rem);
}

.cta-row {
  margin-top: 28px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  text-decoration: none;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: .22s ease;
}

.btn-primary {
  background: var(--brand);
  color: #1b1308;
}

.btn-primary:hover { filter: brightness(1.05); transform: translateY(-1px); }

.btn-ghost {
  border-color: rgba(255,255,255,.62);
  color: #fff;
}

.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }

.section {
  width: min(1160px, 94vw);
  margin: 0 auto;
  padding: 58px 0;
}

.section h2 {
  margin: 0 0 16px;
  font-size: clamp(1.45rem, 3vw, 2.2rem);
}

.section .lead {
  max-width: 900px;
  color: var(--muted);
  margin-bottom: 24px;
}

.grid-3 {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.card h3 { margin: 0 0 10px; font-size: 1.1rem; }
.card p { margin: 0; color: var(--muted); }

.bands {
  background: linear-gradient(180deg, #fff, #f7f3ee);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.two-col {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr 1fr;
}

.photo {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.tarifas {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.price {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
}

.price strong {
  display: block;
  font-size: 2rem;
  color: var(--brand);
  margin-top: 8px;
}

.contact-box {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr 1fr;
  align-items: start;
}

.map {
  width: 100%;
  height: 390px;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 22px 0 38px;
  color: var(--muted);
  text-align: center;
}

.legal-links {
  margin-top: 8px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.legal-links a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-links a:hover {
  color: var(--brand);
}

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 100;
  background: #1f1c19;
  color: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  padding: 16px;
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner p {
  margin: 0;
  font-size: 14px;
}

.cookie-banner a {
  color: #ffd08c;
}

.cookie-actions {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.cookie-btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 14px;
  cursor: pointer;
}

.cookie-btn.accept {
  background: var(--brand);
  color: #21170a;
}

.cookie-btn.reject {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

@media (max-width: 980px) {
  .nav-wrap {
    flex-wrap: wrap;
    justify-content: center;
    padding: 12px 0 14px;
    min-height: auto;
  }

  .logo {
    min-width: auto;
  }

  .menu {
    width: 100%;
    justify-content: center;
  }

  .grid-3, .tarifas { grid-template-columns: 1fr 1fr; }
  .two-col, .contact-box { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .nav-wrap {
    align-items: center;
    padding: 10px 0 12px;
  }

  .logo img { width: 96px; height: 96px; }

  .menu {
    gap: 6px;
    text-align: center;
  }

  .menu a {
    font-size: 10px;
    padding: 6px 8px;
    line-height: 1.2;
  }

  .hero { min-height: 56svh; }
  .grid-3, .tarifas { grid-template-columns: 1fr; }
  .section { padding: 42px 0; }
  .hero-inner { padding: 42px 0; }
}
