/* ============================================
   PANORAMAS AEROSIG - Estilos Profesionales
   Inspirado en aerosig.cl
   ============================================ */

/* === Fuentes === */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&family=Open+Sans:wght@400;500;600&display=swap');

/* === Variables de Diseño === */
:root {
    /* Colores principales - Paleta profesional topográfica */
    --primary-color: #1a5f7a;
    --primary-dark: #134b61;
    --primary-light: #2980b9;
    --accent-color: #27ae60;
    --accent-hover: #219a52;
    
    /* Colores neutros */
    --dark-color: #1a1a2e;
    --dark-secondary: #16213e;
    --light-color: #ffffff;
    --light-gray: #f8f9fa;
    --medium-gray: #e9ecef;
    --text-dark: #2c3e50;
    --text-muted: #6c757d;
    --text-light: #95a5a6;
    
    /* Gradientes */
    --gradient-primary: linear-gradient(135deg, #1a5f7a 0%, #2980b9 100%);
    --gradient-dark: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    --gradient-hero: linear-gradient(135deg, rgba(26, 95, 122, 0.95) 0%, rgba(41, 128, 185, 0.9) 100%);
    
    /* Sombras */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.15);
    --shadow-hover: 0 12px 40px rgba(26, 95, 122, 0.2);
    
    /* Bordes y espaciado */
    --border-radius: 8px;
    --border-radius-lg: 16px;
    --transition-speed: 0.3s;
    --transition-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* === Reset y Base === */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--light-gray);
    color: var(--text-dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.7;
    font-size: 16px;
}

main {
    flex: 1;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: var(--dark-color);
}

/* === Header / Navegación === */
.navbar-aerosig {
    background: var(--gradient-dark);
    padding: 0.75rem 0;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-aerosig .navbar-brand {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--light-color) !important;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all var(--transition-speed) ease;
}

.navbar-aerosig .navbar-brand:hover {
    transform: scale(1.02);
}

.navbar-aerosig .navbar-brand .brand-icon {
    width: 45px;
    height: 45px;
    background: var(--gradient-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(26, 95, 122, 0.4);
}

.navbar-aerosig .navbar-brand .brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.navbar-aerosig .navbar-brand .brand-text .brand-title {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.navbar-aerosig .navbar-brand .brand-text .brand-subtitle {
    font-size: 0.7rem;
    font-weight: 400;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.navbar-aerosig .nav-link {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85) !important;
    padding: 0.75rem 1.25rem !important;
    margin: 0 0.25rem;
    border-radius: var(--border-radius);
    transition: all var(--transition-speed) ease;
    position: relative;
}

.navbar-aerosig .nav-link:hover,
.navbar-aerosig .nav-link.active {
    color: var(--light-color) !important;
    background: rgba(255, 255, 255, 0.1);
}

.navbar-aerosig .nav-link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width var(--transition-speed) ease;
}

.navbar-aerosig .nav-link:hover::after {
    width: 60%;
}

/* === Hero Section === */
.hero-section {
    background: var(--gradient-hero);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--light-color);
}

.hero-content h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--light-color);
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-content .hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 2rem;
    font-weight: 300;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
}

.hero-stat {
    text-align: center;
}

.hero-stat .stat-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    display: block;
}

.hero-stat .stat-label {
    font-size: 0.85rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* === Galería de Panoramas === */
.gallery-section {
    padding: 4rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-top: 1rem;
}

/* === Tarjetas de Panoramas === */
.panorama-card {
    background: var(--light-color);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-speed) ease;
    border: none;
    height: 100%;
}

.panorama-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.panorama-card:focus-within {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

.card-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 220px;
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
}

.panorama-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.panorama-card:hover .panorama-thumbnail {
    transform: scale(1.1);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 95, 122, 0.85) 0%, rgba(41, 128, 185, 0.85) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-speed) ease;
    color: white;
}

.panorama-card:hover .overlay,
.panorama-card:focus-within .overlay {
    opacity: 1;
}

