@charset "utf-8";
/* =========================
   BASE
========================= */
body {
    position: relative;
    min-height: 100vh;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background:
linear-gradient(
rgba(20,60,120,0.8),
rgba(0,0,0,0.55)
),
url('../imagenes/fondo.jpg');

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    z-index: -1;
}

/* =========================
   NAVBAR
========================= */
.navbar-collapse.in {
    display: block !important;
}

.navbar-collapse.collapse {
    display: none !important;
}

.navbar-collapse.collapse.in {
    display: block !important;
}

@media (min-width: 768px) {
    .navbar-collapse.collapse {
        display: block !important;
        height: auto !important;
        padding-bottom: 0;
        overflow: visible !important;
    }
}

.navbar-mag {
    background: rgba(194, 191, 191, 0.95);
    border: none;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.logo-mag img {
    height: 35px;
    transition: 0.3s;
}

.logo-mag img:hover {
    transform: scale(1.05);
}

.menu-mag li a {
    color: #333 !important;
    font-weight: 600;
    transition: 0.3s;
}

.menu-mag li a:hover {
    color: #ff8c3a !important;
}

.menu-destacado a {
    background: #ff8c3a;
    color: #fff !important;
    border-radius: 6px;
    padding: 8px 15px !important;
    margin-top: 7px;
}

.menu-destacado a:hover {
    background: #edebe9 !important;
    color: white !important;
}

.espacio-navbar {
    height: 90px;
}

/* =========================
   FORMULARIOS
========================= */
.mayuscula { text-transform: uppercase; }

.fuente {
    font-family: "Times New Roman", Times, serif;
    font-size: 20px;
}

.msg {
    color: #900;
    font-size: 15px;
}

/* REGISTRO OK */
#registro_ok {
    margin-top: 50px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0px 0px 20px rgba(0,0,0,0.2);
}

.normal {
    font-size: 20px;
    font-family: Arial, Helvetica, sans-serif;
    color: #000;
    margin-left: 20px;
}

/* =========================
   CONTACTO
========================= */
#form_mail {
    position: absolute;
    width: 500px;
    height: 600px;
    top: 200px;
    left: 50%;
    margin-left: -300px;
    z-index: 5;
}

#contacto {
    position: absolute;
    width: 500px;
    height: 600px;
    top: 200px;
    left: 0;
    z-index: 4;
}

.form-consulta {
    max-width: 500px;
    padding: 25px;
}

.campo-form {
    width: 100%;
    height: 36px;
    margin: 2px 0 6px;
    padding-left: 6px;
    border-radius: 3px;
    border: 0;
}

/* =========================
   PRODUCTOS / CATALOGO
========================= */
.cajaventas {
    position: relative;
    margin-bottom: 25px !important;
    float: left;
    width: 270px;
    text-align: center;
    background: #fff;
    border-radius: 12px;
    margin: 15px;
    padding: 15px;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow:hidden;
}
.cajaventas::before{
    content:"";
    position:absolute;

    top:0;
    left:0;

    width:100%;
    height:4px;

    background:linear-gradient(
        90deg,
        #6ec6ff,
        #ffffff,
        #6ec6ff
    );
}
.btn-success{
    background: linear-gradient(
        135deg,
        #25d366,
        #1fb655
    );
}
.cajaventas:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.imagen-producto {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #fff;
    border-radius: 10px 10px 0 0;
}

.imagen-producto img {
    max-width: 100%;
    max-height: 100%;
}

.titulo-producto_i {
    height: 40px;
    overflow: hidden;
    font-size: 14px;
    margin-top: 10px;
}

.precio-producto {
    font-size: 26px;
    color: #28a745;
    font-weight: bold;
    margin-bottom: 10px;
}

.comercio {
    color: #777;
    margin-bottom: 15px;
}

/* =========================
   TITULOS
========================= */
.titulo-principal {
    background: linear-gradient(
        90deg,
        #6ec6ff,
        #ffffff,
        #6ec6ff
    );

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    font-weight: 800;
    letter-spacing: 1px;

    text-shadow: 0 3px 10px rgba(0,0,0,.6);
}

.subtitulo {
    color: #f1f1f1;
    font-size: 18px;
    text-shadow: 0 2px 6px rgba(0,0,0,0.8);
}
.banner-mundial{
    background: linear-gradient(
        90deg,
        #6ec6ff,
        #ffffff,
        #6ec6ff
    );

    color:#003366;

    font-weight:700;

    text-align:center;

    padding:12px;

    border-radius:15px;

    margin-bottom:25px;

    box-shadow:0 5px 20px rgba(0,0,0,.15);
}
/* =========================
   LOGIN / CARDS
========================= */
.login-card,
.registro-card,
.producto-card,
.card-config {
    margin-top: 120px;
    background: rgba(255,255,255,0.95);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 12px 35px rgba(0,0,0,0.3);
}

.titulo-login,
.titulo-registro,
.titulo-producto-form,
.titulo-config {
    color: #ff8c3a;
    font-weight: 700;
    margin-bottom: 10px;
}

/* =========================
   BOTONES
========================= */
.botones-form,
.botones-config {
    margin-top: 30px;
}

.botones-form .btn,
.botones-config .btn {
    font-weight: bold;
    letter-spacing: 1px;
    transition: 0.3s;
}

.botones-form .btn:hover,
.botones-config .btn:hover {
    transform: scale(1.02);
}

