﻿body {
    :root {
        --cc-bg: #0f172a;
        --cc-surface: #1e293b;
        --cc-text: #e2e8f0;
        --cc-text-light: #cbd5e1;
        --cc-accent: #60a5fa; /* azul más suave y actual */
        --cc-accent-hover: #3b82f6;
        --cc-border: #334155;
        --cc-glass: rgba(30, 41, 59, 0.65);
        --radius: 20px;
        --shadow: 0 16px 40px rgba(0,0,0,0.55);
    }

    .cookie-consent {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.7);
        display: none;
        place-items: center;
        z-index: 9999;
        backdrop-filter: blur(8px); /* glassmorphism más pronunciado */
        -webkit-backdrop-filter: blur(8px);
    }

    .cookie-consent__inner {
        background: var(--cc-glass);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border: 1px solid var(--cc-border);
        border-radius: var(--radius);
        padding: 2rem 1.75rem;
        max-width: 540px;
        width: 92%;
        box-shadow: var(--shadow);
        color: var(--cc-text);
        animation: fadeInUp 0.45s ease-out;
    }

    .keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(30px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .cookie-consent__header {
        display: flex;
        align-items: center;
        gap: 0.9rem;
        margin-bottom: 1.3rem;
    }

    .cookie-icon {
        font-size: 2.1rem;
        line-height: 1;
    }

    .cookie-consent__title {
        margin: 0;
        font-size: 1.5rem;
        font-weight: 600;
        color: #f8fafc;
        letter-spacing: -0.01em;
    }

    .cookie-consent__text {
        font-size: 0.96rem;
        line-height: 1.6;
        color: var(--cc-text-light);
        margin-bottom: 1.75rem;
    }

        .cookie-consent__text a {
            color: var(--cc-accent);
            text-decoration: none;
            font-weight: 500;
            border-bottom: 1px solid transparent;
            transition: border-color 0.2s;
        }

            .cookie-consent__text a:hover {
                border-bottom-color: var(--cc-accent);
            }
    /*.cookie-consent__actions {
        display: flex;
        flex-wrap: wrap;
        gap: 0.9rem;
        justify-content: flex-end;
    }*/
    .cookie-consent__actions {
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
        justify-content: flex-end;
        align-items: center;
        max-width: 100%;
    }
    /*.btn {
  padding: 0.78rem 1.5rem;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.22s ease;
  border: none;
  letter-spacing: 0.01em;
}*/
    .btn {
        padding: 0.8rem 1.4rem; /* menos padding horizontal → botón más estrecho pero controlado */
        font-size: 0.92rem; /* ← LETRAS MÁS PEQUEÑAS (antes 0.98rem o 1rem) */
        font-weight: 500;
        line-height: 1.35; /* texto más compacto verticalmente */
        min-width: 110px; /* mínimo para que no quede ridículo */
        max-width: 100%; /* nunca más ancho que el contenedor */
        white-space: nowrap; /* evita salto de línea */
        overflow: hidden; /* oculta desborde */
        text-overflow: ellipsis; /* ... si realmente no cabe (pero ahora debería caber) */
        box-sizing: border-box;
        display: inline-flex; /* mejor alineación del texto dentro */
        justify-content: center;
        align-items: center;
    }
    /*.btn-primary {
        background: var(--cc-accent);
        color: white;
        box-shadow: 0 4px 14px rgba(96, 165, 250, 0.35);
    }*/
    .btn-primary {
        font-weight: 600; /* más negrita para compensar tamaño menor */
        background: var(--cc-accent);
        color: white;
    }
        /*.btn-primary:hover {
            background: var(--cc-accent-hover);
            transform: translateY(-1px);
            box-shadow: 0 6px 18px rgba(59, 130, 246, 0.4);
        }*/
        .btn-primary:hover {
            background: var(--cc-accent-hover);
            transform: translateY(-1px);
        }

    .btn-outline {
        background: transparent;
        border: 1px solid var(--cc-border);
        color: var(--cc-text);
    }

        .btn-outline:hover {
            background: rgba(255,255,255,0.07);
            border-color: var(--cc-accent);
            color: var(--cc-accent);
        }

    .cookie-preferences {
        margin-top: 1.8rem;
        padding-top: 1.6rem;
        border-top: 1px solid var(--cc-border);
    }

    .cookie-categories {
        list-style: none;
        padding: 0;
        margin: 0 0 1.6rem;
    }

        .cookie-categories li {
            margin-bottom: 1.2rem;
        }

        .cookie-categories label {
            display: flex;
            flex-direction: column;
            gap: 0.35rem;
            font-weight: 500;
            cursor: pointer;
        }

        .cookie-categories input[type="checkbox"] {
            accent-color: var(--cc-accent);
            transform: scale(1.15);
        }

        .cookie-categories small {
            font-weight: 400;
            opacity: 0.75;
            font-size: 0.86rem;
            line-height: 1.4;
        }
    /* Responsive */
    /*@media (max-width: 520px) {
        .cookie-consent__inner {
            padding: 1.6rem 1.4rem;
        }*/
    /* En móviles (cuando pasan a columna) */
    @media (max-width: 520px) {
        .cookie-consent__actions {
            flex-direction: column;
            gap: 0.8rem;
            justify-content: stretch; /* los botones ocupan todo el ancho */
            align-items: stretch;
        }

        .cookie-consent__actions {
            gap: 0.9rem; /* menos separación si los botones son más pequeños */
            justify-content: center; /* centrado queda más equilibrado */
            width: 100%;
            max-width: 100%;
        }
        /*.btn {
            width: 100%;
            padding: 0.85rem;
        }*/
        .btn {
            font-size: 0.95rem; /* un pelín más grande en móvil para legibilidad */
            padding: 0.95rem 1.2rem; /* más espacio lateral en pantallas pequeñas */
            min-width: unset; /* quita el mínimo → ocupa todo el ancho */
            width: 100%; /* fuerza ancho completo → texto siempre cabe */
        }
    }

    .cookie-preferences .cookie-consent__actions {
        justify-content: center;
        margin-top: 1.2rem;
    }
}