.overlay i {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.overlay span {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.card-text {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.8rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--medium-gray);
}

.card-meta i {
    color: var(--primary-color);
}

/* Badge de 360° */
.badge-360 {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent-color);
    color: white;
    padding: 0.4rem 0.75rem;
    border-radius: 20px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    box-shadow: 0 2px 10px rgba(39, 174, 96, 0.4);
    z-index: 5;
}

/* === Estado vacío === */
.empty-state {
    text-align: center;
    padding: 5rem 2rem;
    background: var(--light-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
}

.empty-state-icon {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--medium-gray) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
}

.empty-state-icon i {
    font-size: 3rem;
    color: var(--text-light);
}

.empty-state h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* === Visor 360° === */
.panorama-viewer-container {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 500px;
    background-color: #000;
    border-radius: 0;
}

.panorama-viewer {
    width: 100%;
    height: 70vh;
    min-height: 500px;
    background-color: #000;
}

.panorama-info {
    background: var(--gradient-dark);
    box-shadow: var(--shadow-md);
}

.panorama-info h1 {
    font-family: 'Montserrat', sans-serif;
    color: var(--light-color);
    font-weight: 600;
}

/* Sobrescribir estilos de Pannellum */
.pnlm-container {
    font-family: 'Open Sans', sans-serif !important;
}

.pnlm-about-msg {
    display: none !important;
}

.pnlm-controls {
    margin-top: 4px !important;
    margin-left: 4px !important;
}

.pnlm-zoom-controls,
.pnlm-fullscreen-toggle-button {
    width: 36px !important;
    height: 36px !important;
}

/* === Panel de Administración === */
.admin-header {
    background: var(--gradient-primary);
    color: var(--light-color);
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.admin-header h1 {
    font-family: 'Montserrat', sans-serif;
    color: var(--light-color);
}

.admin-thumbnail {
    width: 80px;
    height: 50px;
    object-fit: cover;
    border-radius: var(--border-radius);
    background-color: var(--medium-gray);
}

.table-responsive {
    margin: 0;
}

.table > tbody > tr > td {
    vertical-align: middle;
}

.table {
    background: var(--light-color);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.table thead {
    background: var(--gradient-primary);
    color: var(--light-color);
}

.table thead th {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    border: none;
    padding: 1rem;
}

/* === Formularios === */
.form-label {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.form-control,
.form-select {
    border: 2px solid var(--medium-gray);
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    font-size: 16px;
    transition: all var(--transition-speed) ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(26, 95, 122, 0.15);
}

/* === Botones === */
.btn {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    transition: all var(--transition-speed) ease;
    border: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--light-color);
    box-shadow: 0 4px 15px rgba(26, 95, 122, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 95, 122, 0.4);
}

.btn-success {
    background: var(--accent-color);
    color: var(--light-color);
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.btn-success:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: var(--light-color);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--light-color);
    color: var(--light-color);
}

.btn:disabled {
    cursor: not-allowed;
    opacity: 0.65;
}

.btn-group-sm > .btn {
    min-width: 38px;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* === Alertas === */
.alert {
    border-radius: var(--border-radius);
    border: none;
    box-shadow: var(--shadow-sm);
}

.alert-dismissible .btn-close {
    padding: 1rem;
}

/* === Footer === */
footer {
    background: var(--gradient-dark);
    color: var(--light-color);
    margin-top: auto;
    flex-shrink: 0;
}

footer .footer-content {
    padding: 3rem 0 1.5rem;
}

footer .footer-brand {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

footer .footer-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    max-width: 300px;
}

footer .footer-links h5 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: var(--light-color);
    margin-bottom: 1rem;
}

footer .footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

footer .footer-links li {
    margin-bottom: 0.5rem;
}

footer .footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

footer .footer-links a:hover {
    color: var(--accent-color);
}

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

footer .footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    margin: 0;
}

/* === Estados de carga === */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.progress {
    height: 1.5rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    background: var(--medium-gray);
}

