#suggestions2 {
    display: none; /* oculto inicialmente, visible cuando hay resultados */
    max-height: 340px;
    overflow-y: auto;
    overflow-x: hidden;
    background: #000000;
    color: white;
    font-size: 20px;
    position: absolute;
    z-index: 999;
    width: 100%;
}

.suggestions {
    display: none; /* Ocultar la lista inicialmente */
    border-top: none;
    padding-bottom: 30px;
}

.suggestions div {
    padding: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.suggestions div:hover {
    background-color: #02270e;
}

.suggestions img {
    width: 30px;
    height: 30px;
    margin-right: 10px;
}

.selected-players div {
    padding: 8px;
    margin-top: 5px;
    background-color: #e3ffe3;
    display: flex;
    align-items: center;
}

.selected-players button {
margin-left: 10px;
}

.selected-players img {
    width: 30px;
    height: 30px;
    margin-right: 10px;
}

#searchInput{
    margin: 20px 0px;
}


.buscador-jugador{
    width: 100% !important;
    background: black !important;
    font-size: 24px !important;
    padding: 20px !important;
    color: white !important;
    border: none !important;
}

/*menu lateral - versión moderna Comuniate*/

.sidenav {
    width: min(92vw, 370px);
    height: calc(100vh - 50px);
    height: calc(100dvh - 50px);
    position: fixed;
    top: 50px;
    left: -100vw;
    z-index: 999;
    margin: 0;
    padding: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    color: #fff;
    background:
        radial-gradient(circle at 15% 0%, rgba(15, 126, 75, .22), transparent 34%),
        linear-gradient(180deg, #0c1712 0%, #07100c 52%, #040705 100%);
    border-right: 1px solid rgba(255,255,255,.08);
    box-shadow: 18px 0 48px rgba(0,0,0,.28);
    transition: left .28s cubic-bezier(.22,.61,.36,1), opacity .22s ease;
    -webkit-overflow-scrolling: touch;
}

.sidenav_open {
    left: 0;
    opacity: 1;
    pointer-events: auto;
}

.cm-side-inner {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 0;
}

.cm-side-scroll {
    flex: 1 1 auto;
    min-height: 0;
    padding: 14px 13px 14px;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.cm-side-svg-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

/* Buscador */
.cm-side-search {
    position: relative;
    margin: 2px 0 18px;
}

.sidenav .cm-side-search .buscador-jugador {
    width: 100% !important;
    height: 46px !important;
    margin: 0 !important;
    padding: 0 14px 0 43px !important;
    border: 1px solid rgba(255,255,255,.10) !important;
    border-radius: 12px !important;
    outline: 0 !important;
    background: rgba(255,255,255,.055) !important;
    color: #fff !important;
    box-shadow: none !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 46px !important;
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.sidenav .cm-side-search .buscador-jugador::placeholder {
    color: rgba(255,255,255,.52);
}

.sidenav .cm-side-search .buscador-jugador:focus {
    border-color: rgba(34, 197, 94, .65) !important;
    background: rgba(255,255,255,.075) !important;
    box-shadow: 0 0 0 3px rgba(34,197,94,.10) !important;
}

.cm-side-search__icon {
    position: absolute;
    top: 13px;
    left: 14px;
    z-index: 3;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: #008f5d;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}

.sidenav #suggestions2 {
    top: 52px;
    left: 0;
    width: 100%;
    max-height: 330px;
    padding: 6px 0 10px;
    overflow-y: auto;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 12px;
    background: #0a120e;
    color: #fff;
    box-shadow: 0 18px 42px rgba(0,0,0,.42);
    font-size: 14px;
}

.sidenav #suggestions2 div {
    min-height: 44px;
    padding: 7px 11px;
}

.sidenav #suggestions2 div:hover {
    background: rgba(34,197,94,.10);
}

/* Secciones plegables: compactas y agrupadas */
.cm-side-section {
    display: block;
    margin: 0 0 8px;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 12px;
    background: rgba(255,255,255,.018);
}

.cm-side-section[open] {
    padding-bottom: 7px;
}

.cm-side-section-title {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 42px;
    margin: 0;
    padding: 10px 38px 10px 12px;
    border: 0;
    color: rgba(255,255,255,.86);
    background: transparent;
    cursor: pointer;
    list-style: none;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: .35px;
    text-transform: uppercase;
    user-select: none;
}

.cm-side-section-title::-webkit-details-marker {
    display: none;
}

.cm-side-section-title::marker {
    content: "";
}

/* Chevron dibujado con CSS: no depende de Font Awesome. */
.cm-side-section-title::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 15px;
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-68%) rotate(45deg);
    color: rgba(255,255,255,.52);
    transition: transform .18s ease, color .18s ease;
}

