/* ============================================================
   TOURISMART — Estilos principales
   ============================================================ */

/* ── Variables ── */
:root {
    --primary:   #0a5c8a;
    --secondary: #f5a623;
    --dark:      #1a1a2e;
    --light:     #f8f9fa;
    --card-radius: 12px;
    --trans: 0.3s ease;
}

/* ── Base ── */
* { box-sizing: border-box; }
body { font-family: 'Segoe UI', system-ui, sans-serif; color: #333; }
a { transition: color var(--trans); }

/* ── Hero ── */
.hero-section {
    min-height: 88vh;
    background: url('/images/hero-bg.jpg') center/cover no-repeat;
    position: relative;
}
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(10,92,138,.75) 0%, rgba(26,26,46,.6) 100%);
}

/* ── Sección títulos ── */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    position: relative;
    padding-bottom: 12px;
}
.section-title::after {
    content: '';
    position: absolute; left: 50%; bottom: 0;
    transform: translateX(-50%);
    width: 60px; height: 3px;
    background: var(--secondary);
    border-radius: 2px;
}

/* ── Cards de destino ── */
.destino-card {
    border: none;
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
    transition: transform var(--trans), box-shadow var(--trans);
    cursor: pointer;
}
.destino-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 28px rgba(0,0,0,.15);
}
.destino-card img {
    width: 100%; height: 440px; object-fit: cover;
}
.destino-card .price-badge {
    position: absolute; top: 12px; right: 12px;
    background: var(--secondary); color: #fff;
    font-weight: 700; padding: 4px 12px;
    border-radius: 20px; font-size: .85rem;
}

/* ── Blog cards ── */
.blog-card {
    border: none;
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.07);
    transition: transform var(--trans);
}
.blog-card:hover { transform: translateY(-4px); }
.blog-card img { width: 100%; height: 180px; object-fit: cover; }

/* ── Filtros sidebar ── */
.filtros-sidebar {
    background: #fff;
    border-radius: var(--card-radius);
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,.07);
    position: sticky; top: 80px;
}

/* ── Galería ── */
.galeria-img {
    width: 100%; aspect-ratio: 4/3; object-fit: cover;
    border-radius: 8px; cursor: pointer;
    transition: opacity var(--trans);
}
.galeria-img:hover { opacity: .85; }

/* ── Experiencias ── */
.exp-card {
    border-radius: var(--card-radius);
    border: 1px solid #eee;
    padding: 1.5rem;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,.05);
}
.stars { color: var(--secondary); }

/* ── Admin panel ── */
.admin-sidebar {
    min-height: 100vh;
    background: var(--dark);
    padding: 1.5rem 0;
}
.admin-sidebar .nav-link {
    color: rgba(255,255,255,.7);
    padding: .6rem 1.5rem;
    border-radius: 0 20px 20px 0;
    transition: all var(--trans);
    font-size: .9rem;
}
.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    color: #fff;
    background: rgba(255,255,255,.1);
}
.admin-sidebar .nav-link i { width: 20px; }
.admin-content {
    background: #f4f6fb;
    min-height: 100vh;
    padding: 2rem;
}
.admin-header {
    background: #fff;
    padding: 1rem 2rem;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ── Tabla admin ── */
.admin-table { background: #fff; border-radius: var(--card-radius); overflow: hidden; }
.admin-table thead { background: var(--primary); color: #fff; }
.admin-table tbody tr:hover { background: #f0f7ff; }

/* ── Estados ── */
.badge-pendiente  { background: #ffc107; color: #333; }
.badge-aprobada   { background: #198754; color: #fff; }
.badge-rechazada  { background: #dc3545; color: #fff; }

/* ── Logo nav ── */
.logo-img { border-radius: 6px; object-fit: contain; }

/* ── Loader ── */
.loader {
    display: flex; align-items: center; justify-content: center;
    min-height: 200px;
}
.spinner-border { width: 3rem; height: 3rem; border-width: .3rem; color: var(--primary); }

/* ── Responsive ── */
@media (max-width: 768px) {
    .hero-section { min-height: 60vh; }
    .section-title { font-size: 1.5rem; }
    .admin-sidebar { min-height: auto; }
}

/* ── Animación entrada ── */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeIn .4s ease forwards; }

/* ── Lightbox overlay ── */
.lightbox-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.9);
    z-index: 9999;
    display: flex; align-items: center; justify-content: center;
}
.lightbox-overlay img {
    max-width: 90vw; max-height: 90vh; object-fit: contain;
    border-radius: 8px;
}
.lightbox-close {
    position: absolute; top: 20px; right: 30px;
    color: #fff; font-size: 2rem; cursor: pointer;
}

/* ── Navbar activo ── */
.navbar-nav .nav-link.active { color: var(--secondary) !important; }
