﻿/* ===== ESTILOS BASE GLOBALES ===== */
/* Archivo: css/estilos-globales.css */
/* Contiene: Variables CSS, reset, temas, estilos base compartidos */


*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    /* Lenis overrides native scroll — disable browser smooth-scroll to avoid conflicts */
    scroll-behavior: auto !important;
}

:root {
    --primary-color: #ff7b3a;
    --primary-hover: #ff6621;
    --primary-rgb: 255, 123, 58;
    --bg-dark: #1a1a1a;
    --bg-darker: #0f0f0f;
    --bg-primary: transparent;
    --bg-secondary: transparent;
    --bg-card: rgba(42, 42, 42, 0.8);
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --border-color: #3a3a3a;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* El cursor "crosshair" de toda la web es el del sistema operativo, y su
   color no lo decide este CSS sino el SO/navegador del visitante -por eso a
   veces sale blanco (invisible en fondo claro) o negro (invisible en fondo
   oscuro), segun el tema del sistema. Se sustituye por una cruceta propia
   con un trazo grueso de un color y uno fino del contrario encima, para que
   siempre haya contraste pase lo que pase debajo: por defecto (tema oscuro
   de la web) el trazo fino va en blanco sobre halo negro; en tema claro se
   invierte. Si el navegador no soporta cursores a medida, cae en el
   "crosshair" de toda la vida como red de seguridad. */
:root {
    --cursor-crosshair: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Cg fill='none' stroke='black' stroke-width='3' stroke-linecap='round'%3E%3Cline x1='12' y1='1' x2='12' y2='23'/%3E%3Cline x1='1' y1='12' x2='23' y2='12'/%3E%3C/g%3E%3Cg fill='none' stroke='white' stroke-width='1.3' stroke-linecap='round'%3E%3Cline x1='12' y1='1' x2='12' y2='23'/%3E%3Cline x1='1' y1='12' x2='23' y2='12'/%3E%3C/g%3E%3C/svg%3E") 12 12, crosshair;
}
body.light-theme {
    --cursor-crosshair: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Cg fill='none' stroke='white' stroke-width='3' stroke-linecap='round'%3E%3Cline x1='12' y1='1' x2='12' y2='23'/%3E%3Cline x1='1' y1='12' x2='23' y2='12'/%3E%3C/g%3E%3Cg fill='none' stroke='black' stroke-width='1.3' stroke-linecap='round'%3E%3Cline x1='12' y1='1' x2='12' y2='23'/%3E%3Cline x1='1' y1='12' x2='23' y2='12'/%3E%3C/g%3E%3C/svg%3E") 12 12, crosshair;
}

body {
    font-family: 'Courier New', monospace;
    background-color: var(--bg-darker);
    margin: 0;
    height: 100%;
    position: relative;
    font-weight: 500;
    letter-spacing: 0.5px;
    cursor: var(--cursor-crosshair);
}

* { cursor: var(--cursor-crosshair) !important; }

/* Theme Background Patterns */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -3;
}

body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

/* Dark Theme (Default) */
body {
    background-color: #121212;
    background-image: radial-gradient(
        circle at 50% 50%,
        rgba(255, 255, 255, 0.05) 1px,
        transparent 0
      ),
      linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 0),
      linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 0);
    background-size:
      40px 40px,
      20px 20px,
      20px 20px;
}

body::before {
    background: repeating-linear-gradient(
      45deg,
      transparent,
      transparent 10px,
      rgba(255, 255, 255, 0.03) 10px,
      rgba(255, 255, 255, 0.03) 20px
    );
    opacity: 0.8;
}

body::after {
    background: radial-gradient(
      circle,
      rgba(255, 255, 255, 0.07) 1px,
      transparent 1px
    );
    background-size: 60px 60px;
    opacity: 0.6;
}

/* Light Theme */
body.light-theme,
html.light-theme body {
    background-color: #f4f4f4;
    background-image: radial-gradient(
        circle at 50% 50%,
        rgba(0, 0, 0, 0.05) 1px,
        transparent 0
      ),
      linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 0),
      linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 0);
    background-size:
      40px 40px,
      20px 20px,
      20px 20px;
}

