/*
Theme Name: IPTV España Bespoke
Theme URI: https://iptv-espana.es/
Description: Tema oficial y exclusivo de IPTV España basado fielmente en la guía de diseño y paleta de colores corporativa (Rojo #AA0000, Amarillo #FFD600, Fondo Oscuro #0F172A, Fondo Claro #F8FAFC).
Author: Equipo de Diseño IPTV España
Version: 2.1.0
License: GNU General Public License v2 or later
Text Domain: iptvespana
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
*/

:root {
  /* Paleta Oficial España del Mockup */
  --esp-red: #AA0000;
  --esp-red-hover: #C50000;
  --esp-red-glow: rgba(170, 0, 0, 0.45);
  
  --esp-yellow: #FFD600;
  --esp-yellow-hover: #FFE033;
  --esp-yellow-glow: rgba(255, 214, 0, 0.35);

  --esp-dark: #0F172A;
  --esp-dark-card: #1E293B;
  --esp-dark-border: rgba(255, 255, 255, 0.08);

  --esp-light: #F8FAFC;
  --esp-light-card: #FFFFFF;
  --esp-light-border: #E2E8F0;

  --esp-text-dark: #0F172A;
  --esp-text-light: #FFFFFF;
  --esp-text-secondary: #687280;
  --esp-text-muted: #94A3B8;

  /* Tipografía */
  --esp-font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --esp-font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Bordes & Sombras */
  --esp-radius-sm: 8px;
  --esp-radius-md: 14px;
  --esp-radius-lg: 20px;
  --esp-radius-full: 9999px;
  
  --esp-container-max: 1240px;
  --esp-transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  font-family: var(--esp-font-body);
  background-color: var(--esp-dark);
  color: var(--esp-text-light);
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--esp-dark);
  color: var(--esp-text-light);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: var(--esp-transition);
}

:focus-visible {
  outline: 2px solid var(--esp-yellow);
  outline-offset: 2px;
}

button, input, select, textarea {
  font: inherit;
}

input, select, textarea {
  font-size: 16px; /* Evita zoom automático en iOS Safari */
}
