
        * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --gris: #434444;
    --azul: #095374;
    --verde: #b0bf3e;
    --verde-claro: #d0da89;
    --blanco: #e7ecea;
    --font-principal: 'Poppins', sans-serif;
}

/* ===== CONTENEDOR PRINCIPAL DEL FAB ===== */
.fab-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

/* ===== BOTÓN PRINCIPAL (SOBRE / X) ===== */
.fab-main {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--azul) 0%, #0a6b9e 100%);
    color: white;
    border: 3px solid var(--verde-claro);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    box-shadow: 0 10px 25px rgba(9, 83, 116, 0.45);
    transition: all 0.35s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    order: 2;
    position: relative;
}

.fab-main:hover {
    transform: scale(1.08);
    box-shadow: 0 15px 35px rgba(9, 83, 116, 0.6);
}

.fab-main.activo {
    background: linear-gradient(135deg, var(--verde) 0%, var(--verde-claro) 100%);
    color: var(--azul);
    border-color: var(--azul);
    transform: rotate(90deg);
}

.fab-main.activo:hover {
    transform: rotate(90deg) scale(1.08);
}

/* Pulso decorativo cuando está cerrado */
.fab-main:not(.activo)::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid var(--verde);
    animation: fabPulse 2s ease-in-out infinite;
    opacity: 0.6;
    pointer-events: none;
}

@keyframes fabPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.15);
        opacity: 0;
    }
}

/* ===== MENÚ DESPLEGABLE (ABRE HACIA ARRIBA) ===== */
.fab-menu {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-end;
    order: 1;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.85);
    transform-origin: bottom right;
    transition: all 0.35s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    pointer-events: none;
}

.fab-container.active .fab-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* ===== CADA OPCIÓN DEL MENÚ ===== */
.fab-item {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: transform 0.25s ease;
    text-decoration: none;
}

.fab-item:hover {
    transform: translateX(-6px);
}

.fab-item .fab-label {
    background: white;
    color: var(--azul);
    padding: 8px 16px;
    border-radius: 30px;
    font-family: var(--font-principal);
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(9, 83, 116, 0.2);
    border: 2px solid var(--verde-claro);
    white-space: nowrap;
    transition: all 0.25s ease;
}

.fab-item:hover .fab-label {
    background: var(--azul);
    color: white;
    border-color: var(--verde);
}

.fab-item .fab-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    border: 2px solid white;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.fab-item:hover .fab-icon {
    transform: scale(1.1);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.35);
}

/* Colores por opción */
.fab-item[data-opcion="whatsapp"] .fab-icon {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
}

.fab-item[data-opcion="correo"] .fab-icon {
    background: linear-gradient(135deg, var(--azul) 0%, #0a6b9e 100%);
}

.fab-item[data-opcion="formulario"] .fab-icon {
    background: linear-gradient(135deg, var(--verde) 0%, var(--verde-claro) 100%);
    color: var(--azul);
}

/* ===== ANIMACIÓN ESCALONADA DE APARICIÓN ===== */
.fab-container.active .fab-item:nth-child(1) {
    animation: fabItemIn 0.4s ease 0.05s both;
}
.fab-container.active .fab-item:nth-child(2) {
    animation: fabItemIn 0.4s ease 0.12s both;
}
.fab-container.active .fab-item:nth-child(3) {
    animation: fabItemIn 0.4s ease 0.19s both;
}

@keyframes fabItemIn {
    from {
        opacity: 0;
        transform: translateY(15px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .fab-container {
        bottom: 20px;
        right: 15px;
        gap: 10px;
    }

    .fab-main {
        width: 58px;
        height: 58px;
        font-size: 1.5rem;
    }

    .fab-item .fab-icon {
        width: 46px;
        height: 46px;
        font-size: 1.15rem;
    }

    .fab-item .fab-label {
        font-size: 0.78rem;
        padding: 6px 12px;
    }
}

@media (max-width: 480px) {
    .fab-container {
        bottom: 15px;
        right: 12px;
    }

    .fab-main {
        width: 54px;
        height: 54px;
        font-size: 1.4rem;
    }

    .fab-item .fab-icon {
        width: 42px;
        height: 42px;
        font-size: 1.05rem;
    }

    .fab-item .fab-label {
        font-size: 0.72rem;
        padding: 5px 10px;
    }
}