body.light-theme::before,
html.light-theme body::before {
    background: repeating-linear-gradient(
      45deg,
      transparent,
      transparent 10px,
      rgba(0, 0, 0, 0.03) 10px,
      rgba(0, 0, 0, 0.03) 20px
    );
    opacity: 0.8;
}

body.light-theme::after,
html.light-theme body::after {
    background: radial-gradient(
      circle,
      rgba(0, 0, 0, 0.07) 1px,
      transparent 1px
    );
    background-size: 60px 60px;
    opacity: 0.6;
}

/* Aplicar tema desde localStorage */
body.light-theme,
html.light-theme body {
    --bg-dark: #ffffff;
    --bg-darker: #f8f8f8;
    --bg-primary: transparent;
    --bg-secondary: transparent;
    --bg-card: rgba(255, 255, 255, 0.8);
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --border-color: #e0e0e0;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* ===== COMPONENTES REUTILIZABLES ===== */

/* Tipografía Tech/Gaming para títulos y elementos importantes */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Courier New', monospace;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* Welcome Section - Compartido entre páginas */
.welcome-section {
    text-align: center;
    padding: 4rem 2rem;
    background: transparent;
    margin-bottom: 3rem;
}

.welcome-title {
    font-size: 3rem;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.welcome-text {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.4;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 500;
}

/* Botones base */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition-normal);
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: scale(1.02);
}

.btn-danger {
    background-color: #dc3545;
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
}

/* Utilidades */
.hidden { display: none !important; }
.text-center { text-align: center; }
.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-accent { color: var(--primary-color); }

/* ===== FOOTER ===== */
.footer {
    background-color: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    align-items: center;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-primary);
}

.footer-logo i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.footer-tagline {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

.footer-center {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.copyright, .footer-author {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

.footer-author strong {
    color: var(--primary-color);
}

.footer-right {
    text-align: right;
}

.footer-seal {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-seal i {
    color: var(--primary-color);
}

/* ===== BOTÓN SCROLL TO TOP ===== */
#scrollTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    background: #ffffff;
    color: #000000;
    border: none;
    border-radius: 50%;
    font-size: 28px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-normal);
    z-index: 999;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
}

#scrollTopBtn:hover {
    background: #f0f0f0;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

#scrollTopBtn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Footer Responsive */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }

    .footer-right {
        text-align: center;
    }

    .footer-seal {
        justify-content: center;
    }
}

/* ===== ICONOS PNG DE COMPONENTES ===== */
.category-icon-img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    filter: invert(1) brightness(0.85);
    transition: filter 0.35s ease, transform 0.35s ease;
    display: block;
}

/* ===== SISTEMA DE NOTIFICACIONES TOAST (PCNotify) ===== */
#pcnotify-container {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    pointer-events: none;
    max-width: 380px;
    width: calc(100% - 3rem);
}

