﻿
/* ──────────────────────────────── */
/* 🔄 Reset y base tipográfica      */
/* ──────────────────────────────── */
html, body, form {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    overflow-y: auto;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}
.grilla-imagenes {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}
.mensaje-contacto {
    background-color: #eef6ff;
    border-left: 4px solid #3399cc;
    padding: 15px;
    margin-bottom: 20px;
    font-size: 16px;
    color: #333;
}

.img-financiera {
    width: 350px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 0 8px rgba(0,0,0,0.2);
}


/*TURISMO*/
.encabezado-turismo {
    text-align: center;
    margin-bottom: 30px;
}

.titulo-turismo {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.subtitulo-turismo {
    font-size: 16px;
    color: #666;
}

.galeria-turismo {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
}

.item-galeria {
    width: 350px;
    text-align: center;
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

.img-galeria {
    width: 100%;
    height: auto;
    border-radius: 6px;
}

.boton-vermas {
    margin-top: 10px;
}



/* ──────────────────────────────── */
/* 📐 Layout general                */
/* ──────────────────────────────── */
.main-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.contenido {
    flex: 1;
}

.sidebar-left,
.sidebar-right {
    width: 200px;
    flex-shrink: 0;
}

.content {
    flex: 1;
    min-width: 0;
}

/* ──────────────────────────────── */
/* 🧱 Layout administrativo         */
/* ──────────────────────────────── */
.admin-layout {
    display: flex;
    flex-direction: row;
    height: calc(100vh - 60px);
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.admin-left,
.admin-right {
    flex: 0 0 220px;
    background-color: #e3f2fd;
    padding: 20px;
    overflow-y: auto;
    border-left: 1px solid #ccc;
}

.admin-left {
    border-right: 1px solid #ccc;
}

.admin-center {
    flex: 1;
    min-width: 0;
    background-color: #ffffff;
    padding: 30px;
    overflow-y: auto;
}

/* ──────────────────────────────── */
/* 🌳 TreeView personalizado        */
/* ──────────────────────────────── */
.TreeView-container {
    background-color: transparent;
    border: none;
    font-size: 14px;
}

    .TreeView-container ul {
        list-style-type: none;
        padding-left: 10px;
    }

    .TreeView-container li {
        margin-bottom: 5px;
    }

/* ──────────────────────────────── */
/* 📊 Panel derecho: KPIs y resumen */
/* ──────────────────────────────── */
.kpi-container {
    margin-bottom: 15px;
}

.kpi {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

/* ──────────────────────────────── */
/* 🧾 Encabezado de pantalla        */
/* ──────────────────────────────── */
.encabezado {
    padding: 10px;
    background-color: #f2f2f2;
    border-bottom: 1px solid #ccc;
}

.titulo {
    font-size: 20px;
    font-weight: bold;
}

.usuario,
.rol {
    margin-left: 15px;
    font-style: italic;
}

/* ──────────────────────────────── */
/* 🧩 Formularios y campos          */
/* ──────────────────────────────── */
.panel-form {
    margin-bottom: 40px;
}

.panel-botones {
    margin-top: 20px;
    margin-bottom: 40px;
}

.textBoxGrande {
    width: 100%;
    font-size: 16px;
    padding: 8px;
    margin-bottom: 10px;
}

.labelGrande {
    font-size: 14px;
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

/* ──────────────────────────────── */
/* 📋 Tablas y cards                */
/* ──────────────────────────────── */
.table {
    width: 90%;
    margin-top: 40px;
}

.card {
    width: 80%;
    max-width: 1000px;
    margin: 30px auto;
}

.contenedor-principal {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: auto;
    gap: 10px;
    padding: 0;
    overflow: visible;
    overflow-y:auto;
}

/*CONTROLES DE PAGINACION*/
/***************************/
.paginacion-renglon {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 12px 20px;
    background-color: #f8f9fa;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    margin-top: 20px;
    box-sizing: border-box;
}

.btn-paginacion {
    padding: 6px 14px;
    font-size: 14px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

    .btn-paginacion:hover {
        background-color: #0056b3;
    }

.info-pagina {
    font-size: 14px;
    color: #333;
    font-weight: 500;
    text-align: center;
    flex-grow: 1;
}



/* Columnas laterales más compactas */
.columna-izquierda {
    flex: 0 0 260px; /* antes 220px */
    background-color: #f8f9fa;
    padding: 10px;
    overflow-y: auto;
}
.columna-derecha {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 0 0 260px;
    background-color: #f8f9fa;
    padding: 10px;
    overflow-y: auto;
}

.panel-derecho {
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 0 6px rgba(0,0,0,0.1);
}
.titulo-carrito {
    font-size: 20px;
    font-weight: 700;
    color: #007bff;
    margin-bottom: 12px;
    text-align: center;
    border-bottom: 2px solid #90caf9;
    padding-bottom: 6px;
}

.img-financiera {
    width: 100%;
    max-width: 260px;
    display: block;
    margin: 0 auto 20px auto;
    border-radius: 8px;
    box-shadow: 0 0 8px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

    /* Título de sección izquierda */
    .columna-izquierda h4 {
        font-size: 16px;
        font-weight: 600;
        color: #0d47a1;
        margin-bottom: 12px;
        border-bottom: 1px solid #90caf9;
        padding-bottom: 4px;
    }

/* Sección central más amplia */
.columna-central {
    flex: 1;
    min-width: 0;
    padding: 20px;
    background-color: #ffffff;
    overflow-y: visible;
    height: auto;
}

/* ──────────────────────────────── */
/* 🛍️ Grid de productos optimizado */
/* ──────────────────────────────── */
.productos-container {
    width: 100%;
    padding: 0;
    margin: 0;
    background-color: transparent;
    border: none;
}

/* ──────────────────────────────── */
/* 🛍️ PRODUCT CARDS MODERNIZADAS   */
/* ──────────────────────────────── */

.productos-scroll {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 26px;
    padding: 20px;
    background-color: #F8F5EF;
    border-radius: 12px;
}


/* Card */
.producto-car {
    background: #ffffff;
    border-radius: 14px;
    padding: 10px;
    width: 200px;
    text-align: left;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    transition: transform .25s ease, box-shadow .25s ease;
    cursor: pointer;
}

.producto-car:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.18);
}

/* Imagen con zoom suave */
.card-img {
    width: 100%;
    height: 200px;
    border-radius: 12px;
    object-fit: cover;
    transition: transform .35s ease;
}

.producto-car:hover .card-img {
    transform: scale(1.06);
}

/* Información */
.card-info {
    padding-top: 10px;
}

.card-titulo {
    font-size: 16px;
    font-weight: 600;
    color: #222;
    margin-bottom: 6px;
    min-height: 40px;
}

.card-precio {
    font-size: 22px;
    font-weight: 700;
    color: #6E8488;
    margin-bottom: 8px;
}

/* Botón moderno */
.card-btn {
    background: #3483fa;
    color: #fff;
    border: none;
    padding: 10px 14px;
    border-radius: 8px;
    font-weight: 600;
    width: 100%;
    transition: background .2s ease;
}

    .card-btn:hover {
        background: #1f6fe0;
    }




.card-img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    align-items:center;
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 12px;
}

.card-info {
    text-align: center;
}

.card-titulo {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 6px;
    color: #333;
}

.card-precio {
    font-size: 20px;
    color: #6E8488;
    font-weight: bold;
    margin-bottom: 10px;
}

.card-btn {
    background-color: #87AEA5;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
}

    .card-btn:hover {
        background-color: #004999;
    }


    /*MODAL DE CADA PRODUCTO*/

.oculto {
    display: none !important;
}









.modal-botones {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
}

.btn-agregar {
    background-color: #007bff;
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    cursor: pointer;
    min-width: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

    .btn-agregar svg {
        width: 28px;
        height: 28px;
        fill: white;
    }

    .btn-agregar:hover {
        background-color: #0056b3;
    }
        .btn-agregar:hover svg {
            fill: #e0e0e0;
        }


 .btn-comprar {
    background-color: #28a745;
    color: white;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 5px;
    min-width: 160px;
    border: none;
    cursor: pointer;
}


.btn-comprar:hover {
    background-color: #218838;
}

.btn-cerrar {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
}
.cartel-login {
    background-color: #f8f9fa; /* gris claro, no blanco puro */
    border: 1px solid #ccc;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    max-width: 320px;
    margin: 40px auto;
    box-shadow: 0 0 12px rgba(0,0,0,0.1);
    font-family: 'Segoe UI', sans-serif;
}

    .cartel-login p {
        font-size: 16px;
        color: #444;
        margin: 12px 0;
    }

    .cartel-login .img-advertencia {
        width: 64px;
        height: 64px;
        margin-bottom: 10px;
    }

    .cartel-login button {
        background-color: #007bff;
        color: white;
        border: none;
        padding: 10px 16px;
        border-radius: 6px;
        cursor: pointer;
        font-size: 15px;
        transition: background-color 0.3s ease;
    }

        .cartel-login button:hover {
            background-color: #0056b3;
        }


.modal-producto {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal-contenido-producto {
    background-color: #fff;
    padding: 24px;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 0 12px rgba(0,0,0,0.2);
    text-align: center;
    font-family: 'Segoe UI', sans-serif;
}

.modal-titulo {
    font-size: 20px;
    margin-bottom: 12px;
}

.modal-descripcion {
    font-size: 16px;
    color: #555;
    margin-bottom: 12px;
}

.galeria-imagenes {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    margin: 20px 0;
    padding-bottom: 10px;
}

    .galeria-imagenes img {
        height: 120px;
        border-radius: 8px;
        border: 1px solid #ccc;
        flex-shrink: 0;
    }

.modal-botones {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.btn-agregar, .btn-cancelar {
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
}

.btn-agregar {
    background-color: #28a745;
    color: white;
}

    .btn-agregar:hover {
        background-color: #218838;
    }

.btn-cancelar {
    background-color: #dc3545;
    color: white;
}

    .btn-cancelar:hover {
        background-color: #c82333;
    }

.galeria-imagenes {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    margin: 20px 0;
    padding-bottom: 10px;
    justify-content: center;
}

.imagen-galeria {
    height: 120px;
    border-radius: 8px;
    border: 1px solid #ccc;
    flex-shrink: 0;
    transition: transform 0.3s ease;
    cursor: pointer;
}

    .imagen-galeria:hover {
        transform: scale(1.05);
    }


.img-advertencia {
    width: 64px;
    height: 64px;
    margin-bottom: 10px;
}

.btn-cerrar-modal {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    transition: background-color 0.3s ease;
}

    .btn-cerrar-modal:hover {
        background-color: #0056b3;
    }


/* ──────────────────────────────── */
/* 🎞️ Carrusel de publicidad       */
/* ──────────────────────────────── */
/*.publicidad-item {
    display: inline-block;
    margin: 0 50px;
    vertical-align: middle;
}

.publicidad-carrusel {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.publicidad-track {
    display: inline-block;
    animation: scrollPublicidad 20s linear infinite;
}

@keyframes scrollPublicidad {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}*/

/* ──────────────────────────────── */
/* 🧾 Pie de página institucional   */
/* ──────────────────────────────── */
.footer {
    background-color: #0055a5;
    padding: 20px 20px;
    color: white;
    font-family: 'Segoe UI', sans-serif;
    clear: both;
    position:relative;
    margin-top:40px;
    
}

.titulo-sucursales {
    text-align: center;
    margin-bottom: 20px;
}

    .titulo-sucursales h3 {
        font-size: 30px;
        color: #ffffff;
        border-bottom: 2px solid #ffffff;
        display: inline-block;
        padding-bottom: 10px;
    }

.barra-sucursales {
    display: flex;
    justify-content: center;
    gap: 80px;
    flex-wrap: wrap;
    background-color: transparent;
}

    .barra-sucursales .sucursal {
        width: 360px;
        background-color: #ffffff;
        color: #333;
        padding: 20px;
        border-radius: 10px;
        box-shadow: 0 0 8px rgba(0,0,0,0.1);
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        transition: transform 0.2s ease;
    }

        .barra-sucursales .sucursal:hover {
            transform: scale(1.05);
        }

        .barra-sucursales .sucursal img {
            width: 100%;
            border-radius: 10px;
            margin-bottom: 15px;
            box-shadow: 0 0 10px rgba(0,0,0,0.4);
        }

        .barra-sucursales .sucursal h4 {
            font-size: 20px;
            margin-bottom: 10px;
            color: #002b5c;
        }

        .barra-sucursales .sucursal p {
            font-size: 16px;
            margin: 4px 0;
            color: #555;
        }

        .barra-sucursales .sucursal .info {
            font-size: 14px;
            color: #333;
        }

/* ──────────────────────────────── */
/* 📱 Responsive                    */
/* ──────────────────────────────── */
@media screen and (max-width: 1024px) {
    .admin-layout {
        flex-direction: column;
        height: auto;
    }

    .admin-left,
    .admin-right,
    .admin-center {
        width: 100%;
        padding: 20px;
        border: none;
        overflow-y: visible;
    }

    .barra-sucursales {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

        .barra-sucursales .sucursal {
            width: 90%;
        }

    .contenedor-principal {
        flex-direction: column;
        height: auto;
    }

    .columna-izquierda,
    .columna-derecha {
        
        width: 100%;
        padding: 10px;
        overflow-y: visible;
    }

    .columna-central {
        height: auto;
        flex-direction:column;
        width: 100%;
        min-height: 400px;
        padding: 20px;
        overflow: visible;
    }

    .productos-scroll {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
        padding: 20px;
        background-color: transparent;
        border: none;
    }

    }

    .card-producto {
        background: #fff;
        padding: 10px;
        margin: 10px;
        display: inline-block;
        vertical-align: top;
        width: 220px;
        text-align: center;
    }

        .card-producto img {
            width: 150px;
            height: 150px;
        }

    .card-info {
        margin-top: 10px;
    }

    .card-titulo {
        font-size: 1rem;
        font-weight: bold;
        margin-bottom: 5px;
    }

    .card-precio {
        color: #333;
        font-size: 0.95rem;
        margin-bottom: 10px;
    }

    .card-btn {
        background-color: #007bff;
        color: white;
        border: none;
        padding: 6px 10px;
        border-radius: 4px;
        cursor: pointer;
        font-size: 0.85rem;
    }
    
    
    /* 🧩 Modal fondo */
    .modal-producto {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.6);
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 9999;
    }

      

    /* 🧱 Contenido del modal */
    .modal-contenido {
        background-color: white;
        padding: 20px;
        border-radius: 8px;
        max-width: 400px;
        width: 90%;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
        text-align: center;
        
    }
    .modal-producto {
        display: none !important;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 9999;
        background-color: rgba(0, 0, 0, 0.5);
        justify-content: center;
        align-items: center;
    }

        .modal-producto.activo {
            display: flex !important;
        }

    .modal-contenido.advertencia {
        text-align: center;
        padding: 24px;
        max-width: 280px;
        border: 2px solid #ffc107;
        background-color: #fff8e1;
        border-radius: 10px;
        box-shadow: 0 0 12px rgba(0, 0, 0, 0.2);
    }

    .img-advertencia {
        width: 80px;
        height: auto;
        margin: 0 auto 12px auto;
        display: block;
        object-fit: contain;
        opacity: 0.9;
    }

    .btn-cerrar-modal {
        margin-top: 16px;
        padding: 8px 16px;
        background-color: #e0e0e0;
        border: none;
        border-radius: 6px;
        cursor: pointer;
        font-weight: bold;
        transition: background-color 0.3s;
    }

        .btn-cerrar-modal:hover {
            background-color: #d5d5d5;
        }

    .img-modal-producto {
        max-width: 120px;
        max-height: 120px;
        margin: 10px auto;
        display: block;
        border-radius: 6px;
        box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    }

    .sin-resultados {
        text-align: center;
        font-size: 16px;
        color: #666;
        margin-top: 20px;
        font-style: italic;
    }

    .modal-contenido.confirmacion {
        text-align: center;
        padding: 24px;
        max-width: 400px;
        border: 2px solid #007bff;
        background-color: #f0f8ff;
        border-radius: 10px;
        box-shadow: 0 0 12px rgba(0,0,0,0.2);
    }

    .formas-pago {
        list-style: none;
        padding: 0;
        margin: 12px 0;
        font-size: 14px;
        text-align: left;
    }

        .formas-pago li {
            margin-bottom: 6px;
            padding-left: 20px;
            position: relative;
        }

            .formas-pago li::before {
                content: "✔";
                position: absolute;
                left: 0;
                color: #28a745;
            }
    
            #carritoIcono.agregado {
        animation: pulso 0.6s ease;
    }

    @keyframes pulso {
        0% {
            transform: scale(1);
        }

        50% {
            transform: scale(1.3);
        }

        100% {
            transform: scale(1);
        }
    }





    .img-thumbnail {
        transition: transform 0.2s ease;
    }

        .img-thumbnail:hover {
            transform: scale(1.1);
            cursor: pointer;
        }

    .galeria-horizontal {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 10px 0;
        gap: 10px;
    }

    /* 🧾 Botones */
    .modal-botones {
        margin-top: 20px;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .modal-botones button {
        padding: 10px;
        border: none;
        background-color: #007bff;
        color: white;
        border-radius: 4px;
        cursor: pointer;
        font-size: 16px;
    }






    /* ❌ Botón de cierre flotante */
    .btn-cerrar {
        position: absolute;
        top: 10px;
        right: 15px;
        font-size: 24px;
        background: none;
        border: none;
        color: white;
        cursor: pointer;
    }

    /* 📱 Responsive para pantallas pequeñas */
    @media (max-width: 480px) {
        .modal-contenido {
            width: 95%;
            padding: 15px;
        }

        .modal-botones button {
            font-size: 14px;
            padding: 8px;
        }
    }
   




}