.cm-side-section[open] > .cm-side-section-title {
    margin-bottom: 5px;
    border-bottom: 1px solid rgba(255,255,255,.075);
}

.cm-side-section[open] > .cm-side-section-title::after {
    transform: translateY(-30%) rotate(225deg);
    color: #2dd58c;
}

.cm-side-section-title:hover,
.cm-side-section-title:focus {
    background: rgba(255,255,255,.035);
    color: #fff;
    outline: 0;
}

.cm-side-section > .menu,
.cm-side-section > .cm-side-tools-list {
    margin-left: 7px;
    margin-right: 7px;
}

.sidenav .menu {
    position: relative;
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 39px;
    margin: 1px 0;
    padding: 9px 9px;
    overflow: hidden;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: rgba(255,255,255,.82);
    text-decoration: none !important;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: .02px;
    transition: background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
}

.sidenav .menu:hover,
.sidenav .menu:focus {
    color: #fff;
    border-color: rgba(255,255,255,.08);
    background: rgba(255,255,255,.055);
    text-decoration: none !important;
    transform: translateX(2px);
}

.sidenav .menu:focus-visible {
    outline: 2px solid rgba(34,197,94,.72);
    outline-offset: 1px;
}

.cm-side-icon {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    fill: none;
    stroke: rgba(255,255,255,.68);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke .16s ease, opacity .16s ease;
    shape-rendering: geometricPrecision;
}

.sidenav .menu:hover .cm-side-icon,
.sidenav .menu:focus .cm-side-icon {
    stroke: #35d07f;
}

.sidenav .menu--featured {
    margin: 5px 0 4px;
    color: #f6fffb;
    border: 1px solid rgba(0, 201, 139, .72);
    background: rgba(0, 143, 93, .035);
    box-shadow: inset 0 0 0 1px rgba(0, 201, 139, .035);
}

.sidenav .menu--featured:hover,
.sidenav .menu--featured:focus {
    border-color: rgba(0, 221, 151, .92);
    background: rgba(0, 143, 93, .10);
}

.sidenav .menu--featured .cm-side-icon {
    stroke: #00c98b;
}

.sidenav .menu--featured .cm-side-tools-toggle__caret {
    color: #00c98b;
}

/* Escudos */
.cm-side-teams {
    margin: 4px 0 22px;
    padding-top: 2px;
}

.cm-side-team-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 7px;
    margin-top: 8px;
}

.cm-side-team {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1 / 1;
    min-height: 52px;
    padding: 5px;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 11px;
    background: rgba(255,255,255,.035);
    transition: background .16s ease, border-color .16s ease, transform .16s ease;
}

.cm-side-team:hover,
.cm-side-team:focus {
    background: rgba(255,255,255,.075);
    border-color: rgba(255,255,255,.16);
    transform: translateY(-1px);
}

.cm-side-team.is-active {
    border-color: rgba(46, 204, 113, .78);
    background: rgba(0,143,93,.20) !important;
    box-shadow: inset 0 0 0 1px rgba(46,204,113,.12);
}

.cm-side-team img {
    display: block;
    width: 38px;
    height: 38px;
    padding: 2px;
    object-fit: contain;
}

