/*
Theme Name: FAN LMS
Theme URI: https://www.euno.com.co
Author: EUNO Consulting
Author URI: https://www.euno.com.co
Description: Tema a medida para la plataforma LMS de FAN Fundación (basado en el tema Continental LMS). Reemplaza el diseño hecho con Elementor / Elementor Pro, sin depender de ellos. Colores configurables en Apariencia → Personalizar → Colores de la plataforma. Compatible con LearnDash, Ultimate Member, Uncanny Toolkit, Tin Canny y Gravity Forms.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
License: Proprietary
Text Domain: fan-lms
*/

/* ==========================================================================
   Variables globales
   Los colores de marca y de header/footer se configuran en
   Apariencia → Personalizar → "Colores de la plataforma" (inc/colors.php
   imprime estas mismas variables en línea). Estos valores son el respaldo.
   ========================================================================== */
:root {
  /* Colores de marca (configurables) */
  --cg-primary:        #7F47DD; /* Principal: botones, banners, menú lateral activo */
  --cg-primary-rgb:    127, 71, 221;
  --cg-primary-dark:   #5A32A0; /* Hover de botones principales */
  --cg-primary-soft:   #EFE9FB; /* Fondo suave (hover del menú lateral) */
  --cg-on-primary:     #FFFFFF; /* Texto sobre el principal */
  --cg-secondary:      #30CCFF; /* Secundario: hover/subrayado del menú, botón Iniciar sesión */
  --cg-secondary-dark: #2291B5;
  --cg-on-secondary:   #FFFFFF;
  --cg-tertiary:       #00C368; /* Terciario: detalles y acentos */
  --cg-tertiary-dark:  #008A4A;
  --cg-on-tertiary:    #FFFFFF;
  --cg-accent:         var(--cg-tertiary); /* Alias heredado */

  /* Botones principales (estilo configurable: secundario → hover principal) */
  --cg-btn-bg:         #30CCFF;
  --cg-btn-text:       #FFFFFF;
  --cg-btn-hover:      #7F47DD;
  --cg-btn-hover-text: #FFFFFF;
  --cg-btn-rgb:        48, 204, 255;

  /* Header, footer y fondo (configurables) */
  --cg-header-bg:      #FFFFFF;
  --cg-header-text:    #000000;
  --cg-footer-bg:      #FFFFFF;
  --cg-footer-title:   var(--cg-secondary);
  --cg-footer-text:    var(--cg-primary);
  --cg-bg:             #E2E7EA; /* Fondo del sitio */

  /* Neutros (fijos) */
  --cg-dark:        #1D1D1B; /* Superficies y títulos oscuros */
  --cg-text:        #1D1D1B; /* Texto */
  --cg-yellow:      #FFB71B;
  --cg-gray:        #888888;
  --cg-gray-green:  #6E8484;
  --cg-light:       #F2F2F2;
  --cg-white:       #FFFFFF;
  --cg-heading:     #2B2B2B;

  /* Tipografía */
  --cg-font-heading: 'Roboto', sans-serif;
  --cg-font-alt:     'Barlow', sans-serif;
  --cg-font-body:    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;

  /* Layout */
  --cg-container: 1140px;
  --cg-gutter:    10px;
  --cg-radius:    8px;
  --cg-header-h:  85px; /* Header de FAN: logo de 150px + menú */
}

/* ==========================================================================
   Reset base (equivalente a hello-elementor/reset.css)
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { line-height: 1.15; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--cg-font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #333;
  background-color: var(--cg-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  margin-block-start: .5rem;
  margin-block-end: 1rem;
  font-family: inherit;
  font-weight: 500;
  line-height: 1.2;
  color: inherit;
}
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p { margin-block-start: 0; margin-block-end: .9rem; }

a { background-color: transparent; color: #c36; text-decoration: none; }
a:hover, a:active { color: #336; }
a:not([href]):not([tabindex]), a:not([href]):not([tabindex]):hover { color: inherit; text-decoration: none; }

b, strong { font-weight: bolder; }
small { font-size: 80%; }
img { border-style: none; height: auto; max-width: 100%; }

hr { box-sizing: content-box; height: 0; overflow: visible; }

button, input, optgroup, select, textarea { font-family: inherit; font-size: 1rem; line-height: 1.5; margin: 0; }
input[type=date], input[type=email], input[type=number], input[type=password], input[type=search],
input[type=tel], input[type=text], input[type=url], select, textarea {
  width: 100%;
  border: 1px solid #666;
  border-radius: 3px;
  padding: .5rem 1rem;
  transition: all .3s;
}
input:focus, select:focus, textarea:focus { border-color: #333; }
textarea { overflow: auto; resize: vertical; }

table { background-color: transparent; border-collapse: collapse; border-spacing: 0; font-size: .9em; margin-block-end: 15px; width: 100%; }
table td, table th { border: 1px solid hsla(0,0%,50%,.502); line-height: 1.5; padding: 15px; vertical-align: top; }

dd, dl, dt, li, ol, ul { background: transparent; border: 0; font-size: 100%; margin-block-end: 0; margin-block-start: 0; outline: 0; vertical-align: baseline; }

[hidden], template { display: none; }

.screen-reader-text, .sr-only {
  border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden; padding: 0;
  position: absolute !important; width: 1px; word-wrap: normal !important;
}
.skip-link:focus {
  clip: auto; clip-path: none; height: auto; width: auto;
  background: var(--cg-white); color: var(--cg-text);
  display: block; left: 5px; top: 5px; padding: 15px 23px 14px;
  z-index: 100000; font-size: 1rem; font-weight: 600;
}
