/*
Theme Name: Gladiator Padel
Theme URI: https://gladiatorpadel.com/
Author: Gladiator Padel
Description: Tema propio ligero para Gladiator Padel, integrado con WordPress y WooCommerce.
Version: 3.12.0
Requires at least: 6.4
Requires PHP: 8.1
Text Domain: gladiator-padel
*/

:root {
  --gp-black: #0a0a0a;
  --gp-ink: #111111;
  --gp-white: #ffffff;
  --gp-bg: #f5f2ec;
  --gp-soft: #ebe7de;
  --gp-line: #ded9ce;
  --gp-muted: #686660;
  --gp-volt: #c7f000;
  --gp-volt-soft: #e7ff7a;
  --gp-max-width: 1240px;
  --gp-radius: 16px;
  --gp-shadow: 0 20px 50px rgba(10, 10, 10, 0.08);
}

html {
  scroll-padding-top: 7rem;
}

main[id],
section[id],
article[id] {
  scroll-margin-top: 7rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--gp-bg);
  color: var(--gp-ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

body.gp-menu-open {
  overflow: hidden;
}

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

:focus-visible {
  outline: 3px solid var(--gp-volt);
  outline-offset: 3px;
}

button,
input,
textarea,
select {
  font: inherit;
  max-width: 100%;
}

input,
textarea,
select {
  min-width: 0;
}

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

.gp-container {
  margin-inline: auto;
  width: min(var(--gp-max-width), calc(100% - 48px));
}

.gp-screen-reader-text {
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.gp-screen-reader-text:focus {
	background: var(--gp-black);
  clip: auto;
  clip-path: none;
	color: var(--gp-white);
  height: auto;
  left: 1rem;
  padding: 1rem;
  top: 1rem;
  width: auto;
  z-index: 1000;
}

.gp-button {
  align-items: center;
  border: 2px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  font-size: 0.95rem;
  font-weight: 800;
  justify-content: center;
  line-height: 1.1;
  min-height: 48px;
  padding: 0.8rem 1.35rem;
  transition: transform 160ms ease, background-color 160ms ease, color 160ms ease;
}

.gp-button:hover,
.gp-button:focus-visible {
  transform: translateY(-2px);
}

.gp-button--volt {
  background: var(--gp-volt);
  border-color: var(--gp-volt);
  color: var(--gp-black);
}

.gp-button--dark {
  background: var(--gp-black);
  border-color: var(--gp-black);
  color: var(--gp-white);
}

.gp-button--outline {
  background: transparent;
  border-color: currentColor;
}

.gp-eyebrow {
  color: var(--gp-volt);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  margin-bottom: 0.9rem;
  text-transform: uppercase;
}

.gp-section {
  padding: 6.5rem 0;
}

.gp-section--dark {
  background: var(--gp-black);
  color: var(--gp-white);
}

.gp-section--white {
  background: var(--gp-white);
}

.gp-section-heading {
  align-items: end;
  display: flex;
  gap: 2rem;
  justify-content: space-between;
  margin-bottom: 3rem;
}

.gp-section-heading h2,
.gp-section-heading p {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  letter-spacing: -0.055em;
  line-height: 0.98;
  margin: 0;
}

h1 {
  font-size: clamp(3.1rem, 6.2vw, 5.5rem);
}

h2 {
  font-size: clamp(2.35rem, 5vw, 4.25rem);
}

h3 {
  font-size: clamp(1.45rem, 2.5vw, 2rem);
}

p {
  color: var(--gp-muted);
  font-size: 1.05rem;
  margin: 1rem 0 0;
}

.gp-section--dark p,
.gp-hero p {
  color: rgba(255, 255, 255, 0.72);
}

/*
 * La preview contiene controles exclusivos de QA dentro de este contenedor.
 * Fuera del modo de auditoría todos sus hijos están ocultos, así que conservar
 * el borde, margen y padding dejaba un bloque vacío de ~50 px en cada ficha.
 * Ese espacio nunca existe en la tienda real y no forma parte del diseño
 * aprobado para el cliente.
 */
body.gp-preview:not(.gp-qa-mode) .gp-preview-product-actions {
  display: none !important;
}

/*
 * La preview dibujaba dos divisores seguidos entre precio y estado de
 * pre-lanzamiento: uno bajo el precio y otro sobre la acción. El runtime real
 * conserva un único separador semántico antes de «Disponible próximamente».
 */
body.gp-preview:not(.gp-qa-mode) .gp-preview-purchase-states__panel.gp-product-purchase .gp-product-live-price {
  border-bottom: 0 !important;
  padding-bottom: 0 !important;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