/* Accesos finales: aparecen justo debajo del último grupo del menú. */
.cm-side-bottom {
    position: static;
    margin: 10px 0 2px;
    padding: 12px 0 4px;
    border-top: 1px solid rgba(255,255,255,.10);
    background: transparent;
    box-shadow: none;
}

.cm-side-bottom__links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
    margin-bottom: 9px;
}

.cm-side-bottom-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 0;
    min-height: 35px;
    padding: 7px 8px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 9px;
    background: rgba(255,255,255,.025);
    color: rgba(255,255,255,.82) !important;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.15;
    text-align: center;
    text-decoration: none !important;
}

.cm-side-bottom-link:hover,
.cm-side-bottom-link:focus {
    border-color: rgba(0, 201, 139, .44);
    background: rgba(0, 143, 93, .08);
    color: #fff !important;
}

.cm-side-bottom-link .cm-side-icon {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    stroke: #00c98b;
}

.cm-side-bottom__apps {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.cm-side-bottom__apps a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 31px;
}

.cm-side-bottom__apps img {
    display: block;
    width: auto;
    max-width: 100%;
    height: 31px;
    object-fit: contain;
}

/* Scroll discreto del menú completo */
.cm-side-scroll {
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.16) transparent;
}

.cm-side-scroll::-webkit-scrollbar {
    width: 6px;
}

.cm-side-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.cm-side-scroll::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(255,255,255,.15);
}

.cm-side-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,.24);
}

@media (max-width: 480px) {
    .sidenav {
        width: min(94vw, 360px);
    }

    .cm-side-scroll {
        padding-left: 11px;
        padding-right: 11px;
    }

}

