/* ============================================================
   FISIOTERAPIA PHYSIS — stylesheet
   Colores extraídos del logo: teal oscuro + azul cerúleo
   ============================================================ */

:root {
  /* Brand colors del logo */
  --primary: #1e5570;        /* Teal oscuro del texto PHYSIS */
  --primary-dark: #163f55;   /* Teal más oscuro para hover/dark */
  --primary-light: #2a6f8e;  /* Teal medio */
  --accent: #5aabca;         /* Azul cerúleo del icono del logo */
  --accent-dark: #4494b3;    /* Azul cerúleo oscuro */
  --accent-light: #d6eef6;   /* Azul muy claro para fondos */

  --text: #1a2c35;
  --text-light: #4a6572;
  --bg: #ffffff;
  --bg-alt: #f4f8fa;
  --border: #dde8ed;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(30,85,112,.1);
  --transition: .25s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: 'Playfair Display', Georgia, serif;
  letter-spacing: -.3px;
}

/* Logo-style brand name en hero */
.hero-brand {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.5rem;
  line-height: 1;
}
.hero-brand-physis {
  font-family: 'Cinzel', 'Trajan Pro', Georgia, serif;
  font-weight: 900;
  font-size: clamp(3.5rem, 10vw, 7rem);
  color: #fff;
  letter-spacing: .18em;
  text-transform: uppercase;
  line-height: 1;
}
.hero-brand-fisio {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: clamp(1rem, 2.8vw, 1.7rem);
  color: var(--accent);
  letter-spacing: .55em;
  text-transform: uppercase;
  margin-top: .35rem;
  padding-left: .1em; /* compensar tracking visual */
}

.container { max-width: 1160px; margin: 0 auto; padding: 0 1.25rem; }

/* ---- SCROLL REVEAL ---- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .5s ease, transform .5s ease;
}
.reveal.revealed {
  opacity: 1;
  transform: none;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .75rem 1.6rem;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(30,85,112,.25); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.65); }
.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn-outline-dark { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline-dark:hover { background: var(--primary); color: #fff; }

/* ---- HEADER / NAV ---- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(22,63,85,.97);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 16px rgba(0,0,0,.2);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 1rem;
}

.logo {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 1px;
}
.logo-main {
  font-family: 'Cinzel', Georgia, serif;
  font-weight: 900;
  font-size: 1.45rem;
  color: #fff;
  letter-spacing: .18em;
  text-transform: uppercase;
  line-height: 1;
}
.logo-sub {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: .52rem;
  color: var(--accent);
  letter-spacing: .45em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: .15rem;
  list-style: none;
}
.nav-links a {
  color: rgba(255,255,255,.82);
  text-decoration: none;
  padding: .45rem .7rem;
  border-radius: 6px;
  font-size: .875rem;
  font-weight: 500;
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { color: #fff; background: rgba(255,255,255,.1); }
.btn-cta {
  background: var(--accent) !important;
  color: #fff !important;
  padding: .45rem 1rem !important;
  font-size: .85rem !important;
  border-radius: 6px;
  font-weight: 600 !important;
}
.btn-cta:hover { background: var(--accent-dark) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: var(--transition);
}

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(140deg, #0e2f3f 0%, #163f55 45%, #1e5570 100%);
  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.025'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 75% 50%, rgba(90,171,202,.12) 0%, transparent 65%);
}
/* Decorative circle matching logo icon */
.hero::after {
  content: '';
  position: absolute;
  right: -120px;
  top: 50%;
  transform: translateY(-50%);
  width: 600px;
  height: 600px;
  border-radius: 50%;
  border: 2px solid rgba(90,171,202,.1);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 1;
  padding-top: 70px;
  max-width: 660px;
}
.hero-tag {
  display: inline-block;
  background: rgba(90,171,202,.15);
  color: var(--accent);
  border: 1px solid rgba(90,171,202,.35);
  padding: .35rem .9rem;
  border-radius: 20px;
  font-family: 'Inter', sans-serif;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}
.hero-desc {
  font-size: 1.1rem;
  color: rgba(255,255,255,.72);
  margin-bottom: 2rem;
  max-width: 500px;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; }

