/*
Theme Name: CAUFRAN
Theme URI: https://caufran.uy
Author: CAUFRAN
Description: Template base para la Cámara Uruguaya de Franquicias — institucional + directorio de franquicias socias. Un motor económico y social que impulsa el franchising.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: caufran-base
*/

/* =========================================================================
   TOKENS (sistema de diseño) — paleta de marca CAUFRAN + estructura inspirada
   en el GOV.UK Design System: recto, plano, foco amarillo accesible, enlaces
   subrayados, tipografía fuerte y oscura.
   ========================================================================= */
:root {
  /* Marca — del logo de CAUFRAN (azul + isotipo de colores) */
  --blue:        #15568F;
  --blue-deep:   #0F3E6B;
  --blue-700:    #14609F;
  --blue-500:    #1C6CC0;  /* enlaces */
  --blue-200:    #BBD4E8;
  --accent:      #E8742B;  /* naranja — color de acción */
  --accent-600:  #B95A1E;  /* sombra/hover del naranja */
  --accent-soft: #F7C49B;
  --leaf:        #4E9A2A;  /* verde — éxito/confirmación */
  --leaf-700:    #3C7A20;
  --grape:       #6E5BA6;

  /* Neutros */
  --bg:        #FFFFFF;
  --surface:   #F3F6F9;
  --surface-2: #E7EEF4;
  --line:      #C7D3DD;  /* borde suave */
  --border:    #6B7A88;  /* borde fuerte (inputs, summary list) */
  --ink:       #0E1B28;  /* texto y títulos, casi negro */
  --muted:     #4F5E6C;

  /* Foco accesible (anillo azul de marca) */
  --focus:      #1C6CC0;
  --focus-ink:  #0E1B28;

  /* Tipografía — una sola familia neutra y fuerte */
  --font-display: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

  /* Esquinas rectas (sin radios) */
  --radius-sm: 0; --radius-md: 0; --radius-lg: 0;

  /* Espaciado consistente */
  --sp-1: 5px; --sp-2: 10px; --sp-3: 15px; --sp-4: 20px;
  --sp-5: 30px; --sp-6: 40px; --sp-7: 60px;

  --container: 1100px;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.14;
  margin: 0 0 .5em;
  font-weight: 700;
  letter-spacing: -0.012em;
}

a { color: var(--blue-500); text-decoration: underline; text-underline-offset: .14em; }
a:hover { color: var(--blue-deep); text-decoration-thickness: 3px; }

/* Foco accesible: anillo azul de marca (enlaces, botones y controles) */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible,
.c-tag a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
/* En campos de formulario: borde azul + halo */
input:focus, select:focus, textarea:focus {
  outline: 3px solid var(--focus);
  outline-offset: 0;
  box-shadow: inset 0 0 0 2px var(--ink);
}

/* Enlaces que envuelven imágenes (logo, etc.): anillo sin relleno encima. */
a:has(img):focus-visible,
.site-header__logo:focus-visible,
.custom-logo-link:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

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