:root {
    --dark: #212121;
    --darker: #111111;
    --semidark: #2c2c2c;
    --lightgray: #e8e8e8;
    --unit: 10px;
}


/* Navbar */
.navbar {
    background-color: #28A746FF;
    transition: background-color 0.3s, padding 0.3s;
    padding: 10px 20px;
}

/* Contenedor principal */
.sucursal-container {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    flex-wrap: wrap;
    gap: 20px;
}

/* Panel izquierdo */
.sucursal-panel-left {
    position: relative;
    width: 40%;
    padding: 20px;
    background-color: var(--darker);
    text-align: center;
    border-radius: 40px;
    box-shadow: 0 10px 50px rgba(2, 2, 2, 0.8);
    overflow: hidden;
    z-index: 1;
}

.sucursal-panel-left::before,
.sucursal-panel-left::after {
    content: "";
    position: absolute;
    z-index: 0;
    pointer-events: none;
}

.sucursal-panel-left::before {
    width: 120%;
    height: 20%;
    top: 40%;
    left: -10%;
    background: linear-gradient(144deg, #e9c46a, #28A746FF 50%, #f4a261);
    animation: keyframes-floating-light 2.5s infinite ease-in-out;
    filter: blur(20px);
}

.sucursal-panel-left::after {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: linear-gradient(144deg, #e9c46a, #28A746FF 50%, #f4a261);
    animation: keyframes-intro 1s ease-in forwards;
    filter: blur(20px);
}

.sucursal-panel-left img {
    width: 100%;
    max-width: 300px;
    border-radius: 10px;
    z-index: 2;
    position: relative;
}

/* Panel derecho */
.sucursal-panel-right {
    width: 55%;
    padding: 20px;
}

/* Mapa */
.map-container {
    width: 100%;
    height: 300px;
    background-color: #e0e0e0;
    border-radius: 20px;
    overflow: hidden;
}

/* Botones de entrega */
.delivery-buttons {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.delivery-button {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    transition: transform 0.2s;
    background-color: #fff;
}

.delivery-button img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.delivery-button:hover {
    transform: scale(1.1);
}

/* Animaciones */
.image {
    width: 100%;
    height: auto;
    animation: keyframes-floating-img 10s ease-in-out infinite;
}

@keyframes keyframes-floating-light {
    0% {
        transform: rotate(-5deg) translateY(-5%);
        opacity: 0.5;
    }

    50% {
        transform: rotate(5deg) translateY(5%);
        opacity: 1;
    }

    100% {
        transform: rotate(-5deg) translateY(-5%);
        opacity: 0.5;
    }
}

@keyframes keyframes-floating-img {
    0% {
        transform: translate(-2%, 2%) scaleY(0.95) rotate(-5deg);
    }

    50% {
        transform: translate(2%, -2%) scaleY(1) rotate(5deg);
    }

    100% {
        transform: translate(-2%, 2%) scaleY(0.95) rotate(-5deg);
    }
}

@keyframes keyframes-intro {
    100% {
        transform: translate(-100%);
        opacity: 0;
    }
}

/* MEDIA QUERY para dispositivos móviles */
@media (max-width: 768px) {
    .sucursal-container {
        flex-direction: column;
        align-items: center;
        padding: 10px;
    }

    .sucursal-panel-left,
    .sucursal-panel-right {
        width: 100%;
        padding: 15px;
    }

    .map-container {
        height: 200px;
    }

    .delivery-button {
        width: 70px;
        height: 70px;
    }
}