/**
 * Estilos globales de Surfbcn: variables de tema, cabecera, pestañas y
 * selector de ubicación. Se cargan en todas las páginas a través de
 * header.php.
 */
:root {
    /* Colores de marca de Surfbcn: iguales en los dos temas (no varían
       entre claro/oscuro), por eso viven aquí y no dentro de [data-theme]. */
    --accent: #0bb6cc;       /* color principal */
    --accent-hover: #0992a3; /* principal, versión oscurecida para :hover */
    --accent-text: #04252b;  /* texto sobre fondo --accent */
    --accent2: #e6348b;      /* color secundario */
    --shadow-accent: rgba(11, 182, 204, 0.18);

    --bg: #0d1b2a;
    --bg-card: #13273c;
    --bg-card-alt: #1a3350;
    --text: #e0e6ed;
    --text-muted: #8fa3b8;
    --icon: #9fc6e8;
    --border: #1f3750;
    --blue: #4fa3e0;
    --green: #59c98a;
    --overlay: rgba(13, 27, 42, 0.45);
}
[data-theme="light"] {
    --bg: #f1f5f9;
    --bg-card: #ffffff;
    --bg-card-alt: #e7eef5;
    --text: #16232f;
    --text-muted: #5c7185;
    --icon: #2274a5;
    --border: #dbe4ec;
    --blue: #1f6fa8;
    --green: #1f8a52;
    --overlay: rgba(255, 255, 255, 0.55);
}
* {
    box-sizing: border-box;
}
html, body {
    max-width: 100%;
    overflow-x: clip;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    margin: 0 auto;
    max-width: 1024px;
    padding: 20px 16px;
    transition: background 0.2s ease, color 0.2s ease;
}
.cabecera-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}
.logo {
    display: block;
    height: 90px;
    width: auto;
    margin-bottom: 6px;
    border: 0;
}
a.logo-link {
    display: inline-block;
    text-decoration: none;
}
.theme-toggle {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.15rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 4px;
}
.theme-toggle:hover {
    border-color: var(--accent);
}
.subtitulo {
    color: var(--text-muted);
    font-size: 1.6rem;
    font-weight: 400;
    margin: 0 0 20px 0;
}
.tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border);
}
.tabs a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 1.15rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-bottom: 2px solid transparent;
    transition: color 0.15s ease, border-color 0.15s ease;
}
.tabs a .tab-icono {
    font-size: 1.05rem;
}
.tabs a:hover {
    color: var(--text);
}
.tabs a.activa {
    color: var(--accent2);
    border-bottom-color: var(--accent2);
}
.selector {
    margin-bottom: 20px;
}
.selector select {
    background: var(--bg-card-alt);
    color: var(--text);
    border: 2px solid var(--accent);
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    width: 100%;
    max-width: 280px;
    box-shadow: 0 0 0 3px var(--shadow-accent);
}
.proximamente {
    padding: 60px 20px;
    text-align: center;
    color: var(--text-muted);
    background: var(--bg-card);
    border-radius: 8px;
}
.proximamente .icono-grande {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 12px;
}
@media (max-width: 600px) {
    body { padding: 16px 8px; }
    .subtitulo { font-size: 1.3rem; }
    .tabs a { padding: 8px 10px; font-size: 0.85rem; }
}
