/* Gyalux · Cookies · escritorio y base */

.gx-cookie-consent {
    position: fixed;
    left: 50%;
    bottom: 18px;
    z-index: 99999;
    width: min(calc(100% - 32px), 1200px);
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(0, 26, 58, 0.12);
    border-top: 4px solid #CBA358;
    border-radius: 24px;
    box-shadow: 0 24px 70px rgba(0, 26, 58, 0.18);
    overflow: hidden;
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.gx-cookie-consent[hidden],
    .gx-cookie-panel[hidden] {
    display: none !important;
}

.gx-cookie-consent-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 22px;
    align-items: center;
    padding: 22px 24px;
}

.gx-cookie-consent-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 7px;
    color: #001A3A;
    font-family: "Plus Jakarta Sans", system-ui, sans-serif;
    font-size: 1.05rem;
    line-height: 1.25;
    font-weight: 800;
}

.gx-cookie-consent-title i {
    color: #CBA358;
    font-size: 1.25rem;
}

.gx-cookie-consent-text {
    margin: 0;
    color: #4A5568;
    font-size: 0.94rem;
    line-height: 1.6;
}

.gx-cookie-consent-text a {
    color: #001A3A;
    font-weight: 800;
    text-decoration: none;
    border-bottom: 1px solid rgba(203, 163, 88, 0.7);
}

.gx-cookie-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.gx-cookie-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 11px 17px;
    border-radius: 999px;
    border: 1px solid rgba(0, 26, 58, 0.14);
    font-family: "Inter", system-ui, sans-serif;
    font-weight: 800;
    font-size: 0.9rem;
    line-height: 1;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
    white-space: nowrap;
}

.gx-cookie-btn:hover {
    transform: translateY(-1px);
}

.gx-cookie-btn-primary {
    background: #CBA358;
    border-color: #CBA358;
    color: #001A3A;
    box-shadow: 0 12px 26px rgba(203, 163, 88, 0.28);
}

.gx-cookie-btn-secondary {
    background: #001A3A;
    border-color: #001A3A;
    color: #FFFFFF;
}

.gx-cookie-btn-ghost {
    background: #FFFFFF;
    color: #001A3A;
}

.gx-cookie-panel-backdrop {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(0, 26, 58, 0.45);
    backdrop-filter: blur(4px);
}

.gx-cookie-panel {
    width: min(100%, 720px);
    max-height: min(90vh, 760px);
    overflow: auto;
    background: #FFFFFF;
    border-radius: 28px;
    border: 1px solid rgba(0, 26, 58, 0.12);
    box-shadow: 0 34px 90px rgba(0, 26, 58, 0.28);
}

.gx-cookie-panel-head {
    padding: 24px 26px 18px;
    background: linear-gradient(135deg, #001A3A 0%, #082A56 100%);
    color: #FFFFFF;
}

.gx-cookie-panel-head h2 {
    margin: 0 0 8px;
    font-family: "Plus Jakarta Sans", system-ui, sans-serif;
    font-size: 1.35rem;
    line-height: 1.25;
}

.gx-cookie-panel-head p {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.6;
    font-size: 0.94rem;
}

.gx-cookie-panel-body {
    padding: 24px 26px 8px;
}

.gx-cookie-option {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid rgba(0, 26, 58, 0.08);
}

.gx-cookie-option:first-child {
    padding-top: 0;
}

.gx-cookie-option:last-child {
    border-bottom: 0;
}

.gx-cookie-option strong {
    display: block;
    color: #001A3A;
    font-family: "Plus Jakarta Sans", system-ui, sans-serif;
    margin-bottom: 6px;
}

.gx-cookie-option span {
    display: block;
    color: #64748B;
    font-size: 0.92rem;
    line-height: 1.55;
}

.gx-cookie-switch {
    position: relative;
    display: inline-flex;
    width: 56px;
    height: 32px;
    flex: 0 0 auto;
}

.gx-cookie-switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.gx-cookie-switch span {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: #CBD5E1;
    transition: background .2s ease;
}

.gx-cookie-switch span::before {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #FFFFFF;
    box-shadow: 0 4px 12px rgba(0, 26, 58, 0.18);
    transition: transform .2s ease;
}

.gx-cookie-switch input:checked + span {
    background: #CBA358;
}

.gx-cookie-switch input:checked + span::before {
    transform: translateX(24px);
}

.gx-cookie-switch input:disabled + span {
    background: #001A3A;
    opacity: 0.92;
}

.gx-cookie-panel-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex-wrap: wrap;
    padding: 20px 26px 26px;
}
