/* Eftel Cloud - Banner de consentimiento de cookies
   (Producción mantiene estos estilos en main.css; aquí se
   incluyen de forma independiente para el proyecto local.) */
.cc-banner {
    position: fixed;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    z-index: 10000;
    width: min(960px, calc(100vw - 24px));
    background: #fff;
    border: 1px solid #e6e8eb;
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(2, 8, 20, 0.18);
    color: #232f3e;
    font-family: inherit;
}

.cc-banner[hidden] {
    display: none;
}

.cc-banner-inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 18px 28px;
    padding: 22px 26px;
}

.cc-banner-text {
    min-width: 0;
}

.cc-banner-title {
    margin: 0 0 8px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #232f3e;
}

.cc-banner-title i {
    color: #ff9900;
    margin-right: 6px;
}

.cc-banner-copy {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.5;
    color: #545b64;
}

.cc-banner-copy a {
    color: #ff9900;
    font-weight: 600;
}

.cc-banner-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
}

.cc-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.cc-toggle-label {
    display: flex;
    flex-direction: column;
    font-size: 0.92rem;
    font-weight: 600;
    color: #232f3e;
    cursor: pointer;
}

.cc-toggle-label small {
    font-weight: 400;
    color: #8a9099;
    font-size: 0.78rem;
}

.cc-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: 42px;
    height: 24px;
    border-radius: 999px;
    background: #cbd2da;
    cursor: pointer;
    transition: background 0.18s ease;
    flex-shrink: 0;
}

.cc-switch input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    cursor: pointer;
}

.cc-knob {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
    transition: transform 0.18s ease;
}

.cc-switch input:checked ~ .cc-knob {
    transform: translateX(18px);
}

.cc-switch:not(.cc-on) input:checked ~ .cc-knob {
    transform: translateX(18px);
}

.cc-switch.cc-on {
    background: #ff9900;
}

.cc-switch input:checked ~ .cc-switch,
.cc-switch.cc-on {
    background: #ff9900;
}

.cc-banner-buttons {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    border-top: 1px solid #eef0f2;
    padding-top: 14px;
}

.cc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 18px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.cc-btn--primary {
    background: #ff9900;
    color: #fff;
}

.cc-btn--primary:hover {
    background: #ec7211;
    color: #fff;
}

.cc-btn--ghost {
    background: #fff;
    color: #232f3e;
    border-color: #d4d9df;
}

.cc-btn--ghost:hover {
    background: #f2f3f3;
    color: #232f3e;
}

@media (max-width: 767.98px) {
    .cc-banner-inner {
        grid-template-columns: 1fr;
    }
    .cc-banner-buttons {
        justify-content: stretch;
    }
    .cc-btn {
        width: 100%;
    }
}

/* Dark mode */
html.dark-mode .cc-banner {
    background: #23272e;
    border-color: #2d323b;
    color: #e4e6ea;
}
html.dark-mode .cc-banner-title,
html.dark-mode .cc-toggle-label {
    color: #e4e6ea;
}
html.dark-mode .cc-banner-copy,
html.dark-mode .cc-toggle-label small {
    color: #9ba1ab;
}
html.dark-mode .cc-btn--ghost {
    background: #2d323b;
    color: #e4e6ea;
    border-color: #2d323b;
}
html.dark-mode .cc-switch {
    background: #3a4049;
}
