/* ============================================
   FONDO GENERAL (DEGRADADO ESTILO CARNES ESTRADA)
============================================ */
body,
.wrapper,
.content-wrapper {
    /* Primero definimos un fondo negro/muy oscuro */
    background-color: #1a1a1a !important;

    /* Luego cargamos la imagen con baja opacidad */
    background-image: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.9)),
        url('ruta/a/tu/textura-ladrillo.jpg') !important;

    background-size: cover !important;
    background-position: center !important;
    background-attachment: fixed !important;
    /* Para que el fondo no se mueva al hacer scroll */

    min-height: 100vh !important;
}

/* IMPORTANTE: Con un fondo oscuro, el texto 'Selecciona Como sera tu pedido' 
   necesitará cambiar a blanco en tu CSS */
.wrapper h3,
.content-wrapper h3 {
    color: white !important;
}

/* ============================================
   HEADER (mantener AdminLTE pero cálido)
============================================ */
.main-header,
.main-header .logo,
.main-header .navbar {
    background: #C62828 !important;
    /* café madera */
    border-bottom: none !important;
}



/* ============================================
   RESETEAR ESTILOS DE ADMINLTE (OBLIGATORIO)
============================================ */
.opcion-card.box,
.box.opcion-card {
    border: none !important;
    border-top: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
}



/* ============================================
   TARJETAS (ESTILO PREMIUM RÚSTICO)
============================================ */
.opcion-card {
    background: #ffffff !important;
    border-radius: 20px !important;
    cursor: pointer;
    transition: all 0.35s ease !important;
    padding: 35px 15px !important;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;

    /* NUEVA SOMBRA MÁS MODERNA */
    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.35),
        0 5px 10px rgba(0, 0, 0, 0.2) !important;

    backdrop-filter: blur(5px);
}

.opcion-card:hover {
    transform: translateY(-8px) scale(1.02) !important;

    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.5),
        0 10px 20px rgba(0, 0, 0, 0.3) !important;
}

/* ============================================
   TARJETA SELECCIONADA (ROJO CARNE PREMIUM)
============================================ */
.opcion-card.selected {
    background: #C62828 !important;
    border: 2px solid rgba(255, 255, 255, 0.6) !important;

    transform: scale(1.05) !important;

    box-shadow:
        0 0 30px rgba(198, 40, 40, 0.6),
        0 10px 30px rgba(0, 0, 0, 0.6) !important;
}

/* Colores internos cuando está seleccionado */
.opcion-card.selected .opcion-icon,
.opcion-card.selected h4,
.opcion-card.selected p {
    color: #fff !important;
}


/* ============================================
   ICONOS
============================================ */
.opcion-icon {
    font-size: 52px !important;
    margin-bottom: 15px !important;
    color: #C62828 !important;
    transition: 0.3s;
}

.opcion-card:hover .opcion-icon {
    transform: scale(1.15);
}



/* ============================================
   BOTÓN "USAR MI UBICACIÓN"
============================================ */
.opcion-ubicacion {
    background: #B53024 !important;
    /* rojo vino */
    border: 1px solid #8B2F23 !important;
    color: #fff !important;
    border-radius: 12px !important;
    padding: 15px !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    transition: 0.3s ease !important;
}

.opcion-ubicacion:hover {
    background: #8B2F23 !important;
    /* rojo oscuro */
}

.opcion-ubicacion:disabled {
    opacity: 0.4 !important;
    cursor: not-allowed !important;
}



/* ============================================
   ANIMACIÓN DE LOGO
============================================ */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.07);
        opacity: 0.9;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}



/* ============================================
   LOADER
============================================ */
.loader {
    border: 4px solid #e3e3e3;
    border-top: 4px solid #B53024;
    /* rojo vino */
    border-radius: 50%;
    width: 35px;
    height: 35px;
    margin: 0 auto;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}



/* ============================================
   CARRITO (menú)
============================================ */
.carrito-container {
    position: relative;
    display: inline-block;
}

.carrito-icon {
    font-size: 32px !important;
    color: #fff !important;
}

.carrito-badge {
    position: absolute;
    top: -10px;
    right: -12px;
    background: #B53024;
    /* rojo vino */
    color: white;
    font-size: 14px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 50%;
    min-width: 22px;
    text-align: center;
}



/* ============================================
   RESPONSIVE (versión móvil)
============================================ */
@media (max-width: 768px) {

    .opcion-card {
        padding: 25px 20px !important;
        margin-bottom: 25px !important;
    }

    h2 {
        font-size: 1.8rem !important;
        padding: 0 15px !important;
        color: #5A351C !important;
        /* café */
    }
}


/* Evitar scroll en Loader */
.swal2-html-container {
    overflow-y: hidden !important;
}