/*
Theme Name: Susana Sánchez Fisioterapia (Astra Child)
Theme URI: https://susanasanchezfisioterapia.com/
Description: Child theme de Astra para Fisioterapia Susana Sánchez — Albacete. Custom CSS, tokens del sistema de diseño y overrides para Elementor Pro.
Author: Susana Sánchez Fisioterapia
Author URI: https://susanasanchezfisioterapia.com/
Template: astra
Version: 1.0.0
Text Domain: astra-child-susana
*/

/* ===== TOKENS DEL SISTEMA DE DISEÑO ===== */
:root {
  /* Color · Brand */
  --color-primary: #774068;
  --color-primary-light: #9F568A;
  --color-primary-dark: #5C2F50;
  --color-accent: #205B4F;
  --color-accent-light: #3D8474;

  /* Color · Backgrounds */
  --bg-blush: #F4E0DA;
  --bg-sage: #D9E8E5;
  --bg-cream: #F8F8F8;
  --bg-white: #FFFFFF;

  /* Color · Text */
  --text-primary: #2A2A2A;
  --text-secondary: #5C5854;
  --text-muted: #9A9692;

  /* Color · Borders */
  --border-default: #E5E1DD;
  --border-strong: #C9C4BE;

  /* Color · States */
  --color-success: #2E7D5B;
  --color-warning: #C77D2C;
  --color-error: #B43A3A;
  --color-info: #3D6FA8;

  /* Type · Families */
  --font-display: "Roboto Condensed", sans-serif;
  --font-editorial: "Playfair Display", serif;
  --font-body: "Roboto", sans-serif;
  --font-logo: "Quicksand", "Montserrat", sans-serif;

  /* Radii */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(42,42,42,.06);
  --shadow-md: 0 4px 12px rgba(42,42,42,.08);
  --shadow-lg: 0 12px 32px rgba(42,42,42,.12);
  --shadow-focus: 0 0 0 3px rgba(119,64,104,.25);
}

/* Smooth scroll global y selección de marca */
html { scroll-behavior: smooth; }
::selection { background: var(--color-primary-light); color: #fff; }

/* Foco visible accesible */
:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
  border-radius: var(--radius-sm);
}

/* Patrones reutilizables — clases auxiliares */
.bg-blush { background-color: var(--bg-blush) !important; }
.bg-sage { background-color: var(--bg-sage) !important; }
.bg-cream { background-color: var(--bg-cream) !important; }

.text-primary-brand { color: var(--color-primary) !important; }
.text-primary-light { color: var(--color-primary-light) !important; }
.text-accent { color: var(--color-accent) !important; }

/* ===== AJUSTES GLOBALES ===== */
body {
  font-family: var(--font-body);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Headings — display por defecto, editorial cuando se aplique .h-editorial */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--text-primary);
  line-height: 1.15;
}
.h-editorial,
h2.h-editorial,
h3.h-editorial {
  font-family: var(--font-editorial);
  font-weight: 600;
}

/* Botones Elementor — overrides para el botón primario de marca */
.elementor-button.elementor-button-primary,
.btn-primary {
  background-color: var(--color-primary);
  color: #fff;
  border: none;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: var(--radius-md);
  font-weight: 500;
  transition: background 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}
.elementor-button.elementor-button-primary:hover,
.btn-primary:hover {
  background-color: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  color: #fff;
}

/* Sticky CTA bar (mobile) — clases para usarse desde un section Elementor */
.sticky-cta-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 999;
  display: flex;
  background: #fff;
  box-shadow: 0 -2px 16px rgba(0,0,0,.08);
}
@media (min-width: 1024px) {
  .sticky-cta-bar { display: none; }
}

/* Slot vacío reservado para placeholders del cliente */
.placeholder-img {
  background: var(--bg-cream);
  border: 2px dashed var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 14px;
  min-height: 200px;
  border-radius: var(--radius-md);
}
