/* =====================================================
   Estilos del banner de cookies para kellycontadora.com
   ===================================================== */

/* ── BANNER ────────────────────────────────────────── */
#kc-cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

#kc-cookie-banner.kc-show {
    transform: translateY(0);
}

.kc-banner-inner {
    background: var(--dark-color, #1F1B18);
    border-top: 1px solid rgba(179, 128, 80, 0.3);
    padding: 20px 0;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.25);
}

/* ── PANEL EXPANDIBLE DE OPCIONES ───────────────────── */
#kc-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

#kc-panel.kc-panel-open {
    max-height: 400px;
}

.kc-panel-body {
    padding: 20px 0 8px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 12px;
}

.kc-option {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    transition: border-color 0.3s ease;
}

.kc-option:hover {
    border-color: rgba(179, 128, 80, 0.4);
}

.kc-option-info { flex: 1; }

.kc-option-info strong {
    display: block;
    color: #fff;
    font-size: 0.87rem;
    margin-bottom: 3px;
}

.kc-option-info span {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.77rem;
    line-height: 1.4;
}

/* ── TOGGLE SWITCH ───────────────────────────────────── */
.kc-toggle {
    position: relative;
    width: 42px;
    height: 24px;
    flex-shrink: 0;
}

.kc-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.kc-slider {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.kc-slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.kc-toggle input:checked + .kc-slider {
    background: var(--primary-color, #B38050);
}

.kc-toggle input:checked + .kc-slider::before {
    transform: translateX(18px);
}

.kc-toggle input:disabled + .kc-slider {
    opacity: 0.65;
    cursor: not-allowed;
}

/* ── FILA PRINCIPAL DEL BANNER ───────────────────────── */
.kc-banner-row {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.kc-icon {
    font-size: 2rem;
    flex-shrink: 0;
    animation: kcWiggle 3s ease-in-out infinite;
}

@keyframes kcWiggle {
    0%, 100% { transform: rotate(0deg); }
    25%       { transform: rotate(-8deg); }
    75%       { transform: rotate(8deg); }
}

.kc-text { flex: 1; min-width: 200px; }

.kc-text h3 {
    font-family: 'Sora', sans-serif;
    color: #fff;
    font-size: 0.97rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.kc-text p {
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.83rem;
    line-height: 1.5;
    margin: 0;
}

.kc-text a {
    color: var(--accent-color, #D9B58E);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ── BOTONES ─────────────────────────────────────────── */
.kc-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.kc-btn-accept {
    background: linear-gradient(135deg, #B38050 0%, #D9B58E 100%);
    color: #fff;
    border: none;
    padding: 11px 20px;
    border-radius: 10px;
    font-size: 0.86rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(179, 128, 80, 0.35);
    white-space: nowrap;
}

.kc-btn-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(179, 128, 80, 0.45);
}

.kc-btn-reject {
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 11px 16px;
    border-radius: 10px;
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.kc-btn-reject:hover {
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}

.kc-btn-customize {
    background: transparent;
    color: var(--accent-color, #D9B58E);
    border: none;
    font-size: 0.81rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
    padding: 4px;
    white-space: nowrap;
}

/* ── FAB PERSISTENTE ─────────────────────────────────── */
#kc-cookie-fab {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 9998;
    display: none; /* Se mantiene tu display: none inicial */
    align-items: center;
    justify-content: center;
    width: 50px;  /* Ancho y alto exactos para el círculo */
    height: 50px;
    background: var(--dark-color, #1F1B18);
    border: 1px solid rgba(179, 128, 80, 0.3);
    border-radius: 50%; /* Esto lo hace redondo */
    font-size: 1.5rem; /* Tamaño de la galleta */
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    padding: 0;
}

#kc-cookie-fab:hover {
    background: var(--dark-secondary, #3A2F28);
    border-color: rgba(179, 128, 80, 0.6);
    box-shadow: 0 6px 20px rgba(179, 128, 80, 0.2);
    transform: scale(1.05); /* Crece un poquitico al pasar el mouse */
}

/* ── ANIMACIÓN DE LA GALLETA RODANDO ── */
.kc-cookie-emoji {
    display: inline-block;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1); /* Efecto de rebote suave al final */
}

#kc-cookie-fab:hover .kc-cookie-emoji {
    transform: rotate(360deg); /* Da una vuelta completa */
}

/* ── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 768px) {
    .kc-banner-row  { gap: 12px; }
    .kc-panel-body  { grid-template-columns: 1fr; }
    #kc-cookie-fab  { bottom: 16px; left: 16px; }
}