/* VAMOS CON EL MENU CALENDARIO */

  .main-header {
            background: #ffffff;
            border-bottom: 1px solid #e4e7eb;
            padding: 8px 16px;
            position: sticky;
            top: 0;
            z-index: 200; /* por encima del panel y del overlay */
        }
        .header-inner {
            max-width: 1100px;
            margin: 0 auto;
            display: flex;
            align-items: center;
        }
        .header-logo img {
            height: 34px;
        }
        .header-spacer {
            flex: 1;
        }

        /* Botón del panel calendario al lado del logo/menú */
        .cal-panel-toggle {
            margin-left: 10px;
            background: none;
            color: #fff;
            border: none;
            border-radius: 999px;
            padding: 6px 10px;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 14px;
        }
        .cal-panel-toggle i {
            font-size: 26px;
        }

        /* Opcional: estilo diferente cuando está abierto (X) */
        .cal-panel-toggle.is-open {
            background: #b91c1c;
        }
        .cal-panel-toggle.is-open:hover {
            background: #dc2626;
        }

        /* Contenido demo */
        .page-content {
            max-width: 1100px;
            margin: 24px auto;
            padding: 0 16px 60px;
        }
        .page-content h1 {
            margin-top: 0;
        }
        .page-content p {
            color: #555;
        }

        /* ---------- PANEL Y OVERLAY ---------- */

        /* Overlay, pero solo bajo la cabecera (lo ajusta JS) */
        #cal-panel-overlay {
            position: fixed;
            top: 0;              /* se ajustará por JS a altura de header */
            left: 0;
            right: 0;
            height: 100vh;       /* se ajustará por JS */
            background: rgba(0,0,0,0.35);
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.25s ease;
            z-index: 150;        /* por debajo del header, por encima del contenido */
        }
        #cal-panel-overlay.open {
            opacity: 1;
            visibility: visible;
        }

        /* Panel lateral derecho, bajo la cabecera (top/height por JS) */
        #cal-panel {
            position: fixed;
            top: 0;              /* se ajustará por JS */
            right: 0;
            width: 360px;
            max-width: 100%;
            height: 100vh;       /* se ajustará por JS */
            background: #ffffff;
            z-index: 160;        /* debajo del header, por encima del overlay */
            display: flex;
            flex-direction: column;
            font-size: 14px;

            /* oculto por defecto */
            transform: translateX(100%);
            transition: transform 0.25s ease;

            box-shadow: none; /* sin sombra lateral */
        }
        #cal-panel.open {
            transform: translateX(0);
        }

        /* Cabecera del panel */
        .cal-panel-header {
            padding: 10px 14px;
            border-bottom: 1px solid #e3e3e3;
            display: flex;
            align-items: center;
            justify-content: space-between;
            background: linear-gradient(90deg, #06612f, #09a64b);
            color: #fff;
        }
        .cal-panel-title {
            font-weight: 600;
        }
        /* Quitamos botón de cierre interno, lo hace el del header (X) */
        .cal-panel-close {
            display: none;
        }

        /* Navegación de días + calendario */
        .cal-panel-nav {
            padding: 8px 10px;
            border-bottom: 1px solid #f0f0f0;
            display: flex;
            align-items: center;          /* centra verticalmente todo */
            justify-content: space-between;
            background: #f9fdf9;
        }

        /* Botones GRANDES de cambio de día */
        .cal-nav-btn {
        border: none;
            background: none;
            color: #06612f;
            border-radius: 999px;
            width: 36px;
            height: 36px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            font-size: 16px;
        }
        .cal-nav-btn i {
            font-size: 18px;
        }
        .cal-nav-btn:hover {
            background: #09a64b;
        }

        .cal-nav-center {
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .cal-current-date-label {
            font-weight: 600;
            font-size: 20px;
        }

        /* Botón de icono calendario */
        .cal-date-btn {
            border: none;
            background: #ffffff;
            border-radius: 999px;
            padding: 5px 8px;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border: 1px solid #d0d7de;
        }
        .cal-date-btn i {
            font-size: 14px;
            color: #555;
        }
        .cal-date-btn:hover {
            border-color: #09a64b;
            background: #f3fff7;
        }


        /* Contenido del panel */
        .cal-panel-content {
            flex: 1;
            overflow-y: auto;
            padding: 8px 10px 12px;
            background: #ffffff;
        }
        .cal-panel-loading {
            text-align: center;
            padding: 20px 10px;
            font-size: 13px;
            color: #666;
        }
        .cal-panel-empty {
            padding: 20px 10px;
            text-align: center;
            font-size: 13px;
            color: #888;
        }

        /* Cabecera del día */
        .cal-day-header {
            padding: 6px 4px;
            margin-bottom: 4px;
            border-radius: 6px;
            background: #f0faf3;
            display: flex;
            justify-content: space-between;
            font-size: 16px;
            color: #06612f;
            font-weight: 600;
        }

        /* Bloque de competición */
        .cal-competition-block {
            margin-bottom: 10px;
        }
        .cal-competition-header {
         display: flex;
            align-items: center;
            margin: 20px 0px;
        }
        .cal-competition-logo {
            width: 20px;
            height: 20px;
            margin-right: 6px;
        }
        .cal-competition-name {
            font-size: 20px;
            font-weight: 600;
            color: #333;
        }

        .cal-date-wrap{
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* input invisible encima del botón */
.cal-date-picker-overlay{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    border: 0;
    padding: 0;
    margin: 0;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

        /* MOBILE: ventana (no full width), SIN margen top extra y SIN bordes redondeados */
        @media (max-width: 480px) {
            #cal-panel {
                width: 92vw;              /* ventana, no 100% */
                max-width: 420px;
                border-radius: 0;         /* sin redondeado */
                overflow: hidden;
            }
        }
/* Herramientas Comunio fuera de los grupos: acceso principal destacado */
.cm-side-tools-block {
    margin: 0 0 9px;
}

.sidenav .cm-side-tools-block .menu--featured {
    width: 100%;
    min-height: 44px;
    margin: 0;
    padding: 10px 11px;
    border: 1px solid rgba(24, 210, 139, .78);
    border-radius: 11px;
    background: transparent;
    color: rgba(255,255,255,.90);
    box-shadow: none;
}

.sidenav .cm-side-tools-block .menu--featured:hover,
.sidenav .cm-side-tools-block .menu--featured:focus {
    border-color: #28dfa0;
    background: rgba(24,210,139,.055);
    color: #fff;
    transform: none;
}

.sidenav .cm-side-tools-block .menu--featured .cm-side-icon,
.sidenav .cm-side-tools-block .menu--featured .cm-side-tools-toggle__caret {
    stroke: #1bd596;
    color: #1bd596;
}

.sidenav .cm-side-tools-block .cm-side-tools-list {
    margin: 6px 0 0;
    background: rgba(4, 19, 13, .96);
    border-color: rgba(24, 210, 139, .34);
}

.sidenav .cm-side-tools-block .cm-side-tools-list__all {
    color: #27d99a !important;
}

/* Ajuste de posición del menú lateral respecto a la cabecera principal.
   En desktop la cabecera mide 64px; en móvil se mantiene a 50px. */
@media (min-width: 768px) {
    .sidenav {
        top: 64px;
        height: calc(100vh - 64px);
        height: calc(100dvh - 64px);
    }
}


/* PARTIDOS · diseño más visual y profesional */
.cm-side-section--matches {
    background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.015));
}

.cm-side-match-grid {
    display: grid;
    gap: 9px;
    padding: 3px 8px 4px;
}

.cm-side-match-card {
    position: relative;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 14px;
    align-items: center;
    gap: 11px;
    min-height: 62px;
    padding: 11px 12px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255,255,255,.045), rgba(255,255,255,.02));
    text-decoration: none !important;
    transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.cm-side-match-card:hover,
