/* Variables de colores y estilos */
/* Variables de colores y estilos */
:root {
    --color-blue: rgb(30, 110, 224);
    --color-green: rgb(52, 199, 89);
    --color-purple: rgb(86, 74, 222);
    --color-pink: rgb(176, 47, 194);
    --color-dark: rgb(25, 25, 35);
    --color-light: rgb(245, 245, 255);
    --border-radius: 16px;
    --transition: all 0.3s ease;
    --color-danger: rgb(231, 76, 60);
    --color-warning: rgb(255, 193, 7);
    --color-gray: #ccc;
    --light-gray: #e5e7eb;
    --medium-gray: #d1d5db;
}

/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    padding: 0;
    margin: 0;
    position: relative;
}

/* Variante con fondo de imagen (como en tu ejemplo) */
body.bg-image {
    color: #808080;
    background: url('https://picsum.photos/1920/1080') center/cover fixed no-repeat;
}

body.bg-image::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Variante con gradiente (como en nuestro diseño original) */
body.bg-gradient {
    color: #fff;
    background: linear-gradient(120deg, #1e6ee0, #564ade, #b02fc2);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Utilidades */
.text-center { text-align: center; }
.my-3 { margin-top: 1rem; margin-bottom: 1rem; }
.my-4 { margin-top: 1.5rem; margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 1.5rem; }
.w-100 { width: 100%; }

/* Layout principal */
.app-container {
    display: flex;
    width: 90%;
    min-height: 100vh;
}

/* Sidebar fijo */
.sidebar {
    width: 280px;
    background: rgba(25, 25, 35, 0.9);
    backdrop-filter: blur(12px);
    padding: 1.5rem 1rem;
    color: white;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.2);
    z-index: 10;
    overflow-y: auto;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
}

.sidebar-header {
    padding: 0 0.5rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1.5rem;
    text-align: center;
}

.sidebar-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}


.sidebar.collapsed {
    width: 80px;
}
.sidebar.collapsed .nav-link span {
    display: none;
}

.nav-menu {
    list-style: none;
    flex-grow: 1;
}

.nav-item {
    margin-bottom: 0.5rem;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 0.9rem 1rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}



.nav-link i {
    margin-right: 12px;
    width: 20px;
    text-align: center;
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-logout {
    display: block;
    width: 100%;
    padding: 0.8rem;
    background: rgba(231, 76, 60, 0.8);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    font-weight: 600;
}

.btn-logout:hover {
    background: rgba(231, 76, 60, 1);
}









/* Contenido principal */

/* Contenido principal */
.content {
    flex: 1;
    margin-left: 280px; /* Mismo ancho que el sidebar */
    padding: 2rem;
    width: calc(90% - 280px);
    min-height: 100vh;
}



.main-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
   
    backdrop-filter: blur(12px);
    border-radius: var(--border-radius);
   
    
}