.progress-bar {
    font-size: 0.875rem;
    line-height: 1.5rem;
    transition: width 0.3s ease;
    background: var(--gradient-primary);
}

/* === Página 404 === */
.error-page {
    padding: 4rem 0;
    text-align: center;
}

.error-page .display-1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    color: var(--primary-color);
}

/* === Responsividad === */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        gap: 2rem;
    }
    
    .panorama-viewer,
    .panorama-viewer-container {
        height: 60vh;
        min-height: 400px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 0;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: 1.5rem;
    }
    
    .hero-stat .stat-number {
        font-size: 2rem;
    }
    
    .panorama-viewer,
    .panorama-viewer-container {
        height: 50vh;
        min-height: 300px;
    }
    
    .card-img-wrapper {
        height: 180px;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .gallery-section {
        padding: 3rem 0;
    }
    
    .admin-thumbnail {
        width: 60px;
        height: 40px;
    }

    footer .footer-content {
        padding: 2rem 0 1rem;
    }
}

@media (max-width: 576px) {
    .navbar-aerosig .navbar-brand .brand-text .brand-title {
        font-size: 1.1rem;
    }
    
    .navbar-aerosig .navbar-brand .brand-icon {
        width: 38px;
        height: 38px;
        font-size: 1.2rem;
    }
    
    .hero-content h1 {
        font-size: 1.75rem;
    }
    
    .panorama-viewer,
    .panorama-viewer-container {
        height: 40vh;
        min-height: 250px;
    }
    
    .card-img-wrapper {
        height: 160px;
    }
    
    .btn-group-sm > .btn {
        min-width: 44px;
        min-height: 44px;
    }
    
    footer p {
        font-size: 0.875rem;
    }
}

@media (max-width: 400px) {
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .panorama-viewer,
    .panorama-viewer-container {
        height: 35vh;
        min-height: 220px;
    }
    
    .admin-thumbnail {
        width: 50px;
        height: 35px;
    }
    
    .table {
        font-size: 0.875rem;
    }
}

/* === Animaciones === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.panorama-card {
    animation: fadeInUp 0.6s ease forwards;
}

.panorama-card:nth-child(1) { animation-delay: 0.1s; }
.panorama-card:nth-child(2) { animation-delay: 0.2s; }
.panorama-card:nth-child(3) { animation-delay: 0.3s; }
.panorama-card:nth-child(4) { animation-delay: 0.4s; }
.panorama-card:nth-child(5) { animation-delay: 0.5s; }
.panorama-card:nth-child(6) { animation-delay: 0.6s; }

/* Reducir animaciones si el usuario lo prefiere */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .panorama-card:hover {
        transform: none;
    }
    
    .panorama-card:hover .panorama-thumbnail {
        transform: none;
    }
}

/* === Utilidades === */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* === Impresión === */
@media print {
    .navbar-aerosig,
    footer,
    .btn,
    .overlay {
        display: none !important;
    }
    
    body {
        background: white;
    }
    
    .panorama-card {
        break-inside: avoid;
        box-shadow: none;
    }
}
/* === Estilos para Project Detail === */

/* Grid de imágenes en project_detail.html */
.images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.image-card {
    position: relative;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.image-link {
    text-decoration: none;
    color: inherit;
}

.image-preview {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
}

.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.image-card:hover .image-preview img {
    transform: scale(1.1);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 95, 122, 0.85) 0%, rgba(41, 128, 185, 0.85) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
}

.image-card:hover .image-overlay {
    opacity: 1;
}

.image-overlay i {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.image-overlay span {
    font-size: 1rem;
    font-weight: 600;
}

.badge-360 {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
}

.badge-360 i {
    margin-right: 0.25rem;
}

.image-info {
    padding: 1rem;
}

.image-info h5 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1a1a2e;
}

.image-info .location-name,
.image-info .image-date {
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 0.25rem;
}

.image-info .location-name i,
.image-info .image-date i {
    margin-right: 0.25rem;
    color: #1a5f7a;
}