/* =========================
   IMAGEN PRODUCTO DETALLE
========================= */
.img-producto {
    max-height: 350px;
    width: auto;
    border-radius: 10px;
}

.descripcion-producto {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

/* =========================
   BADGES / ESTADOS
========================= */
.badge-pagado { background-color: #28a745; }

.badge-pendiente {
    background-color: #ffc107;
    color: #000;
}

/* =========================
   BANNER
========================= */
#bannerMagus .item img {
    transition: transform 0.5s ease;
}

#bannerMagus .item:hover img {
    transform: scale(1.02);
}

@media (max-width: 768px) {
    #bannerMagus .item img {
        height: 200px !important;
    }
}
.saldo-info {
    background: linear-gradient(135deg, #1f2a44, #3a4f7a);
    color: #fff;
    border-radius: 12px;
    padding: 25px 30px;
    margin-bottom: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    position: relative;
    overflow: hidden;
}

/* efecto decorativo */
.saldo-info::after {
    content: "";
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

/* título */
.saldo-info h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
}

/* texto */
.saldo-info p {
    font-size: 15px;
    margin: 0;
    opacity: 0.9;
}

/* fecha destacada */
.saldo-info b {
    color: #00e676;
    font-size: 16px;
}
/* TABLA RESPONSIVE */
.tabla-responsive {
    width: 100%;
    overflow-x: auto;
}

.tabla-responsive table {
    min-width: 600px; /* evita que se rompa */
}

/* mejora visual en celular */
@media (max-width: 768px) {
    .tabla-responsive {
        border-radius: 10px;
    }
}
/* =========================
   TABLA → CARDS EN MOBILE
========================= */

@media (max-width: 768px) {

    .table thead {
        display: none; /* ocultamos encabezados */
    }

    .table, 
    .table tbody, 
    .table tr, 
    .table td {
        display: block;
        width: 100%;
    }

    .table tr {
        background: #fff;
        margin-bottom: 15px;
        padding: 10px;
        border-radius: 10px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }

    .table td {
        text-align: left;
        padding: 10px;
        position: relative;
        border: none;
        border-bottom: 1px solid #eee;
    }

    .table td:last-child {
        border-bottom: none;
    }

    /* etiqueta (Producto, Precio, etc) */
    .table td::before {
        content: attr(data-label);
        font-weight: bold;
        display: block;
        color: #888;
        margin-bottom: 3px;
        font-size: 12px;
    }

    /* imagen centrada */
    .table td[data-label="Imagen"] {
        text-align: left;
    }

    .table td[data-label="Imagen"] img {
        width: 80px;
    }

    /* botones más cómodos */
    .table td[data-label="Acciones"] a {
        display: inline-block;
        margin-right: 5px;
        margin-top: 5px;
    }
}
/* --- UTILIDADES DE ESPACIADO (Inspirado en Bootstrap 5) --- */

/* Márgenes Inferiores (Margin Bottom) */
.mb-1 { margin-bottom: 5px !important; }
.mb-2 { margin-bottom: 10px !important; }
.mb-3 { margin-bottom: 15px !important; }
.mb-4 { margin-bottom: 20px !important; }
.mb-5 { margin-bottom: 30px !important; }

/* Márgenes Superiores (Margin Top) */
.mt-1 { margin-top: 5px !important; }
.mt-2 { margin-top: 10px !important; }
.mt-3 { margin-top: 15px !important; }
.mt-4 { margin-top: 20px !important; }
.mt-5 { margin-top: 30px !important; }

/* Rellenos (Padding) */
.p-1 { padding: 5px !important; }
.p-2 { padding: 10px !important; }
.p-3 { padding: 15px !important; }

/* Utilidades para Celulares (Solo aplican en pantallas chicas) */
@media (max-width: 767px) {
    .mb-xs-1 { margin-bottom: 5px !important; }
    .mb-xs-2 { margin-bottom: 10px !important; }
    .mb-xs-3 { margin-bottom: 15px !important; }
    .text-center-xs { text-align: center !important; }
}

/* --- MEJORAS VISUALES PARA TARJETAS --- */
.sombra-suave {
    box-shadow: 0 4px 15px rgba(0,0,0,0.08) !important;
}
.redondeado {
    border-radius: 12px !important;
}
/* BADGE OFERTA (FIX PROFESIONAL) */
.badge-oferta {
    position: absolute;
    top: 10px;
    right: 10px;

    background: #e74c3c;
    color: #fff;

    font-size: 11px;
    font-weight: bold;

    padding: 5px 10px;
    border-radius: 20px;

    z-index: 10;

    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}
.btn-flyer-sm {
    background: linear-gradient(45deg, #E1306C, #F77737);
    color: white;
    border: none;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    transition: all 0.2s ease;
}

.btn-flyer-sm:hover {
    transform: scale(1.05);
}

.btn-flyer-sm:active {
    transform: scale(0.95);
}
.mas-productos-mundial{
    display:inline-block;

    padding:12px 25px;

    border-radius:30px;

    background:linear-gradient(
        90deg,
        #6ec6ff,
        #ffffff,
        #6ec6ff
    );

    color:#003366;

    font-size:18px;

    font-weight:800;

    box-shadow:0 5px 20px rgba(110,198,255,.4);

    animation:pulseMundial 2s infinite;
}
@keyframes pulseMundial{
    0%{
        transform:scale(1);
    }
    50%{
        transform:scale(1.04);
    }
    100%{
        transform:scale(1);
    }
}