/* Títulos */
.main-title {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Variantes de color para títulos según el fondo */
body.bg-gradient .main-title,
body.bg-gradient .subtitle {
    color: #ffffff;
}

body.bg-image .main-title,
body.bg-image .subtitle {
    color: #000000;
}

.subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Alertas */
.alert {
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.alert-danger {
    background-color: rgba(231, 76, 60, 0.8);
    color: white;
    border: 1px solid #c0392b;
}





/* Tarjetas de estadísticas */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}
/* Tarjetas de estadísticas - versión minimalista con bordes */
.stat-card {
    background: transparent !important;
    border: 2px solid;
    border-radius: var(--border-radius);
    padding: 1.2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    min-height: 120px;
    display: flex;
    flex-direction: column;
}

/* Efecto hover para las tarjetas */
.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Eliminar fondos de colores existentes */
.stat-card.bg-primary,
.stat-card.bg-success,
.stat-card.bg-warning,
.stat-card.bg-dark {
    background: transparent !important;
}

/* Colores de borde según el tipo de tarjeta */
.stat-card.bg-primary { border-color: var(--color-blue); }
.stat-card.bg-success { border-color: var(--color-green); }
.stat-card.bg-warning { border-color: #ffc107; }
.stat-card.bg-dark { border-color: var(--color-dark); }

/* Header de la tarjeta - posición superior izquierda */
.stat-card-header {
    font-size: 0.85rem;
    margin-bottom: 0;
    color: #666; /* Color gris para el texto */
    align-self: flex-start;
    font-weight: 500;
    position: relative;
    padding-left: 28px; /* Espacio para el icono */
}

/* Icono en esquina superior derecha */
.stat-card-header::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

/* Colores de fondo para los iconos */
.bg-primary .stat-card-header::before { 
    background-color: rgba(30, 110, 224, 0.15); 
}
.bg-success .stat-card-header::before { 
    background-color: rgba(52, 199, 89, 0.15); 
}
.bg-warning .stat-card-header::before { 
    background-color: rgba(255, 193, 7, 0.15); 
}
.bg-dark .stat-card-header::before { 
    background-color: rgba(25, 25, 35, 0.15); 
}

/* Cuerpo de la tarjeta - posición inferior izquierda */
.stat-card-body {
    font-size: 2rem;
    font-weight: 700;
    margin-top: auto; /* Empuja el contenido hacia abajo */
    align-self: flex-start;
    color: #333; /* Color más oscuro para los valores */
    line-height: 1.2;
}

/* Ajustar colores según el tema de fondo */
body.bg-gradient .stat-card-body {
    color: #fff;
}

body.bg-image .stat-card-body {
    color: #000;
}










/* Botones */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(45deg, var(--color-pink), rgba(186, 57, 204, 0.9));
    color: white;
    box-shadow: 0 4px 15px rgba(176, 47, 194, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(45deg, rgba(186, 57, 204, 0.95), var(--color-pink));
    box-shadow: 0 6px 20px rgba(176, 47, 194, 0.5);
    transform: translateY(-2px);
}

.btn-warning {
    background: linear-gradient(45deg, #ffc107, rgba(255, 193, 7, 0.8));
    color: #000;
}

.btn-outline {
    background-color: transparent;
    color: #4c4646;
    
    border: 2px solid rgba(255, 255, 255, 0.6);
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgb(163, 160, 160);
}


.btn-google {
    background: transparent;
    border: 2px solid #e0e0e0;
}

.btn-outline-warning {
    background: transparent;
    border: 2px solid #ffc107;
    color: #ffc107;
}

.btn-outline-warning:hover {
    background: rgba(255, 193, 7, 0.1);
}


.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

/* Tablas */
  /* Tabla con líneas visibles en gris tenue */
        .table-container {
            background: white;
            border-radius: var(--border-radius);
            overflow: hidden;
            border: 1px solid var(--light-gray);
            margin-top: 2rem;
            overflow-x: auto;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
        }

.table {
    width: 100%;
    border-collapse: collapse;
    color: #4a5568;
}

  .table th, .table td {
            padding: 1.2rem 1rem;
            text-align: left;
            border-bottom: 1px solid var(--light-gray);
        }

        .table th {
            font-weight: 600;
            background: #f1f5f9;
            color: #334155;
            border-top: 1px solid var(--medium-gray);
            border-bottom: 2px solid var(--medium-gray);
        }

        .table tr:not(:last-child) td {
            border-bottom: 1px solid var(--light-gray);
        }

        .table tr:hover {
            background: #f8fafc;
        }

        /* Estilos para las celdas */
        .table td:first-child,
        .table th:first-child {
            padding-left: 1.5rem;
        }

        .table td:last-child,
        .table th:last-child {
            padding-right: 1.5rem;
        }


     

/* Contenedor de precios */

.pricing-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.pricing-col {
    flex: 1;
    min-width: 300px;
    max-width: 350px;
}

/* Cards de precios */

 .card {
            display: flex;
            flex-direction: column;
            height: 100%;
            border-radius: var(--border-radius);
            overflow: hidden;
            transition: var(--transition);
            background: rgba(255, 255, 255, 0.15);
            backdrop-filter: blur(5px);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
            border: 1px solid rgba(255, 255, 255, 0.2);
        }



.card:hover {
            transform: translateY(-8px);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
        }


.card-header {
            padding: 1.8rem;
            text-align: center;
            position: relative;
            overflow: hidden;
        }
.card.starter .card-header {
            background: linear-gradient(45deg, var(--color-blue), rgba(65, 135, 240, 0.9));
        }

.card.pro .card-header {
            background: linear-gradient(45deg, var(--color-green), rgba(72, 219, 109, 0.9));
        }

.card.max .card-header {
            background: linear-gradient(45deg, var(--color-purple), rgba(106, 94, 242, 0.9));
        }


.card-title {
            font-size: 1.6rem;
            font-weight: 700;
            margin: 0;
            color: #000000;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
        }

.card-body {
            padding: 1.8rem;
            flex-grow: 1;
        }

.card-footer {
            padding: 1.8rem;
            background-color: transparent;
        }


.pricing-container {
            margin: 2rem auto;
            padding: 2rem;
           
            backdrop-filter: blur(8px);
            border-radius: var(--border-radius);
            border: 1px solid rgba(255, 255, 255, 0.15);
        }


.pricing-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
}

.pricing-card-header {
    padding: 1.8rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.pricing-card.starter .pricing-card-header {
    background: linear-gradient(45deg, var(--color-blue), rgba(65, 135, 240, 0.9));
}

.pricing-card.pro .pricing-card-header {
    background: linear-gradient(45deg, var(--color-green), rgba(72, 219, 109, 0.9));
}

.pricing-card.max .pricing-card-header,
.pricing-card.enterprise .pricing-card-header {
    background: linear-gradient(45deg, var(--color-purple), rgba(106, 94, 242, 0.9));
}

.pricing-card-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.pricing-card-body {
    padding: 1.8rem;
    flex-grow: 1;
}

.pricing-card-footer {
    padding: 1.8rem;
    background-color: transparent;
}

/* Variantes de color para cards de precios según el fondo */
body.bg-gradient .pricing-card-title,
body.bg-gradient .price-display,
body.bg-gradient .price-display small,
body.bg-gradient .table th,
body.bg-gradient .table td {
    color: #ffffff;
}

body.bg-image .pricing-card-title,
body.bg-image .price-display,
body.bg-image .price-display small,
body.bg-image .table th,
body.bg-image .table td {
    color: #000000;
}

.price-display {
    font-size: 2.2rem;
    font-weight: 800;
    margin: 1.5rem 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.price-display small {
    font-size: 1rem;
    font-weight: 400;
}

/* Iconos */
.feature-icon {
    margin-right: 0.5rem;
    width: 20px;
    text-align: center;
}

.starter .feature-icon {
    color: var(--color-blue);
}

.pro .feature-icon {
    color: var(--color-green);
}

.max .feature-icon,
.enterprise .feature-icon {
    color: var(--color-purple);
}


/* Badges */
.badge {
    display: inline-block;
    padding: 0.35rem 0.65rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-success {
    background: rgba(52, 199, 89, 0.2);
    color: #00ff88;
}

.badge-danger {
    background: rgba(231, 76, 60, 0.2);
    color: #ff6b6b;
}

.badge-secondary {
    background: rgba(108, 117, 125, 0.2);
    color: rgba(255, 255, 255, 0.7);
} 

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgb(165, 164, 164);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.dropdown-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    display: none;
    min-width: 160px;
    padding: 0.5rem 0;
    margin: 0.125rem 0 0;
    background: rgba(25, 25, 35, 0.9);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    list-style: none;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: 0.5rem 1rem;
    clear: both;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.dropdown-item.text-danger {
    color: #ff6b6b;
}

.dropdown-item.text-danger:hover {
    background: rgba(231, 76, 60, 0.2);
}


/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1050;
    overflow-y: auto;
}

.modal.show {
    display: block;
}

.modal-dialog {
    max-width: 500px;
    margin: 1.75rem auto;
}

.modal-content {
    position: relative;
    background: rgba(145, 145, 146, 0.9);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    color: white;
}

.modal-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-title {
    margin: 0;
    font-size: 1.25rem;
}

.modal-close {
    align-items: right;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(241, 239, 239, 0.1);
    text-align: right;
}
/* Formularios */












.form-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin: 2rem 0;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.form-title {
    font-size: 1.8rem;
    color: white;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: white;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.9rem 1.2rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-pink);
    box-shadow: 0 0 0 3px rgba(176, 47, 194, 0.3);
}

.form-select {
    width: 100%;
    padding: 0.9rem 1.2rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: rgb(151, 151, 151);
    font-size: 1rem;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px;
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.form-check {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.form-check-input {
    margin-right: 0.7rem;
    width: 20px;
    height: 20px;
    accent-color: var(--color-pink);
}

.form-check-label {
    color: white;
}

.input-group {
    display: flex;
    margin-bottom: 1rem;
}

.input-group .form-control {
    margin-bottom: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.input-group-btn {
    display: flex;
}

.input-group-btn .btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* Responsive */
@media (max-width: 900px) {
    .app-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        position: relative;
        height: auto;
    }
    
    .content {
        margin-left: 0;
        width: 100%;
        padding: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .main-title {
        font-size: 2.2rem;
    }
    
    .main-container {
        padding: 1.5rem;
    }
    
    .table {
        min-width: 700px;
    }
    
    .table-container {
        overflow-x: auto;
    }
}


/* Estilos para imágenes en tablas */
.table img {
    max-width: 100px;
    max-height: 100px;
    border-radius: 4px;
}

/* Estilos para el botón secundario */
.btn-secondary {
    background: rgba(108, 117, 125, 0.8);
    color: white;
}

.btn-secondary:hover {
    background: rgba(108, 117, 125, 1);
}






/* Sidebar con fondo blanco */
.sidebar.light {
    background: rgba(255, 255, 255, 0.95);
    color: #666;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
}

/* Título del sidebar en modo claro */
.sidebar.light .sidebar-title {
    color: #444;
}

/* Elementos de navegación en modo claro */
.sidebar.light .nav-link {
    color: #666;
    transition: all 0.3s ease, transform 0.2s ease;
}

.sidebar.light .nav-link:hover,
.sidebar.light .nav-link.active {
    background: rgba(0, 0, 0, 0.05);
    color: #333;
    transform: scale(1.03);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Iconos en modo claro */
.sidebar.light .nav-link i {
    color: #777;
}

.sidebar.light .nav-link:hover i,
.sidebar.light .nav-link.active i {
    color: #333;
}

/* Separadores en modo claro */
.sidebar.light .sidebar-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.sidebar.light .sidebar-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* Botón de logout en modo claro */
.sidebar.light .btn-logout {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

.sidebar.light .btn-logout:hover {
    background: rgba(231, 76, 60, 0.2);
}



        /* Galería de modelos */
        .gallery-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(249, 249, 249, 0.7);
            backdrop-filter: blur(5px);
            z-index: 1050;
            overflow-y: auto;
        }

        .gallery-modal.show {
            display: block;
        }

        .gallery-modal-dialog {
            max-width: 90%;
            margin: 2rem auto;
        }

        .gallery-modal-content {
            position: relative;
            background: rgba(252, 252, 255, 0.95);
            backdrop-filter: blur(12px);
            border: 2px solid rgba(255, 255, 255, 0.15);
            border-radius: var(--border-radius);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
            color: rgb(0, 0, 0);
        }

        .gallery-modal-header {
            padding: 1.5rem;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .gallery-modal-title {
            margin: 0;
            font-size: 1.5rem;
            color: rgb(32, 32, 32);
        }

        .gallery-modal-close {
            background: transparent;
            border: none;
            color: rgb(0, 0, 0);
            font-size: 1.5rem;
            cursor: pointer;
        }

        .gallery-modal-body {
            padding: 1.5rem;
        }

        /* Tabs de la galería */
        .gallery-tabs {
            display: flex;
            list-style: none;
            border-bottom: 1px solid rgba(249, 249, 249, 0.1);
            margin-bottom: 1.5rem;
        }

        .gallery-tab-item {
            margin-right: 0.5rem;
        }

       .gallery-tab-link {
    display: inline-block;
    padding: 0.7rem 1.4rem;
    color: #333;
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    font-weight: 500;
    background: #f1f1f1; /* fondo suave tipo botón */
    border: 1px solid #ddd;
    margin-right: 0.4rem; /* separación entre tabs */
    cursor: pointer;
}

/* Hover para dar sensación de botón */
.gallery-tab-link:hover {
    background: #e4e4e4;
    transform: translateY(-2px);
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

/* Tab activo */
.gallery-tab-link.active {
    background: #ab00ff; /* color principal */
    color: #fff; /* texto en contraste */
    border: 1px solid #a0a2a4;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transform: translateY(-2px); /* resalta el activo */
}

        .gallery-tab-content {
            margin-top: 1rem;
        }

        .gallery-tab-pane {
            display: none;
        }

        .gallery-tab-pane.active {
            display: block;
        }

        /* Grid de modelos */
        .gallery-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 1.5rem;
        }

        .model-card {
            background: rgba(255, 255, 255, 0.1);
            border-radius: var(--border-radius);
            overflow: hidden;
            transition: var(--transition);
            border: 3px solid rgba(255, 255, 255, 0.15);
        }

        .model-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
        }

        .model-card-img {
            width: 100%;
            height: 200px;
            object-fit: cover;
        }

        .model-card-placeholder {
            width: 100%;
            height: 200px;
            background: rgba(255, 255, 255, 0.05);
            display: flex;
            align-items: center;
            justify-content: center;
            color: rgba(255, 255, 255, 0.5);
        }

        .model-card-body {
            padding: 1.2rem;
            text-align: center;
        }

        .model-card-title {
            font-size: 1.1rem;
            margin-bottom: 0.5rem;
            color: white;
        }

        .model-card-text {
            font-size: 0.9rem;
            color: rgba(255, 255, 255, 0.7);
            margin-bottom: 1rem;
        }

        .empty-state {
            text-align: center;
            padding: 2rem;
            color: rgba(255, 255, 255, 0.7);
        }

        /* Checkbox personalizado */
        .custom-checkbox {
            display: flex;
            align-items: center;
            margin: 1.5rem 0;
            cursor: pointer;
        }

        .custom-checkbox input {
            margin-right: 0.7rem;
            width: 18px;
            height: 18px;
            accent-color: var(--color-pink);
        }

        /* Responsive */
        @media (max-width: 768px) {
            .gallery-grid {
                grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            }
            
            .form-actions {
                flex-direction: column;
            }
            
            .btn {
                width: 100%;
                margin-bottom: 0.5rem;
            }
        }


         .form-page-container {
            display: flex;
            justify-content: center;
            padding: 2rem;
            margin-top: 2rem;
        }

       /* Contenedor principal */
.form-card {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  max-width: 900px;
  margin: auto;
}

.form-card__header {
  margin-bottom: 20px;
}

.form-card__title {
  font-size: 18px;
  font-weight: 600;
}

        .form-card-body {
            padding: 2rem;
        }
/* Grupos y filas */
.form-row {
  display: flex;
  gap: 16px;
}

.form-group {
  flex: 1;
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 14px;
  color: #333;
  margin-bottom: 6px;
}

        .required-field {
            color: #ff6b6b;
        }

        .form-control {
            width: 100%;
            padding: 0.9rem 1.2rem;
            border-radius: var(--border-radius);
            border: 1px solid rgba(144, 144, 144, 0.2);
            background: rgba(255, 255, 255, 0.1);
            color: rgb(8, 8, 8);
            font-size: 1rem;
            transition: var(--transition);
        }

        .form-control:focus {
            outline: none;
            border-color: var(--color-pink);
            box-shadow: 0 0 0 3px rgba(176, 47, 194, 0.3);
        }

/* Inputs */
.form-input, .form-select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  transition: border 0.3s ease;
}

.form-input:focus, .form-select:focus {
  border-color: #2563eb; /* azul */
}


.form-card__footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
}




/* Radios */
.form-radio-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-radio {
  font-size: 14px;
  color: #444;
}

/* Toggle */
.switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 24px;
}


/* Contenedor de opciones */
.placement-mode-options {
  display: flex;
  gap: 1em;
  flex-wrap: wrap;
}

/* Cada opción */
.placement-option {
  cursor: pointer;
  text-align: center;
}

/* Ocultar el input real */
.placement-option input {
  display: none;
}

/* Caja visual que envuelve imagen y texto */
.placement-card {
  border: 2px solid #ccc;
  border-radius: 8px;
  padding: 8px;
  transition: all 0.3s ease;
}

.placement-card img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

/* Texto debajo */
.placement-label {
  margin-top: 0.5em;
  font-size: 14px;
  color: #333;
}

/* 🎯 Estado seleccionado */
.placement-option input:checked + .placement-card {
  border-color: #2563eb;
  box-shadow: 0 0 8px rgba(37, 99, 235, 0.5);
  transform: scale(1.05);
}

















        .input-group .form-control {
            margin-bottom: 0;
            border-top-right-radius: 0;
            border-bottom-right-radius: 0;
        }

        .input-group-btn {
            display: flex;
        }

        .input-group-btn .btn {
            border-top-left-radius: 0;
            border-bottom-left-radius: 0;
        }

        .form-text {
            font-size: 0.85rem;
            color: rgba(7, 7, 7, 0.7);
            margin-top: 0.25rem;
        }

        .invalid-feedback {
            color: #ff6b6b;
            font-size: 0.85rem;
            margin-top: 0.25rem;
            display: block;
        }

        .form-actions {
            display: flex;
            justify-content: flex-end;
            gap: 1rem;
            margin-top: 2rem;
        }


        .message-card {
  max-width: 600px;
  margin: 5rem auto;
  padding: 2rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-align: center;
}

.message-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.message-text {
  font-size: 1rem;
  margin: 0.5rem 0;
}

.message-link {
  color: #007bff;
  text-decoration: none;
  font-weight: 500;
}

.message-link:hover {
  text-decoration: underline;
}

.text-danger {
  color: #dc3545;
}



/* gallery */


.page-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 3rem;
  padding: 0 1rem;
}

/* Título principal */
.page-title {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
}
/* Botón principal arriba de la tabla */
.btn-new {
  margin-bottom: 1.5rem;
}

/* Tabla personalizada */
.table-wrapper {
  width: 100%;
  overflow-x: auto;
}

.custom-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
}

.custom-table thead {
  background-color: #f8f9fa;
}

.custom-table th,
.custom-table td {
  border: 1px solid #ddd;
  padding: 0.75rem;
  vertical-align: middle;
}

.custom-table tr:hover {
  background-color: #f1f1f1;

}  
/* Imagen dentro de la tabla */
.table-img {
  max-width: 120px;
  max-height: 120px;
  border-radius: 6px;
}

/* Acciones */
.table-actions {
 align-content: center;
 
  justify-content: center;
  vertical-align: middle;
  gap: 0.5rem;
  width: 100%;
}

.table-actions .btn {
    margin: 0 3px;               /* Espacio entre botones */
}



.btn-sm-gallery {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.875rem;
  text-decoration: none;
  transition: background 0.3s;
  display: inline-block;
}

.btn-info {
  background-color: #0dcaf0;
  color: #fff;
}

.btn-info:hover {
  background-color: #0bb3d1;
}


.btn-warning:hover {
  background-color: #e0a800;
}

.btn-danger {
  background-color: #dc3545;
  color: #fff;
}

.btn-danger:hover {
  background-color: #bb2d3b;
}


.text-muted {
  color: #6c757d;
}





    .login-image {
        flex: 2;
        background-image: url("{% static 'images/principal.png' %}");
        background-size: cover;
        background-position: center;
    }

    .login-section {
        flex: 1;
        display: flex;
        justify-content: center;
        align-items: center;
        background: var(--bg-light);
        padding: 2rem;
    }


.login-container {
      display: grid;
      grid-template-columns: 70% 30%; /* 80% imagen - 20% login */
      height: 100vh;
    }

    .left {
      background: url("https://picsum.photos/1600/900") no-repeat center center;
      background-size: cover;
    }

    .right {
      display: flex;
      align-items: center;
      justify-content: center;
      background-color: #f4f4f4;
    }



/* Annotations */


.hotspot {
  background: rgb(243, 242, 242);
  border: none;
  border-radius: 60%;
  width: 13px;
  height: 12px;

}



.annotation_background {

    position: fixed;
    width: max-content;
    height: 90%;
    top:0px;
    left: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 3px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    padding : 5px;
    
}


.annotation-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px;
  border-bottom: 1px solid #ddd;
}

.annotation-actions {
  display: flex;
  gap: 6px;
}

.btn-annotation {
  cursor: pointer;
  border: none;
  background: none;
  font-size: 14px;
  padding: 2px 6px;
  border-radius: 4px;
}

.btn-annotation.edit {
  color: #ff9800;
}

.btn-annotation.delete {
  color: #e53935;
}

.btn-annotation:hover {
  background: rgba(0,0,0,0.05);
}