.image-actions {
    padding: 0.75rem 1rem;
    border-top: 1px solid #e9ecef;
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

/* Stats cards en project detail */
.stat-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.stat-icon.bg-primary {
    background: linear-gradient(135deg, #1a5f7a 0%, #2980b9 100%);
}

.stat-icon.bg-success {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
}

.stat-icon.bg-info {
    background: linear-gradient(135deg, #2980b9 0%, #3498db 100%);
}

.stat-content h3 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    color: #1a1a2e;
}

.stat-content p {
    font-size: 0.875rem;
    color: #6c757d;
    margin: 0;
}

/* Location cards */
.location-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.location-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.location-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.location-header i {
    font-size: 1.5rem;
    color: #1a5f7a;
}

.location-header h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
    color: #1a1a2e;
}

.location-desc {
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 0.75rem;
}

.location-stats {
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

.location-stats i {
    color: #1a5f7a;
    margin-right: 0.25rem;
}

.location-actions {
    display: flex;
    gap: 0.5rem;
}

/* Section titles */
.section-title {
    margin: 3rem 0 2rem;
}

.section-title h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a2e;
}

.section-title i {
    color: #1a5f7a;
}

/* Empty state inline */
.empty-state-inline {
    text-align: center;
    padding: 3rem 1rem;
    color: #6c757d;
}

.empty-state-inline i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Danger zone */
.danger-zone-section {
    background: #fef5f5;
    padding: 3rem 0;
    margin-top: 4rem;
}

.danger-zone {
    background: white;
    border: 2px solid #e74c3c;
    border-radius: 12px;
    padding: 2rem;
}

.danger-zone h4 {
    color: #e74c3c;
    font-weight: 600;
    margin-bottom: 1rem;
}

.danger-zone p {
    color: #6c757d;
    margin-bottom: 1.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .images-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .image-preview {
        height: 150px;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .stat-content h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .images-grid {
        grid-template-columns: 1fr;
    }
    
    .image-preview {
        height: 180px;
    }
}
/* Fix para tamaño de imágenes en proyecto */

/* Grid de imágenes - garantizar tamaño máximo */
.images-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 1.5rem !important;
    margin-top: 2rem !important;
    max-width: 100% !important;
}

/* Tarjeta de imagen con altura máxima */
.image-card {
    position: relative !important;
    background: white !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    max-width: 400px !important;
}

/* Preview de imagen con altura fija */
.image-preview {
    position: relative !important;
    height: 180px !important;
    max-height: 180px !important;
    overflow: hidden !important;
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%) !important;
}

/* La imagen dentro del preview */
.image-preview img {
    width: 100% !important;
    height: 100% !important;
    max-height: 180px !important;
    object-fit: cover !important;
    transition: transform 0.3s ease !important;
}

/* Info de la imagen */
.image-info {
    padding: 1rem !important;
    background: white !important;
}

.image-info h5 {
    font-size: 1rem !important;
    font-weight: 600 !important;
    margin-bottom: 0.5rem !important;
    color: #2d3748 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.image-info p {
    font-size: 0.85rem !important;
    color: #718096 !important;
    margin-bottom: 0.25rem !important;
}

/* Acciones de imagen */
.image-actions {
    padding: 0.75rem 1rem !important;
    background: #f8f9fa !important;
    border-top: 1px solid #e9ecef !important;
    display: flex !important;
    gap: 0.5rem !important;
}

/* Badge 360 */
.badge-360 {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    background: rgba(0, 0, 0, 0.7) !important;
    color: white !important;
    padding: 4px 8px !important;
    border-radius: 4px !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
}

/* Responsive */
@media (max-width: 768px) {
    .images-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
        gap: 1rem !important;
    }
    
    .image-preview {
        height: 150px !important;
        max-height: 150px !important;
    }
    
    .image-preview img {
        max-height: 150px !important;
    }
}

@media (max-width: 480px) {
    .images-grid {
        grid-template-columns: 1fr !important;
    }
    
    .image-preview {
        height: 200px !important;
        max-height: 200px !important;
    }
}
