/* ================================================
   FLOATING ACTION BUTTONS
   ================================================ */

.fab-container {
    position: fixed;
    bottom: 28px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1000;
    transition: bottom 0.3s ease;
}

.fab-container.with-banner { bottom: 96px; }

.fab-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}

.fab-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(0,0,0,0.3);
    color: #fff;
}

.fab-whatsapp {
    background: #25d366;
    animation: fab-pulse 2.5s ease-in-out infinite;
}

.fab-phone { background: #1e3d59; }

@keyframes fab-pulse {
    0%, 100% { box-shadow: 0 4px 16px rgba(37,211,102,0.35); }
    50%       { box-shadow: 0 4px 28px rgba(37,211,102,0.7); }
}

.fab-tooltip {
    position: absolute;
    right: 66px;
    background: rgba(20,20,20,0.82);
    color: #fff;
    padding: 6px 11px;
    border-radius: 6px;
    font-size: 0.78rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s;
    font-weight: 500;
}

.fab-btn:hover .fab-tooltip { opacity: 1; }

/* ================================================
   COOKIE CONSENT BANNER
   ================================================ */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1a2e44;
    color: #f0f0f0;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.28);
    flex-wrap: wrap;
    animation: cookie-slide-up 0.4s ease;
}

@keyframes cookie-slide-up {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}

.cookie-banner p {
    margin: 0;
    font-size: 0.87rem;
    line-height: 1.55;
    flex: 1;
    min-width: 220px;
}

.cookie-banner a { color: #17b978; text-decoration: underline; }

.cookie-btns { display: flex; gap: 10px; flex-shrink: 0; }

.cookie-btn {
    padding: 9px 20px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 0.87rem;
    font-weight: 600;
    font-family: inherit;
    transition: opacity 0.15s;
}

.cookie-btn:hover { opacity: 0.85; }
.cookie-btn-accept { background: #17b978; color: #fff; }
.cookie-btn-reject {
    background: transparent;
    color: #f0f0f0;
    border: 1.5px solid rgba(255,255,255,0.35);
}

/* ================================================
   FAQ ACCORDION
   ================================================ */

.faq-item {
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
    background: #fff;
}

.faq-item h3 {
    margin: 0;
    padding: 15px 50px 15px 18px;
    cursor: pointer;
    position: relative;
    font-size: 0.97rem;
    font-weight: 600;
    user-select: none;
    transition: background 0.15s;
    color: #1e3d59;
}

.faq-item h3:hover { background: #f7f9fc; }

.faq-item h3::after {
    content: '+';
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.4rem;
    font-weight: 300;
    color: #17b978;
    line-height: 1;
}

.faq-item.open h3 { background: #f7f9fc; }
.faq-item.open h3::after { content: '\2212'; }

.faq-item p {
    margin: 0;
    padding: 0 18px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    font-size: 0.93rem;
    color: #555;
    line-height: 1.7;
}

.faq-item.open p {
    max-height: 400px;
    padding: 0 18px 16px;
}

/* ================================================
   RESPONSIVE
   ================================================ */

@media (max-width: 520px) {
    .cookie-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 14px 16px;
    }
    .cookie-btns { width: 100%; }
    .cookie-btn { flex: 1; text-align: center; }
    .fab-container { bottom: 18px; right: 14px; }
    .fab-btn { width: 50px; height: 50px; font-size: 1.3rem; }
    .fab-container.with-banner { bottom: 130px; }
}

/* Botones del aviso de cookies con la misma importancia (criterio AEPD) */
.cookie-btn-equal { background: #ffffff; color: #1a2e44; min-width: 120px; }
