/* ==========================================================
   COMPUTRONICO INGENIERÍA & SISTEMAS
   Hoja de Estilos General  (styles.css)
=========================================================== */

:root {
  --primary: #d62828; /* Rojo corporativo */
  --dark: #0f172a;
  --light: #f8fafc;
  --text-muted: #94a3b8;
  --bg-glass: rgba(255, 255, 255, 0.1);
  --blur: blur(10px);
  --transition: all 0.3s ease;
}

/* ==========================================================
   RESET GENERAL Y TIPOGRAFÍA
=========================================================== */

* {
  box-sizing: border-box;
  scroll-behavior: smooth;
  font-family: 'Inter', sans-serif;
}

body {
  background: var(--light);
  color: var(--dark);
  margin: 0;
  padding: 0;
}

/* ==========================================================
   TARJETAS Y ANIMACIONES
=========================================================== */

.hover-card,
.service-card,
.product-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-card:hover,
.service-card:hover,
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Animaciones suaves */
.servicio-item {
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}

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

/* Fade-in reutilizable */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================
   SECCIÓN "NOSOTROS"
=========================================================== */

.hero-nosotros {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 3rem 0;
  border-radius: 15px;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.icon-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.blockquote {
  font-style: italic;
  border-left: 4px solid rgba(255, 255, 255, 0.3);
  padding-left: 1.5rem;
}

.blockquote-footer {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
}

/* ==========================================================
   HEADER Y MENÚ RESPONSIVO
=========================================================== */

.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 999;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid #e2e8f0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand img,
.logo {
  height: 30px;
  width: auto;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.muted-small {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* Enlaces del menú */
.nav-link {
  color: #f8fafc !important;
  font-weight: 500;
  transition: color 0.3s ease, border-color 0.3s ease;
  border-bottom: 2px solid transparent;
  padding-bottom: 4px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary) !important;
  border-bottom-color: var(--primary);
}

/* Dropdown */
.dropdown-menu {
  border-radius: 8px;
  border: 1px solid #f1f5f9;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.dropdown-item:hover {
  background-color: #f8f9fa;
  color: var(--primary);
}

/* Offcanvas (menú móvil) */
.offcanvas-dark {
  background-color: #1e293b;
  color: white;
}

.offcanvas-dark .nav-link {
  color: #f1f5f9 !important;
  font-size: 1rem;
  border: none;
}

.offcanvas-dark .nav-link:hover,
.offcanvas-dark .nav-link.active {
  color: var(--primary) !important;
}

/* Botón Login */
.btn-login {
  border: 1px solid var(--primary);
  color: var(--primary);
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-login:hover {
  background-color: var(--primary);
  color: #fff;
}

/* ==========================================================
   DASHBOARD / ADMIN
=========================================================== */

.admin-wrapper {
  display: flex;
  min-height: 100vh;
}

main.content-area {
  flex-grow: 1;
  padding: 2rem;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.dashboard-card {
  border: none;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  background-color: #fff;
  position: relative;
}

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

.dashboard-card .card-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 180px;
}

.dashboard-card .card-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
  background: linear-gradient(45deg, var(--primary), var(--dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dashboard-card:hover .card-icon {
  transform: scale(1.15) rotate(5deg);
}

.dashboard-card .card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #343a40;
  margin: 0;
  transition: color 0.3s ease;
}

.dashboard-card:hover .card-title {
  color: var(--primary);
}

.dashboard-section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #495057;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--primary);
  display: inline-block;
}

.card-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #dc3545;
  color: white;
  border-radius: 12px;
  padding: 2px 8px;
  font-size: 0.75rem;
  font-weight: bold;
}

/* ==========================================================
   BREADCRUMB
=========================================================== */

.breadcrumb-section {
  background-color: #f1f5f9;
  padding: 0.8rem 0;
  margin-top: 70px;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.breadcrumb {
  margin-bottom: 0;
  font-size: 0.9rem;
}

.breadcrumb a {
  color: var(--primary);
  text-decoration: none;
}