/* ---- STRIP ---- */
.strip {
  background: var(--primary-dark);
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.strip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.strip-item {
  display: flex;
  align-items: center;
  gap: .85rem;
  color: rgba(255,255,255,.88);
}
.strip-item svg {
  width: 26px; height: 26px;
  color: var(--accent);
  flex-shrink: 0;
}
.strip-item strong { display: block; font-size: .93rem; color: #fff; font-family: 'Inter', sans-serif; }
.strip-item span { font-size: .8rem; color: rgba(255,255,255,.6); }

/* ---- SECTIONS ---- */
.section { padding: 5.5rem 0; }
.section-alt { background: var(--bg-alt); }
.section-tag {
  font-family: 'Inter', sans-serif;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--accent-dark);
  margin-bottom: .5rem;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 1rem;
}
.section-desc {
  color: var(--text-light);
  font-size: 1.05rem;
  max-width: 580px;
  margin-bottom: 3rem;
  line-height: 1.75;
}

/* ---- SERVICES ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.service-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}
.service-icon {
  width: 50px; height: 50px;
  background: var(--accent-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
}
.service-icon svg { width: 24px; height: 24px; color: var(--primary); }
.service-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: .5rem;
  color: var(--text);
}
.service-card p { color: var(--text-light); font-size: .92rem; line-height: 1.65; }

/* ---- INDIBA ---- */
.indiba-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: center;
}
.indiba-text .section-title { color: var(--text); }
.indiba-text .section-title sup {
  font-size: .55em;
  font-family: 'Inter', sans-serif;
  color: var(--accent-dark);
  vertical-align: super;
}
.indiba-benefits {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.indiba-item {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  padding: 1.2rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.indiba-item:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(90,171,202,.12);
}
.indiba-icon {
  width: 42px; height: 42px;
  background: var(--accent-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.indiba-icon svg { width: 20px; height: 20px; color: var(--primary); }
.indiba-item h4 {
  font-family: 'Inter', sans-serif;
  font-size: .95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .25rem;
}
.indiba-item p { color: var(--text-light); font-size: .88rem; line-height: 1.6; }

/* ---- DOLENCIAS ---- */
.dolencias-section { padding: 4rem 0; background: var(--primary); }
.dolencias-grid {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}
.dolencia-tag {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  padding: .6rem 1.2rem;
  border-radius: 30px;
  font-size: .9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: .5rem;
  transition: background var(--transition);
  cursor: default;
}
.dolencia-tag:hover { background: rgba(255,255,255,.18); }
.dolencia-tag svg { width: 15px; height: 15px; color: var(--accent); flex-shrink: 0; }

/* ---- PRECIOS ---- */
.prices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  align-items: start;
}
.price-card {
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.price-featured {
  border-color: var(--primary);
  box-shadow: 0 8px 32px rgba(30,85,112,.15);
  position: relative;
}
.price-featured::before {
  content: 'Más popular';
  position: absolute;
  top: -1px; left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  padding: .25rem .85rem;
  border-radius: 0 0 8px 8px;
  letter-spacing: .5px;
  text-transform: uppercase;
  font-family: 'Inter', sans-serif;
}
.price-label {
  font-family: 'Inter', sans-serif;
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: .5rem;
}
.price-amount {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}
.price-amount span { font-size: 1.8rem; vertical-align: super; }
.price-unit { color: var(--text-light); font-size: .88rem; margin-bottom: 1.5rem; font-family: 'Inter', sans-serif; }
.price-list { list-style: none; margin-bottom: 1.75rem; text-align: left; }
.price-list li {
  padding: .45rem 0;
  border-bottom: 1px solid var(--border);
  font-size: .9rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: .5rem;
  font-family: 'Inter', sans-serif;
}
.price-list li::before { content: '✓'; color: var(--accent-dark); font-weight: 700; }

/* ---- HORARIO ---- */
.horario-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.horario-text p { color: var(--text-light); margin-top: .75rem; line-height: 1.7; }
.horario-table-wrap { overflow-x: auto; }
.horario-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.horario-table th {
  background: var(--primary);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .8px;
  padding: .9rem 1.1rem;
  text-align: left;
}
.horario-table td {
  padding: .85rem 1.1rem;
  border-bottom: 1px solid var(--border);
  font-family: 'Inter', sans-serif;
  font-size: .92rem;
}
.horario-table td:first-child { font-weight: 600; color: var(--text); }
.horario-table td:not(:first-child) { color: var(--primary-light); font-weight: 500; }
.horario-table tr.cerrado td { color: #c0392b !important; font-weight: 400 !important; }
.horario-table tr:last-child td { border-bottom: none; }
.horario-table tr:hover { background: rgba(90,171,202,.05); }

/* ---- CONTACTO ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  align-items: start;
}
address { font-style: normal; }
.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border);
}
.contact-item:last-child { border-bottom: none; }
.contact-item svg { width: 20px; height: 20px; color: var(--primary); flex-shrink: 0; margin-top: .15rem; }
.contact-item strong {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-light);
  margin-bottom: .3rem;
}
.contact-item span, .contact-item a {
  color: var(--text);
  font-size: .93rem;
  text-decoration: none;
  line-height: 1.6;
}
.contact-item a:hover { color: var(--primary); }
.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.map-wrap iframe { display: block; }

/* ---- FOOTER ---- */
.footer { background: #0e2f3f; padding: 3rem 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.footer-links a {
  color: rgba(255,255,255,.6);
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-size: .88rem;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--accent); }
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.footer-contact a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
}
.footer-contact span {
  color: rgba(255,255,255,.5);
  font-family: 'Inter', sans-serif;
  font-size: .85rem;
  line-height: 1.55;
}
.footer-bottom {
  text-align: center;
  padding: 1.25rem;
  font-family: 'Inter', sans-serif;
  font-size: .8rem;
  color: rgba(255,255,255,.3);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 960px) {
  .nav-links a { padding: .4rem .55rem; font-size: .82rem; }
  .indiba-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .strip-grid { grid-template-columns: 1fr; gap: .75rem; }
  .horario-container { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: fixed;
    top: 70px; left: 0; right: 0;
    background: var(--primary-dark);
    flex-direction: column;
    padding: 1rem;
    gap: .2rem;
    box-shadow: 0 8px 24px rgba(0,0,0,.25);
    max-height: calc(100vh - 70px);
    overflow-y: auto;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; width: 100%; padding: .75rem 1rem; font-size: .93rem; }
  .btn-cta { text-align: center; }

  .hero { min-height: auto; padding: 5.5rem 0 3.5rem; }
  .hero::after { display: none; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  .services-grid { grid-template-columns: 1fr; }
  .prices-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }

  .section { padding: 3.5rem 0; }
}
