:root {
    /* polymer colors tokens */
    --app-primary-color: #202020;
    --app-secondary-color: #757575;
    --app-accent-color: #172C50;
    --white: #fff;
    --btn-text: #202020;
    --btn-bg: #f9f9f9;

    --gray-50: #fafafa;
    --gray-100: #f5f5f5; /* rgba(0, 0, 0, 0.08); #2979ff; */
    --gray-200: #eeeeee;
    --gray-300: #e0e0e0;
    --gray-600: #757575;
    --gray-900: #202020;

    --focus-blue: #2979ff;

    --secondary-btn-bg: #ececec;
    --secondary-btn-txt: #0d0d0d; /* opacity: 0.8; */

    --btn-bg-base: var(--gray-900);
    --btn-bg-hover: var(--gray-100);
    --btn-bg-active: var(--gray-200);

    --z-max: 10000;
    --z-top: 1000;
    --z-mid: 900;
    --z-low: 100;

    --spacing: .25rem;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: sans-serif;
    /* background: #f5f5f5; */
}

header {
    position: fixed;
    top: 0;
    left: 0;

    display: flex;
    width: 100%;
    height: 56px;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 0 16px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    z-index: var(--z-top);
}

header.hide {
    transform: translateY(-100%);
}

/* Dividir en 3 columnas iguales */
header .left,
header .center,
header .right {
    flex: 1;               /* cada columna ocupa 1/3 */
    display: flex;
    align-items: center;
}

/* Left alineado a la izquierda */
header .left {
    justify-content: flex-start;
}

/* Center centrado */
header .center {
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
}

/* Right alineado a la derecha */
header .right {
    justify-content: flex-end;
    gap: 8px; /* espacio entre iconos */
}
/*
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    background: white;
    transition: transform 0.25s ease;
    z-index: var(--z-top);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

header.hide {
    transform: translateY(-100%);
}

header .left,
header .center,
header .right {
    display: flex;
    align-items: center;
}

header .center {
    flex: 1;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
}
*/

.hamburger {
    font-size: 26px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.side-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: var(--z-max);
}

.side-menu .overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.side-menu .menu {
    position: absolute;
    top: 0;
    left: 0;
    width: 260px;
    height: 100%;
    background: white;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    box-shadow: 2px 0 10px rgba(0,0,0,0.15);
    display: flex;
}

.side-menu nav {
    padding: 1rem;
    width: 100%;
}

.side-menu nav a {
    display: block;
    padding: 0.7rem 0;
    text-decoration: none;
    color: #333;
    font-size: 16px;
}

.side-menu.open { pointer-events: all; }
.side-menu.open .menu { transform: translateX(0); }
.side-menu.open .overlay { opacity: 1; }


.content {
    margin-top: 56px;
    padding: 20px;
    line-height: 1.8;
}

/**/

.w-9 {
    width: calc(var(--spacing) * 9);
}

.h-9 {
    height: calc(var(--spacing) * 9);
}

.r-f {
    border-radius: 3.40282e+38px;
}

/* buttons */

.icon-btn {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    font-size: 24px; 
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.icon-btn:hover {
    background: var(--btn-bg-hover);
}

.icon-btn:focus-visible {
    outline: 2px solid var(--focus-blue);
    outline-offset: 2px;
}

.icon-btn:active {
    transform: scale(0.93); 
    background: rgba(0, 0, 0, 0.12);
}

.icon-btn:disabled {
    opacity: 0.4;
    cursor: default;
    pointer-events: none;
}

/* */

.fab {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: var(--btn-bg-base);
    color: white;
    border: none;
    outline: none;
    cursor: pointer;
    /* box-shadow: 0 4px 6px rgba(0,0,0,0.3); */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 24px;
    z-index: 1;
}

.fab:hover {
    background-color: #2a2a2a;
}

.fab:active {
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.fab:active {
    background-color: #151515; 
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.fab:focus {
    outline: 2px solid #383838; 
    outline-offset: 2px;
}

.fab.hide {
    /* fade-in + zoom-in effect */
    opacity: 0;
    transform: scale(0);
    transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.2s ease;
}

.fab.show {
    opacity: 1;
    transform: scale(1);
}

/* custom */

.logo a {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.3em;
    color: var(--app-primary-color);
    text-decoration: none;
    display: inline-block;
    pointer-events: auto;
    text-transform: uppercase;
}

/* --secondary-btn-bg: #ececec;
    --secondary-btn-txt: #0d0d0d;  */
.sec-btn-bg {
    background-color: var(--secondary-btn-bg);
    color: var(--secondary-btn-txt);
    box-shadow: 0px 3px 4px 4px rgba(0, 0, 0, 0.1);
}

.sec-btn-bg:hover {
    opacity: 0.8;
}