.cm-side-match-card:focus {
    transform: translateX(2px);
    border-color: rgba(45, 213, 140, .38);
    background: linear-gradient(135deg, rgba(255,255,255,.075), rgba(0, 143, 93, .07));
    box-shadow: 0 10px 24px rgba(0,0,0,.18);
    text-decoration: none !important;
}

.cm-side-match-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.07);
    background: rgba(255,255,255,.045);
}

.cm-side-match-card__icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: #f6fffb;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cm-side-match-card__body {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.cm-side-match-card__title {
    color: #f6fffb;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: .02px;
}

.cm-side-match-card__meta {
    margin-top: 3px;
    color: rgba(255,255,255,.58);
    font-size: 11.5px;
    line-height: 1.25;
}

.cm-side-match-card__arrow {
    position: relative;
    width: 9px;
    height: 9px;
    justify-self: end;
    border-top: 2px solid rgba(255,255,255,.42);
    border-right: 2px solid rgba(255,255,255,.42);
    transform: rotate(45deg);
    transition: border-color .18s ease, transform .18s ease;
}

.cm-side-match-card:hover .cm-side-match-card__arrow,
.cm-side-match-card:focus .cm-side-match-card__arrow {
    border-color: #2dd58c;
    transform: translateX(1px) rotate(45deg);
}

.cm-side-match-card--lineups .cm-side-match-card__icon {
    background: linear-gradient(135deg, rgba(0,201,139,.17), rgba(0,143,93,.08));
}

.cm-side-match-card--standings .cm-side-match-card__icon {
    background: linear-gradient(135deg, rgba(255,184,76,.18), rgba(255,154,60,.08));
}

.cm-side-match-card--calendar .cm-side-match-card__icon {
    background: linear-gradient(135deg, rgba(84,171,255,.18), rgba(41,121,255,.08));
}

.cm-side-match-card--lineups .cm-side-match-card__icon svg {
    stroke: #20d08c;
}

.cm-side-match-card--standings .cm-side-match-card__icon svg {
    stroke: #ffb84c;
}

.cm-side-match-card--calendar .cm-side-match-card__icon svg {
    stroke: #66b5ff;
}

@media (max-width: 380px) {
    .cm-side-match-card {
        grid-template-columns: 38px minmax(0, 1fr) 12px;
        gap: 9px;
        min-height: 58px;
        padding: 10px 10px;
    }

    .cm-side-match-card__icon {
        width: 38px;
        height: 38px;
        border-radius: 11px;
    }

    .cm-side-match-card__icon svg {
        width: 20px;
        height: 20px;
    }

    .cm-side-match-card__title {
        font-size: 14px;
    }

    .cm-side-match-card__meta {
        font-size: 11px;
    }
}


