/*
 Theme Name:     Digitus
 Theme URI:      https://www.digitus.tv
 Description:    Tema de Digitus
 Author:         Diego Lleó
 Author URI:     https://www.digitus.tv
 Template:       Divi
 Version:        1.0.0
*/
/**
 * Menú principal — Inter Tight autoalojada
 * Excelentemente (WordPress + Divi 5 + child theme DGtheme)
 *
 * Selectores verificados en el DOM real de https://excelentemente.verdemo.com/
 * (cabecera nativa de Divi, no módulo Menú del builder):
 *
 *   header#main-header
 *     └ div.container.et_menu_container
 *         └ div#et-top-navigation
 *             └ nav#top-menu-nav
 *                 └ ul#top-menu.nav
 *                     └ li.menu-item > a                (5 items, 1 con submenú)
 *                         └ ul.sub-menu > li > a        (2 items)
 *   ul#mobile_menu.et_mobile_menu > li > a              (menú móvil)
 *
 * Valores actuales del diseño (medidos, NO se modifican aquí):
 *   nivel 1  : 16px | peso 600 | line-height 14px | color activo rgb(214,229,0)
 *   submenú  : 16px | peso 600 | line-height 28px
 *   móvil    : 14px | peso 600 | line-height 23px
 *
 * Este archivo solo fija FAMILIA + PESO y añade pila de reserva.
 * No toca tamaños, colores ni espaciados para no alterar el diseño.
 *
 * ---------------------------------------------------------------------------
 * AVISO: en el momento de escribir esto, TODO el directorio
 * /wp-content/themes/DGtheme/ devuelve 403 Forbidden (Apache). Ni este CSS
 * ni los .woff2 se pueden servir hasta que se corrijan los permisos de esa
 * carpeta. Ver el punto 1 del LEEME-MENU.md.
 * ---------------------------------------------------------------------------
 */


/* ==========================================================================
   PARTE A — @font-face del peso que usa el menú
   Incluir SOLO si inter-tight.css / inter-tight-minimo.css no está ya
   encolado. Si ya lo está, borra este bloque para no duplicar declaraciones.
   Ruta relativa: este archivo debe estar junto a la carpeta fonts/.
   ========================================================================== */
/*
@font-face {
	font-family: 'Inter Tight';
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url('fonts/inter-tight/inter-tight-600.woff2') format('woff2');
}
*/


/* ==========================================================================
   PARTE B — Menú de escritorio, submenús y menú móvil
   ========================================================================== */
/**
 * Inter Tight autoalojada - Excelentemente
 * PEGAR ESTE BLOQUE AL PRINCIPIO DE:
 *   /wp-content/themes/DGtheme/style.css
 *
 * Las rutas url() son relativas a style.css, que esta en la raiz del tema,
 * asi que 'fonts/inter-tight/xxx.woff2' resuelve a
 *   /wp-content/themes/DGtheme/fonts/inter-tight/xxx.woff2   <- verificado 200
 *
 * Al usar este bloque hay que ELIMINAR el encolado de inter-tight.css
 * (bloque 1 del snippet de functions.php) o borrar ese archivo, para no
 * mantener dos juegos de declaraciones, uno de ellos con rutas rotas.
 *
 * Pesos: 400, 500, 600 (menu principal), 700 (encabezados) + cursiva 400.
 */

/* Regular */
@font-face {
	font-family: 'Inter Tight';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('fonts/inter-tight/inter-tight-400.woff2') format('woff2');
}

/* Medium */
@font-face {
	font-family: 'Inter Tight';
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url('fonts/inter-tight/inter-tight-500.woff2') format('woff2');
}

/* SemiBold */
@font-face {
	font-family: 'Inter Tight';
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url('fonts/inter-tight/inter-tight-600.woff2') format('woff2');
}

/* Bold */
@font-face {
	font-family: 'Inter Tight';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url('fonts/inter-tight/inter-tight-700.woff2') format('woff2');
}

/* Regular Italic */
@font-face {
	font-family: 'Inter Tight';
	font-style: italic;
	font-weight: 400;
	font-display: swap;
	src: url('fonts/inter-tight/inter-tight-400-italic.woff2') format('woff2');
}
#et-top-navigation,
#top-menu-nav,
#top-menu,
#top-menu li,
#top-menu li a,
#top-menu > li > a,
#top-menu li.current-menu-item > a,
#top-menu li.current_page_item > a,
#top-menu li.menu-item-has-children > a,
#top-menu .sub-menu,
#top-menu .sub-menu li a,
#mobile_menu,
#mobile_menu li a,
.et_mobile_menu,
.et_mobile_menu li a {
	font-family: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* Peso del menú: 600 (SemiBold) -> inter-tight-600.woff2
   Para cambiarlo, sustituye 600 por 500 o 700 y asegúrate de que el .woff2
   de ese peso está subido y declarado en el @font-face correspondiente. */
#top-menu li a,
#top-menu > li > a,
#top-menu li.current-menu-item > a,
#top-menu li.current_page_item > a,
#top-menu .sub-menu li a,
#mobile_menu li a,
.et_mobile_menu li a {
	font-weight: 600;
}

/* Evita que el navegador fabrique una negrita sintética si algún peso
   no llegara a cargar: mejor ver el peso real disponible que un falso bold. */
#top-menu li a,
#mobile_menu li a,
.et_mobile_menu li a {
	font-synthesis: none;
	-webkit-font-synthesis: none;
}


/* ==========================================================================
   PARTE C — Solo si Divi sigue ganando en especificidad
   Comprobar primero sin esto. Si tras vaciar la caché de Divi el menú aún
   no aplica la familia, descomentar este bloque.
   ========================================================================== */
/*
#main-header #top-menu li a,
#main-header #top-menu .sub-menu li a,
#main-header #mobile_menu li a {
	font-family: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
	font-weight: 600 !important;
}
*/