/*
Theme Name: Baños Perfectos
Theme URI: https://banos-perfectos.es
Author: A medida
Author URI: https://banos-perfectos.es
Description: Theme a medida para Baños Perfectos - Reforma integral de baños en Madrid. One-page de conversión escalable y evolutivo.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: Privado
Text Domain: banos-perfectos
Tags: one-page, conversión, reformas, baños, Madrid
*/

/* ============================================================
   CSS CUSTOM PROPERTIES — DESIGN TOKENS
   Editar aquí para cambiar toda la apariencia del theme
   ============================================================ */

:root {

  /* Colores principales */
  --color-primary:        #1a2e44;   /* Azul marino profundo */
  --color-primary-light:  #243d5c;
  --color-accent:         #c8a96e;   /* Dorado cálido */
  --color-accent-hover:   #b8965a;
  --color-white:          #ffffff;
  --color-black:          #0d0d0d;
  --color-bg:             #f8f7f5;   /* Blanco cálido */
  --color-bg-alt:         #f0ede8;
  --color-text:           #2c2c2c;
  --color-text-muted:     #6b6b6b;
  --color-border:         #e0dbd3;
  --color-success:        #2d7a4f;
  --color-error:          #c0392b;

  /* Tipografía */
  --font-heading:         'Playfair Display', Georgia, serif;
  --font-body:            'DM Sans', system-ui, sans-serif;
  --font-mono:            'DM Mono', monospace;

  /* Tamaños tipográficos (fluid) */
  --text-xs:    clamp(0.75rem,  1.5vw, 0.875rem);
  --text-sm:    clamp(0.875rem, 1.8vw, 1rem);
  --text-base:  clamp(1rem,     2vw,   1.125rem);
  --text-lg:    clamp(1.125rem, 2.5vw, 1.25rem);
  --text-xl:    clamp(1.25rem,  3vw,   1.5rem);
  --text-2xl:   clamp(1.5rem,   4vw,   2rem);
  --text-3xl:   clamp(2rem,     5vw,   2.75rem);
  --text-4xl:   clamp(2.5rem,   6vw,   3.75rem);
  --text-hero:  clamp(3rem,     8vw,   5.5rem);

  /* Espaciado */
  --space-xs:   0.5rem;
  --space-sm:   1rem;
  --space-md:   1.5rem;
  --space-lg:   2.5rem;
  --space-xl:   4rem;
  --space-2xl:  6rem;
  --space-3xl:  9rem;

  /* Layout */
  --container-max:     1200px;
  --container-narrow:  760px;
  --container-wide:    1440px;
  --gutter:            clamp(1.25rem, 5vw, 2.5rem);

  /* Bordes y radios */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   16px;
  --radius-full: 9999px;

  /* Sombras */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:  0 4px 12px rgba(0,0,0,0.10), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg:  0 10px 30px rgba(0,0,0,0.12), 0 4px 8px rgba(0,0,0,0.06);
  --shadow-xl:  0 20px 60px rgba(0,0,0,0.15);

  /* Transiciones */
  --transition-fast:   150ms ease;
  --transition-base:   250ms ease;
  --transition-slow:   400ms ease;

  /* Z-index */
  --z-base:     1;
  --z-dropdown: 100;
  --z-sticky:   200;
  --z-overlay:  300;
  --z-modal:    400;
  --z-toast:    500;

  /* Header — padding controla espacio, logo dicta la altura real */
  --header-padding-y:        14px;
  --header-padding-y-sticky: 10px;
  --header-height:           70px;  /* Para offset de secciones y hero */
}

/* ============================================================
   RESET & BASE
   ============================================================ */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  font-weight: 700;
  color: var(--color-primary);
}

/* ============================================================
   UTILIDADES GLOBALES
   ============================================================ */

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

.container--narrow {
  max-width: var(--container-narrow);
}

.container--wide {
  max-width: var(--container-wide);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

.section {
  padding-block: var(--space-2xl);
}

.section--alt {
  background-color: var(--color-bg-alt);
}

.section__header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section__label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-xs);
}

.section__title {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-sm);
}

.section__subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 60ch;
  margin-inline: auto;
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 0.875rem 2rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: var(--text-base);
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition-base);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}

.btn--primary {
  background-color: var(--color-accent);
  color: var(--color-primary);
  border-color: var(--color-accent);
}

.btn--primary:hover {
  background-color: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  background-color: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}

.btn--outline:hover {
  background-color: var(--color-white);
  color: var(--color-primary);
}

.btn--large {
  padding: 1.125rem 2.5rem;
  font-size: var(--text-lg);
}

.btn--whatsapp {
  background-color: #25d366;
  color: var(--color-white);
  border-color: #25d366;
}

.btn--whatsapp:hover {
  background-color: #1ebe57;
  border-color: #1ebe57;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
