/* ============================================
   TUTORIAL INTERACTIVO - SISTEMA DE VETERINARIA
   Estilo: "Huellas Digitales"
   ============================================ */

:root {
  --primary: #A7F3D0;      /* Mint Green */
  --secondary: #BAE6FD;    /* Soft Blue */
  --accent: #FDA4AF;       /* Coral */
  --dark: #1F2937;         /* Dark Gray */
  --light: #F9FAFB;        /* Light Gray */
  --white: #FFFFFF;
  --success: #10B981;      /* Green */
  --warning: #F59E0B;      /* Amber */
  --danger: #EF4444;       /* Red */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Quicksand', 'Open Sans', sans-serif;
  background-color: var(--light);
  color: var(--dark);
  line-height: 1.6;
}

/* ============================================
   HEADER Y NAVEGACIÓN
   ============================================ */

header {
  background: linear-gradient(135deg, var(--white) 0%, #F0F9FF 100%);
  border-bottom: 2px solid var(--primary);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--dark);
  font-weight: bold;
  font-size: 1.5rem;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.5rem;
}

.logo-text h1 {
  font-size: 1.25rem;
  margin: 0;
}

.logo-text p {
  font-size: 0.75rem;
  color: #6B7280;
  margin: 0;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

nav a {
  color: var(--dark);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

nav a:hover {
  color: var(--primary);
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

@media (max-width: 768px) {
  nav ul {
    gap: 1rem;
    font-size: 0.9rem;
  }
}

/* ============================================
   CONTENEDOR PRINCIPAL
   ============================================ */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.section {
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: var(--dark);
}

.section-subtitle {
  font-size: 1.1rem;
  color: #6B7280;
  margin-bottom: 2rem;
}

/* ============================================
   TARJETAS
   ============================================ */

.card {
  background: var(--white);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

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

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

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--dark);
}

.card-description {
  color: #6B7280;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.card-content {
  color: #4B5563;
  line-height: 1.8;
}

/* Variantes de tarjetas */

.card.admin {
  border-color: var(--primary);
}

.card.admin .card-icon {
  background: linear-gradient(135deg, #D1FAE5 0%, #A7F3D0 100%);
  color: #059669;
}

.card.colaborador {
  border-color: var(--secondary);
}

.card.colaborador .card-icon {
  background: linear-gradient(135deg, #DBEAFE 0%, #BAE6FD 100%);
  color: #0369A1;
}

.card.paciente {
  border-color: var(--accent);
}

.card.paciente .card-icon {
  background: linear-gradient(135deg, #FBCFE8 0%, #FDA4AF 100%);
  color: #BE185D;
}

/* ============================================
   GRID DE MÓDULOS
   ============================================ */

.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.module-card {
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.module-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.module-card:hover::before {
  left: 100%;
}

/* ============================================
   BOTONES
   ============================================ */

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  text-align: center;
  font-family: inherit;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #6EE7B7 100%);
  color: var(--dark);
  border: 2px solid transparent;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(167, 243, 208, 0.4);
}

.btn-secondary {
  background: var(--white);
  color: var(--dark);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background: var(--primary);
  color: var(--dark);
}

.btn-outline {
  background: transparent;
  color: var(--dark);
  border: 2px solid var(--dark);
}

.btn-outline:hover {
  background: var(--dark);
  color: var(--white);
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

.btn-block {
  width: 100%;
  display: block;
}

/* ============================================
   TABS
   ============================================ */

.tabs {
  margin: 2rem 0;
}

.tab-buttons {
  display: flex;
  gap: 0.5rem;
  border-bottom: 2px solid #E5E7EB;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 0.75rem 1.5rem;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  font-weight: 600;
  color: #6B7280;
  transition: all 0.3s ease;
  font-family: inherit;
  font-size: 1rem;
}

.tab-btn:hover {
  color: var(--dark);
}

.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

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

/* ============================================
   ALERTAS Y CAJAS DE INFORMACIÓN
   ============================================ */

.alert {
  padding: 1rem;
  border-radius: 8px;
  margin: 1rem 0;
  border-left: 4px solid;
}

.alert-info {
  background: #DBEAFE;
  border-color: var(--secondary);
  color: #0369A1;
}

.alert-success {
  background: #DCFCE7;
  border-color: var(--success);
  color: #166534;
}

.alert-warning {
  background: #FEF3C7;
  border-color: var(--warning);
  color: #92400E;
}

.alert-danger {
  background: #FEE2E2;
  border-color: var(--danger);
  color: #991B1B;
}

/* ============================================
   LISTAS NUMERADAS
   ============================================ */

.steps {
  list-style: none;
  counter-reset: step-counter;
}

.steps li {
  counter-increment: step-counter;
  margin-bottom: 1.5rem;
  display: flex;
  gap: 1rem;
}

.steps li::before {
  content: counter(step-counter);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--primary) 0%, #6EE7B7 100%);
  color: var(--dark);
  border-radius: 50%;
  font-weight: bold;
  flex-shrink: 0;
}

.steps li > div {
  flex: 1;
}

.steps li strong {
  color: var(--dark);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  background: linear-gradient(135deg, #F0F9FF 0%, #F0FDF4 100%);
  border-radius: 12px;
  padding: 3rem 2rem;
  margin: 2rem 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.hero-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-content p {
  font-size: 1.1rem;
  color: #6B7280;
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

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

.hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-content h2 {
    font-size: 1.75rem;
  }
}

/* ============================================
   FOOTER
   ============================================ */

footer {
  background: var(--dark);
  color: var(--white);
  text-align: center;
  padding: 2rem;
  margin-top: 3rem;
}

footer p {
  margin: 0.5rem 0;
}

/* ============================================
   UTILIDADES
   ============================================ */

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

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

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.rounded {
  border-radius: 8px;
}

.shadow {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.bg-light {
  background-color: var(--light);
}

.bg-white {
  background-color: var(--white);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  .container {
    padding: 1rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  nav ul {
    gap: 1rem;
  }

  .modules-grid {
    grid-template-columns: 1fr;
  }
}
