/* ==========================================
   MIEPI - Estilos personalizados
   ========================================== */

* {
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--color-fondo);
    color: var(--color-texto);
    line-height: 1.6;
}

h1, h2, h3, h4, h5 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

/* Navbar */
.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.navbar-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
}
.nav-link {
    transition: all 0.3s;
    padding: 0.5rem 1rem !important;
}
.nav-link:hover, .nav-link.active {
    color: var(--color-secundario) !important;
}

/* Botones */
.btn-primary {
    background: var(--color-primario);
    border-color: var(--color-primario);
}
.btn-primary:hover {
    background: var(--color-acento);
    border-color: var(--color-acento);
}
.btn-secondary-custom {
    background: var(--color-secundario);
    color: white;
    border: none;
}
.btn-secondary-custom:hover {
    background: var(--color-acento);
    color: white;
}

/* Carrusel principal */
#carruselPrincipal {
    margin-bottom: 0;
}
.carousel-item {
    height: 600px;
    background-size: cover;
    background-position: center;
    position: relative;
}
.carousel-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.6), rgba(0,0,0,0.3));
}
.carousel-caption {
    bottom: 25%;
    text-align: center;
    z-index: 2;
}
.carousel-caption h1 {
    font-size: 3.5rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
    margin-bottom: 1rem;
}
.carousel-caption p {
    font-size: 1.3rem;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
}

@media (max-width: 768px) {
    .carousel-item { height: 400px; }
    .carousel-caption h1 { font-size: 2rem; }
    .carousel-caption p { font-size: 1rem; }
}

/* Tarjetas */
.card-feature {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    height: 100%;
}
.card-feature:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}
.card-feature .card-img-top {
    height: 220px;
    object-fit: cover;
}
.card-feature .card-body {
    padding: 1.5rem;
}

/* Secciones */
.section-title {
    text-align: center;
    margin: 3rem 0 2rem;
    position: relative;
}
.section-title h2 {
    color: var(--color-primario);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}
.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--color-secundario);
    margin: 1rem auto;
    border-radius: 2px;
}

/* Formularios */
.form-control, .form-select {
    border-radius: 8px;
    padding: 0.65rem 1rem;
    border: 1px solid #ced4da;
    transition: all 0.3s;
}
.form-control:focus, .form-select:focus {
    border-color: var(--color-primario);
    box-shadow: 0 0 0 0.2rem rgba(26, 58, 108, 0.15);
}
.form-label {
    font-weight: 500;
    color: var(--color-primario);
    margin-bottom: 0.3rem;
}

/* Hero section */
.hero-banner {
    background: linear-gradient(135deg, var(--color-primario), var(--color-acento));
    color: white;
    padding: 4rem 0;
    text-align: center;
}

/* Tabs personalizadas */
.nav-tabs-custom {
    border: none;
    margin-bottom: 2rem;
}
.nav-tabs-custom .nav-link {
    border: none;
    border-radius: 10px;
    margin-right: 0.5rem;
    color: var(--color-primario);
    font-weight: 500;
    background: white;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s;
}
.nav-tabs-custom .nav-link.active {
    background: var(--color-primario);
    color: white;
}

/* Footer */
footer a:hover {
    color: var(--color-secundario) !important;
}

/* Admin */
.admin-sidebar {
    background: var(--color-primario);
    min-height: 100vh;
    color: white;
    padding: 2rem 0;
}
.admin-sidebar a {
    color: white;
    text-decoration: none;
    display: block;
    padding: 0.75rem 1.5rem;
    border-left: 4px solid transparent;
    transition: all 0.3s;
}
.admin-sidebar a:hover, .admin-sidebar a.active {
    background: rgba(255,255,255,0.1);
    border-left-color: var(--color-secundario);
}

.admin-content {
    padding: 2rem;
    background: var(--color-fondo);
    min-height: 100vh;
}

.stats-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-left: 5px solid var(--color-primario);
}
.stats-card .stats-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primario);
}

/* Tabla */
.table-custom {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.table-custom thead {
    background: var(--color-primario);
    color: white;
}

/* Badges */
.badge-pendiente { background: #ffc107; color: #000; }
.badge-confirmado { background: #198754; color: white; }
.badge-rechazado { background: #dc3545; color: white; }

/* Galería de herramientas */
.herramienta-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s;
    height: 100%;
}
.herramienta-card:hover {
    transform: translateY(-5px);
}
.herramienta-card i {
    font-size: 3.5rem;
    color: var(--color-secundario);
    margin-bottom: 1rem;
}

/* QR Container */
.qr-container {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}
.qr-container img {
    max-width: 300px;
    margin: 1rem 0;
}

/* Login admin */
.login-container {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--color-primario), var(--color-acento));
    display: flex;
    align-items: center;
    justify-content: center;
}
.login-box {
    background: white;
    border-radius: 15px;
    padding: 3rem;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

/* Animaciones */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