/* =========================================================
   TARJETAS DEL MENÚ LATERAL · resto de secciones
   Mismo lenguaje visual que PARTIDOS.
   ========================================================= */
.cm-side-card-grid {
    display: grid;
    gap: 9px;
    padding: 3px 8px 4px;
}

.cm-side-card {
    --cm-card-accent: #2dd58c;
    --cm-card-accent-rgb: 45, 213, 140;
    position: relative;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 14px;
    align-items: center;
    gap: 11px;
    min-height: 62px;
    padding: 11px 12px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255,255,255,.045), rgba(255,255,255,.018));
    color: #fff !important;
    text-decoration: none !important;
    transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.cm-side-card:hover,
.cm-side-card:focus {
    transform: translateX(2px);
    border-color: rgba(var(--cm-card-accent-rgb), .42);
    background: linear-gradient(135deg, rgba(255,255,255,.075), rgba(var(--cm-card-accent-rgb), .07));
    box-shadow: 0 10px 24px rgba(0,0,0,.18);
    color: #fff !important;
    text-decoration: none !important;
    outline: 0;
}

.cm-side-card:focus-visible {
    box-shadow: 0 0 0 2px rgba(var(--cm-card-accent-rgb), .22), 0 10px 24px rgba(0,0,0,.18);
}

.cm-side-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(var(--cm-card-accent-rgb), .16);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(var(--cm-card-accent-rgb), .18), rgba(var(--cm-card-accent-rgb), .055));
}

.cm-side-card__icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: var(--cm-card-accent);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cm-side-card__body {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.cm-side-card__title {
    color: #f7fbf9;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: .01px;
}

.cm-side-card__meta {
    margin-top: 3px;
    color: rgba(255,255,255,.56);
    font-size: 11.5px;
    font-weight: 500;
    line-height: 1.28;
}

.cm-side-card__arrow {
    width: 9px;
    height: 9px;
    justify-self: end;
    border-top: 2px solid rgba(255,255,255,.38);
    border-right: 2px solid rgba(255,255,255,.38);
    transform: rotate(45deg);
    transition: border-color .18s ease, transform .18s ease;
}

.cm-side-card:hover .cm-side-card__arrow,
.cm-side-card:focus .cm-side-card__arrow {
    border-color: var(--cm-card-accent);
    transform: translateX(1px) rotate(45deg);
}

.cm-side-card--green  { --cm-card-accent:#2dd58c; --cm-card-accent-rgb:45,213,140; }
.cm-side-card--cyan   { --cm-card-accent:#4dd7e8; --cm-card-accent-rgb:77,215,232; }
.cm-side-card--blue   { --cm-card-accent:#66b5ff; --cm-card-accent-rgb:102,181,255; }
.cm-side-card--gold   { --cm-card-accent:#f4c95d; --cm-card-accent-rgb:244,201,93; }
.cm-side-card--orange { --cm-card-accent:#ff9a52; --cm-card-accent-rgb:255,154,82; }
.cm-side-card--red    { --cm-card-accent:#ff7387; --cm-card-accent-rgb:255,115,135; }
.cm-side-card--purple { --cm-card-accent:#b99cff; --cm-card-accent-rgb:185,156,255; }

/* Cuando una sección usa tarjetas, dejamos el contenedor respirando un poco más. */
.cm-side-section--cards[open] {
    padding-bottom: 8px;
}

@media (max-width: 380px) {
    .cm-side-card {
        grid-template-columns: 38px minmax(0,1fr) 12px;
        gap: 9px;
        min-height: 58px;
        padding: 10px;
    }
    .cm-side-card__icon {
        width: 38px;
        height: 38px;
        border-radius: 11px;
    }
    .cm-side-card__icon svg { width:20px; height:20px; }
    .cm-side-card__title { font-size:14px; }
    .cm-side-card__meta { font-size:11px; }
}
