/* Explain: Styling for interactive elements on the Google Maps page. */
/* ============================================================
   GOOGLE MAPS 360° — Página especializada
   ============================================================ */

/* ---------- Pestañas de la ficha interactiva ---------- */
.ficha-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

@media (min-width: 480px) {
    .ficha-tabs {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.ficha-tab {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.7rem 0.85rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.82);
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    transition: transform 0.25s ease, border-color 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.ficha-tab i {
    color: var(--turquoise-color);
}

.ficha-tab:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(21, 214, 209, 0.5);
}

.ficha-tab.is-active {
    background: rgba(21, 214, 209, 0.16);
    border-color: var(--turquoise-color);
    color: #ffffff;
    transform: translateY(-2px);
}

.ficha-panel {
    display: none;
}

.ficha-panel.is-active {
    display: block;
    animation: fichaFade 0.35s ease;
}

@keyframes fichaFade {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.ficha-panel h3 {
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 800;
}

.ficha-panel p {
    margin-top: 0.5rem;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
}

/* ---------- Comparador deslizable ---------- */
.ba-compare {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: var(--shadow-lg);
    user-select: none;
}

.ba-compare img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ba-img-after {
    z-index: 1;
}

.ba-img-before {
    z-index: 2;
    -webkit-clip-path: inset(0 50% 0 0);
    clip-path: inset(0 50% 0 0);
}

.ba-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    z-index: 4;
    width: 3px;
    background: var(--accent-color);
    transform: translateX(-50%);
    pointer-events: none;
}

.ba-handle::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 46px;
    height: 46px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    border: 3px solid var(--accent-color);
    transform: translate(-50%, -50%);
}

.ba-slider {
    position: absolute;
    inset: 0;
    z-index: 5;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: ew-resize;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    touch-action: pan-y;
}

.ba-label {
    position: absolute;
    top: 1rem;
    z-index: 3;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    pointer-events: none;
}

.ba-label--before {
    left: 1rem;
    background: rgba(15, 23, 42, 0.85);
    color: #ffffff;
}

.ba-label--after {
    right: 1rem;
    background: var(--whatsapp-color);
    color: #06301a;
}

