/* ============================================================
   FroggyPixel — Política de Cookies (cook- prefix)
   Complementa las clases priv- de privacidad.css
   ============================================================ */


/* ══════════════════════════════════════════════════════
   COOKIE CATEGORY CARDS
   ══════════════════════════════════════════════════════ */

.cook-cat-card {
    background: #ffffff;
    border: 1px solid #eeedf3;
    border-radius: 14px;
    padding: 22px 24px;
    margin-bottom: 16px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cook-cat-card:hover {
    border-color: #ddd9f0;
    box-shadow: 0 2px 12px rgba(124, 58, 237, 0.04);
}

.cook-cat-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.cook-cat-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: #f3f0ff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.cook-cat-text {
    flex: 1;
    min-width: 0;
}

.cook-cat-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.cook-cat-title {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0;
    line-height: 1.4;
}

.cook-cat-desc {
    font-size: 13.5px;
    color: #64627a;
    line-height: 1.6;
    margin: 0;
}


/* ══════════════════════════════════════════════════════
   BADGES
   ══════════════════════════════════════════════════════ */

.cook-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1;
    white-space: nowrap;
}

.cook-badge--necesaria {
    background: #e8f5e9;
    color: #2e7d32;
}

.cook-badge--analitica {
    background: #ede7f6;
    color: #5e35b1;
}

.cook-badge--rendimiento {
    background: #fff3e0;
    color: #e65100;
}

.cook-badge--marketing {
    background: #fce4ec;
    color: #c62828;
}

.cook-badge--sm {
    font-size: 10px;
    padding: 2px 8px;
}

.cook-always-on {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 500;
    color: #2e7d32;
    padding: 3px 10px;
    border-radius: 20px;
    background: transparent;
    border: 1px solid #c8e6c9;
    line-height: 1;
    white-space: nowrap;
}


/* ══════════════════════════════════════════════════════
   DETAILS TOGGLE BUTTON
   ══════════════════════════════════════════════════════ */

.cook-details-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 6px 14px;
    background: #f8f7fc;
    border: 1px solid #eeedf3;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 500;
    color: #7c3aed;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: inherit;
}

.cook-details-btn:hover {
    background: #f0ecfa;
    border-color: #ddd9f0;
}

.cook-details-btn:active {
    transform: scale(0.98);
}


/* ══════════════════════════════════════════════════════
   EXPANDABLE DETAILS SECTION
   ══════════════════════════════════════════════════════ */

.cook-cat-details {
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.25s ease,
                margin-top 0.25s ease;
}

.cook-cat-details--hidden {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    pointer-events: none;
}

.cook-cat-details--visible {
    max-height: 1200px;
    opacity: 1;
    margin-top: 16px;
    pointer-events: auto;
    padding-top: 16px;
    border-top: 1px solid #f0eef5;
}


/* ══════════════════════════════════════════════════════
   TOOL BLOCKS (GA4, Clarity, GTM dentro de details)
   ══════════════════════════════════════════════════════ */

.cook-tool-block {
    background: #faf9fd;
    border: 1px solid #f0eef5;
    border-radius: 10px;
    padding: 16px 18px;
    margin-bottom: 10px;
}

.cook-tool-block:last-child {
    margin-bottom: 0;
}

.cook-tool-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.cook-tool-logo {
    flex-shrink: 0;
}

.cook-tool-name {
    font-size: 13.5px;
    font-weight: 600;
    color: #1a1a2e;
}

.cook-tool-block .priv-p {
    font-size: 13px;
    color: #64627a;
    margin: 0;
}


/* ══════════════════════════════════════════════════════
   COOKIE TABLE
   ══════════════════════════════════════════════════════ */

.cook-table-wrap {
    overflow-x: auto;
    margin-top: 8px;
    border: 1px solid #eeedf3;
    border-radius: 12px;
}

.cook-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.cook-th {
    background: #faf9fd;
    color: #64627a;
    font-weight: 600;
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #eeedf3;
    white-space: nowrap;
}

.cook-td {
    padding: 12px 16px;
    color: #1a1a2e;
    border-bottom: 1px solid #f5f4f8;
    vertical-align: middle;
}

.cook-table tbody tr:last-child .cook-td {
    border-bottom: none;
}

.cook-table tbody tr:hover .cook-td {
    background: #fdfcfe;
}

.cook-code {
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 12px;
    background: #f3f0ff;
    color: #5e35b1;
    padding: 2px 8px;
    border-radius: 5px;
    white-space: nowrap;
}


/* ══════════════════════════════════════════════════════
   PREFERENCE OPTIONS (Sec. 5)
   ══════════════════════════════════════════════════════ */

.cook-opt-card {
    background: #faf9fd;
    border: 1px solid #f0eef5;
    border-radius: 12px;
    padding: 18px 20px;
    margin-bottom: 10px;
}

.cook-opt-card:last-child {
    margin-bottom: 0;
}

.cook-opt-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.cook-opt-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #f3f0ff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.cook-opt-title {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 4px;
}

.cook-opt-desc {
    font-size: 13px;
    color: #64627a;
    line-height: 1.6;
    margin: 0;
}


/* ══════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .cook-cat-card {
        padding: 18px 16px;
    }

    .cook-cat-icon {
        width: 36px;
        height: 36px;
    }

    .cook-cat-title-row {
        gap: 6px;
    }

    .cook-table-wrap {
        margin-left: -16px;
        margin-right: -16px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .cook-th,
    .cook-td {
        padding: 10px 12px;
        font-size: 12px;
    }

    .cook-tool-block {
        padding: 14px;
    }

    .cook-opt-card {
        padding: 14px 16px;
    }

    .cook-opt-icon {
        width: 34px;
        height: 34px;
    }
}

@media (max-width: 480px) {
    .cook-cat-header {
        flex-direction: column;
        gap: 10px;
    }

    .cook-opt-row {
        flex-direction: column;
        gap: 10px;
    }
}