.pcnotify-toast {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.88rem 1.1rem;
    border-radius: 10px;
    border-left: 4px solid transparent;
    background: rgba(22, 22, 22, 0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
    pointer-events: all;
    transform: translateX(calc(100% + 2rem));
    opacity: 0;
    transition: transform 0.38s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.35s ease;
    will-change: transform, opacity;
    font-family: 'Courier New', monospace;
    font-size: 0.93rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    color: #f0f0f0;
    cursor: pointer;
    overflow: hidden;
}

.pcnotify-toast.pcn-show {
    transform: translateX(0);
    opacity: 1;
}

.pcnotify-toast.pcn-hide {
    transform: translateX(calc(100% + 2rem));
    opacity: 0;
    transition: transform 0.32s ease-in, opacity 0.3s ease;
}

.pcnotify-toast.pcn-success { border-left-color: #22c55e; }
.pcnotify-toast.pcn-warning { border-left-color: #f59e0b; }
.pcnotify-toast.pcn-error   { border-left-color: #ef4444; }
.pcnotify-toast.pcn-info    { border-left-color: #3b82f6; }

.pcnotify-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 0.08rem;
    line-height: 1;
}

.pcnotify-toast.pcn-success .pcnotify-icon { color: #22c55e; }
.pcnotify-toast.pcn-warning .pcnotify-icon { color: #f59e0b; }
.pcnotify-toast.pcn-error   .pcnotify-icon { color: #ef4444; }
.pcnotify-toast.pcn-info    .pcnotify-icon { color: #3b82f6; }

.pcnotify-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
}

.pcnotify-title {
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.7px;
}

.pcnotify-toast.pcn-success .pcnotify-title { color: #22c55e; }
.pcnotify-toast.pcn-warning .pcnotify-title { color: #f59e0b; }
.pcnotify-toast.pcn-error   .pcnotify-title { color: #ef4444; }
.pcnotify-toast.pcn-info    .pcnotify-title { color: #3b82f6; }

.pcnotify-msg {
    line-height: 1.42;
    color: #e8e8e8;
}

/* Light theme adaptations */
.light-theme .pcnotify-toast,
html.light-theme .pcnotify-toast {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.14), 0 0 0 1px rgba(0, 0, 0, 0.07);
    color: #1a1a1a;
}

.light-theme .pcnotify-msg,
html.light-theme .pcnotify-msg {
    color: #333;
}

.category-card:hover .category-icon-img {
    filter: invert(0.85) sepia(1) hue-rotate(330deg) saturate(3) brightness(1.1);
    transform: translateY(-2px) scale(1.05);
}

html.light-theme .category-icon-img,
body.light-theme .category-icon-img {
    filter: invert(0) brightness(0.3);
}

html.light-theme .category-card:hover .category-icon-img,
body.light-theme .category-card:hover .category-icon-img {
    filter: invert(0) brightness(0) sepia(1) hue-rotate(330deg) saturate(3);
}

/* Configurador component grid */
.component-icon-img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    filter: invert(1) brightness(0.8);
    transition: filter 0.3s ease;
    margin: 0 auto 0.75rem;
    display: block;
}

html.light-theme .component-icon-img,
body.light-theme .component-icon-img {
    filter: invert(0) brightness(0.35);
}

/* Index page component-apple section */
.component-apple-img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    filter: invert(1) brightness(0.85);
    transition: filter 0.3s ease, transform 0.3s ease;
    margin: 0 auto 0.6rem;
    display: block;
}

.component-apple:hover .component-apple-img {
    filter: invert(0.85) sepia(1) hue-rotate(330deg) saturate(3) brightness(1.1);
    transform: scale(1.08);
}

html.light-theme .component-apple-img,
body.light-theme .component-apple-img {
    filter: invert(0) brightness(0.3);
}

/* ============================================================
   SITE FOOTER — compartido por todas las páginas
   Efecto "reveal": el JS de includes/footer.php activa
   .footer-reveal (footer fijo al fondo, la página lo destapa al
   hacer scroll) y .footer-in (animación de entrada). Sin JS o con
   prefers-reduced-motion, se comporta como un footer normal.
   ============================================================ */
.site-footer {
    position: relative;
    margin-top: 48px;
}

.site-footer.footer-reveal {
    height: var(--footer-h, auto);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.site-footer .footer-fixed {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: rgb(30, 30, 30);
    border-top: 2px solid var(--primary-color, #ff6b35);
}

.site-footer.footer-reveal .footer-fixed {
    position: fixed;
    bottom: 0;
    left: 0;
    height: var(--footer-h, auto);
}

/* Resplandores decorativos (radiales girados, estilo aurora) */
.site-footer .footer-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.site-footer .footer-glow span {
    position: absolute;
    top: 0;
    left: 0;
    width: 240px;
    height: 1280px;
    border-radius: 50%;
}

.site-footer .footer-glow span:nth-child(1) {
    width: 560px;
    background: radial-gradient(68% 69% at 55% 31%,
        rgba(255,255,255,0.07) 0%,
        rgba(140,140,140,0.02) 50%,
        rgba(255,255,255,0.01) 80%);
    transform: translateY(-350px) rotate(-45deg);
}

.site-footer .footer-glow span:nth-child(2) {
    background: radial-gradient(50% 50% at 50% 50%,
        rgba(255,107,53,0.07) 0%,
        rgba(255,107,53,0.02) 80%,
        transparent 100%);
    transform: translate(5%, -50%) rotate(-45deg);
}

.site-footer .footer-glow span:nth-child(3) {
    background: radial-gradient(50% 50% at 50% 50%,
        rgba(255,255,255,0.05) 0%,
        rgba(255,255,255,0.01) 80%,
        transparent 100%);
    transform: translateY(-350px) rotate(-45deg);
}

.site-footer .footer-inner {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 56px 32px 28px;
}

.site-footer .footer-top {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1fr 1fr;
    gap: 36px;
    padding-bottom: 36px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.site-footer .footer-brand {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.site-footer .footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.35rem;
    color: #fff;
    letter-spacing: -0.3px;
}

.site-footer .footer-logo i {
    color: var(--primary-color, #ff6b35);
    font-size: 1.4rem;
}

.site-footer .footer-tagline {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.65;
    max-width: 260px;
}

.site-footer .footer-brand-sub {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.25);
    letter-spacing: 0.3px;
}

.site-footer .footer-discord {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-top: 6px;
    border-radius: 10px;
    color: #5865f2;
    background-color: rgba(88, 101, 242, 0.12);
    border: 1px solid rgba(88, 101, 242, 0.25);
    font-size: 1.05rem;
    text-decoration: none;
    transition: all 0.25s ease;
}

.site-footer .footer-discord:hover {
    background-color: #5865f2;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.35);
}

.site-footer .footer-col {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.site-footer .footer-col h4 {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.6px;
    color: rgba(255,255,255,0.65);
    margin-bottom: 6px;
    padding-left: 10px;
    border-left: 2px solid var(--primary-color, #ff6b35);
}

.site-footer .footer-col a {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
    font-weight: 500;
    display: inline-block;
}

.site-footer .footer-col a:hover {
    color: var(--primary-color, #ff6b35);
    transform: translateX(4px);
}

.site-footer .footer-link-disabled {
    opacity: 0.55;
    cursor: default;
    pointer-events: none;
}

.site-footer .footer-cookies-btn {
    font-size: 0.9rem;
    font-family: inherit;
    font-weight: 500;
    color: rgba(255,255,255,0.5);
    background: none;
    border: none;
    padding: 0;
    text-align: left;
    cursor: pointer;
    display: inline-block;
    transition: color 0.2s ease, transform 0.2s ease;
}

.site-footer .footer-cookies-btn:hover {
    color: var(--primary-color, #ff6b35);
    transform: translateX(4px);
}

.light-theme .site-footer .footer-cookies-btn { color: rgba(0,0,0,0.45); }
.light-theme .site-footer .footer-cookies-btn:hover { color: var(--primary-color, #ff6b35); }

.site-footer .footer-link-disabled small {
    font-size: 0.75em;
    color: var(--primary-color, #ff6b35);
}

.site-footer .footer-bottom {
    padding-top: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.site-footer .footer-copy {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.35);
}

.site-footer .footer-copy strong {
    color: rgba(255,255,255,0.6);
    font-weight: 600;
}

.site-footer .footer-legal-link {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.35);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.site-footer .footer-legal-link:hover {
    color: var(--primary-color, #ff6b35);
}

/* Selector de idioma desactivado temporalmente (5-sep-2026) — estaba mal
   implementado, se retira hasta rehacerlo bien. Reglas quitadas de aquí,
   el CSS sigue existiendo en el historial de git si hace falta recuperarlo. */

/* Animación de entrada (blur + desplazamiento, escalonada) */
.site-footer .footer-anim {
    opacity: 0;
    transform: translateY(-8px);
    filter: blur(4px);
    transition: opacity 0.8s ease, transform 0.8s ease, filter 0.8s ease;
}

.site-footer.footer-in .footer-anim {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

.site-footer .footer-top > .footer-anim:nth-child(2) { transition-delay: 0.1s; }
.site-footer .footer-top > .footer-anim:nth-child(3) { transition-delay: 0.2s; }
.site-footer .footer-top > .footer-anim:nth-child(4) { transition-delay: 0.3s; }
.site-footer .footer-top > .footer-anim:nth-child(5) { transition-delay: 0.4s; }
.site-footer .footer-bottom.footer-anim { transition-delay: 0.5s; }

@media (prefers-reduced-motion: reduce) {
    .site-footer .footer-anim {
        opacity: 1;
        transform: none;
        filter: none;
        transition: none;
    }
}

/* Light theme footer */
.light-theme .site-footer .footer-fixed {
    background: #f0f0f0;
}

.light-theme .site-footer .footer-glow span:nth-child(1) {
    background: radial-gradient(68% 69% at 55% 31%,
        rgba(0,0,0,0.05) 0%,
        rgba(0,0,0,0.015) 50%,
        rgba(0,0,0,0.005) 80%);
}

.light-theme .site-footer .footer-glow span:nth-child(2) {
    background: radial-gradient(50% 50% at 50% 50%,
        rgba(255,107,53,0.08) 0%,
        rgba(255,107,53,0.02) 80%,
        transparent 100%);
}

.light-theme .site-footer .footer-glow span:nth-child(3) {
    background: radial-gradient(50% 50% at 50% 50%,
        rgba(0,0,0,0.04) 0%,
        rgba(0,0,0,0.01) 80%,
        transparent 100%);
}

.light-theme .site-footer .footer-logo {
    color: #1a1a1a;
}

.light-theme .site-footer .footer-tagline {
    color: rgba(0,0,0,0.5);
}

.light-theme .site-footer .footer-brand-sub {
    color: rgba(0,0,0,0.3);
}

.light-theme .site-footer .footer-top {
    border-color: rgba(0,0,0,0.08);
}

.light-theme .site-footer .footer-col h4 {
    color: rgba(0,0,0,0.55);
}

.light-theme .site-footer .footer-col a {
    color: rgba(0,0,0,0.45);
}

.light-theme .site-footer .footer-col a:hover {
    color: var(--primary-color, #ff6b35);
}

.light-theme .site-footer .footer-copy {
    color: rgba(0,0,0,0.35);
}

.light-theme .site-footer .footer-copy strong {
    color: rgba(0,0,0,0.6);
}

.light-theme .site-footer .footer-legal-link {
    color: rgba(0,0,0,0.35);
}

.light-theme .lang-toggle {
    border-color: rgba(0,0,0,0.14);
    color: rgba(0,0,0,0.65);
}

.light-theme .lang-toggle:hover {
    color: rgba(0,0,0,0.9);
    border-color: rgba(0,0,0,0.28);
    background: rgba(0,0,0,0.04);
}

.light-theme .lang-toggle-flag,
.light-theme .lang-option-flag {
    box-shadow: 0 0 0 1px rgba(0,0,0,0.15);
}

.light-theme .lang-toggle-arrow {
    color: rgba(0,0,0,0.35);
}

.light-theme .lang-menu {
    background: rgba(255, 255, 255, 0.97);
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.light-theme .lang-option {
    color: rgba(0,0,0,0.6);
}

.light-theme .lang-option:hover {
    color: rgba(0,0,0,0.9);
    background: rgba(0,0,0,0.05);
}

.light-theme .lang-option.is-active {
    color: var(--primary-color, #ff6b35);
    background: rgba(255,107,53,0.1);
}

@media (max-width: 860px) {
    .site-footer .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }
    .site-footer .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 500px) {
    .site-footer .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
    .site-footer .footer-inner {
        padding: 40px 20px 24px;
    }
    .site-footer .footer-bottom {
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 400px) {
    .site-footer .footer-top {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}


/* Cifras alineadas. Llevaba una tipografía de siete segmentos, retirada en
   ago-2026 porque su licencia comercial era de pago. Se queda lo que aportaba
   valor sin ella: números de ancho fijo, para que al actualizar un vatiaje o
   un porcentaje no bailen las columnas. */
.cifra-seg {
    font-family: 'Courier New', monospace;
    font-variant-numeric: tabular-nums;
}
