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

:root {
  --primary: #D80F2C; /* Rojo Carmesí del Brandbook */
  --primary-hover: #b30c25;
  --primary-light: rgba(216, 15, 44, 0.08);
  --bg-color: #F2F2F2; /* Blanco tiza */
  --surface: #FFFFFF; /* Blanco puro */
  --text-main: #1f2937;
  --text-muted: #4b5563;
  --border-color: #e5e7eb;
  
  /* Sombras más sutiles y elegantes (corporativas) */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.05), 0 4px 6px -2px rgba(0,0,0,0.02);
  
  /* Bordes menos redondeados para un look estructurado y serio */
  --radius-md: 4px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  
  /* Colores de etiquetas */
  --tag-saber: #1f2937;
  --tag-hacer: #D80F2C;
  --tag-ser: #4b5563;
}

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

body {
  font-family: 'Roboto', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

/* Layout Dashboard */
.dashboard {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  background: var(--surface);
  border-right: 1px solid var(--border-color);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 10;
}

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

.brand img {
  max-width: 160px;
  height: auto;
}

.nav-menu {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-weight: 500;
  transition: all 0.2s ease;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-item i {
  font-size: 1.1rem;
}

.nav-item:hover {
  background-color: var(--bg-color);
  color: var(--primary);
}

.nav-item.active {
  background-color: var(--primary-light);
  color: var(--primary);
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.client-info {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 12px;
}

.client-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  object-fit: cover;
  border: 1px solid var(--border-color);
}

.client-details h4 {
  font-size: 0.9rem;
  margin-bottom: 0.1rem;
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
}

.client-details p {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Main Content */
.main-content {
  padding: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* Hero Section */
.hero {
  position: relative;
  background-color: #000;
  border-radius: var(--radius-lg);
  padding: 4rem 3rem;
  color: white;
  margin-bottom: 3rem;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.hero-video-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translateX(-50%) translateY(-50%);
  object-fit: cover;
  opacity: 0.4;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 0.4rem 0.8rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  color: white;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  max-width: 800px;
  letter-spacing: -0.5px;
}

.hero p {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 600px;
  font-weight: 300;
}

/* Section Styling */
.section {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--bg-color);
}

.section-title {
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-main);
}

/* Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-left: 3px solid var(--border-color);
  padding: 1.5rem;
  transition: all 0.3s ease;
}

@media (min-width: 768px) {
  .span-2-desktop {
    grid-column: span 2;
  }
}

.card:hover {
  border-left-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.card-badge {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.25rem 0.5rem;
  margin-bottom: 1rem;
  background: var(--bg-color);
  color: var(--text-muted);
}

.badge-hacer {
  background: var(--primary-light);
  color: var(--primary);
}

.card-title {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  letter-spacing: -0.2px;
}

.card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.card-list {
  list-style: none;
}

.card-list li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.card-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 4px;
  height: 4px;
  background-color: var(--primary);
  border-radius: 50%;
}

/* Facilitator Section */
.facilitator {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.facilitator img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--bg-color);
}
.facilitator-info h3 {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}
.facilitator-info p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  font-size: 0.85rem;
  border-radius: var(--radius-md);
}

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

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

.btn-outline {
  background-color: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-outline:hover {
  border-color: var(--text-main);
  background-color: var(--bg-color);
}

/* Diagnostic Section */
.diagnostic-banner {
  background: var(--surface);
  border: 1px solid var(--primary);
  border-left: 4px solid var(--primary);
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 3rem;
}

.diagnostic-text h3 {
  color: var(--text-main);
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.diagnostic-text p {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 500px;
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(31, 41, 55, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--surface);
  width: 90%;
  max-width: 500px;
  padding: 2.5rem;
  position: relative;
  transform: translateY(10px);
  transition: all 0.3s ease;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-overlay.active .modal {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.25rem;
  color: var(--text-muted);
  cursor: pointer;
}

.modal-close:hover {
  color: var(--primary);
}

/* Form Styles */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  background-color: var(--bg-color);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  background-color: var(--surface);
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%234b5563'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1em;
}

.success-message {
  display: none;
  background: var(--bg-color);
  border-left: 4px solid #059669;
  color: var(--text-main);
  padding: 1.5rem;
  margin-top: 1rem;
  font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 992px) {
  .dashboard {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem;
  }
  .main-content {
    padding: 1.5rem;
  }
  .facilitator {
    flex-direction: column;
    text-align: center;
  }
}
