/*
Theme Name: CITHE
Theme URI: https://cithe.es
Author: CITHE
Description: Tema corporativo de CITHE, empresa del Grupo Aviation Group. Esqueleto: cabecera y pie con la marca del grupo siempre visible, tipo de contenido "curso" (Formación Tipo) y menú principal. El diseño completo se porta desde el prototipo HTML.
Version: 0.1.0
Requires PHP: 8.1
Text Domain: cithe
*/

:root {
  --dark: #0f1423;
  --red: #c8181c;
  --gold: #c8a96e;
  --off: #f4f6f9;
  --text: #1a1a1a;
  --f-head: 'Raleway', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-body: 'Open Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: var(--f-body); color: var(--text); background: #fff; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: inherit; }

/* ── Cabecera: fija, con la marca del grupo SIEMPRE visible (también en móvil) ── */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--dark); color: #fff; }
.site-header__inner { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; padding: .7rem 5vw; min-height: 70px; }
.brand { font-family: var(--f-head); font-weight: 900; font-size: 1.6rem; letter-spacing: -.03em; text-transform: uppercase; text-decoration: none; color: #fff; line-height: 1; }
.brand span { color: var(--red); }

.group-badge { display: inline-flex; flex-direction: column; gap: 2px; padding-left: 1rem; border-left: 1px solid rgba(255,255,255,.28); text-decoration: none; color: rgba(255,255,255,.85); line-height: 1; }
.group-badge:hover { color: #fff; }
.group-badge__label { font-size: .5rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; opacity: .6; }
.group-badge__name { font-family: var(--f-head); font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.group-badge__logo { height: 26px; width: auto; display: block; }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; flex-wrap: wrap; gap: .25rem 1.2rem; list-style: none; margin: 0; padding: 0; }
.main-nav a { font-family: var(--f-head); font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; color: rgba(255,255,255,.75); padding: .4rem 0; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav .current-menu-item > a { color: #fff; border-bottom-color: var(--red); }

/* ── Contenido ── */
.container { max-width: 1100px; margin: 0 auto; padding: 3rem 5vw; }
h1, h2, h3 { font-family: var(--f-head); font-weight: 900; letter-spacing: -.02em; color: var(--dark); }

/* ── Pie ── */
.site-footer { background: var(--dark); color: rgba(255,255,255,.55); padding: 3rem 5vw 1.5rem; font-size: .85rem; }
.site-footer__top { display: flex; flex-wrap: wrap; gap: 2rem; align-items: flex-start; justify-content: space-between; margin-bottom: 2rem; }
.site-footer .brand { font-size: 1.4rem; }
.site-footer .group-badge { padding-left: 0; border-left: 0; margin-top: .8rem; }
.site-footer address { font-style: normal; line-height: 1.7; }
.site-footer a { color: rgba(255,255,255,.7); }
.site-footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 1rem; font-size: .72rem; }

@media (max-width: 720px) {
  .main-nav { margin-left: 0; width: 100%; }
}
