/* Variables CSS - PALETA CORPORATIVA PROFESIONAL */
:root {
  --primary-color: #0052CC;
  --primary-hover: #0747A6;
  --primary-light: #4C9AFF;
  --secondary-color: #2C3E50;
  --accent-color: #00B8D4;
  --accent-hover: #0097A7;
  --success-color: #10b981;
  --success-hover: #059669;
  --background: #FFFFFF;
  --background-light: #F8F9FA;
  --background-gray: #F4F5F7;
  --surface: #FFFFFF;
  --text-primary: #172B4D;
  --text-secondary: #5E6C84;
  --text-muted: #8993A4;
  --border: #DFE1E6;
  --border-light: #EBECF0;
  --gradient-primary: linear-gradient(135deg, #0052CC 0%, #0065FF 100%);
  --gradient-secondary: linear-gradient(135deg, #00B8D4 0%, #0097A7 100%);
  --gradient-success: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --gradient-accent: linear-gradient(135deg, #F4F5F7 0%, #FFFFFF 100%);
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.08), 0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 6px 16px rgba(0, 0, 0, 0.1), 0 12px 32px rgba(0, 0, 0, 0.08);
  --glow: 0 0 0 3px rgba(0, 82, 204, 0.1);
  --glow-success: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--background);
  overflow-x: hidden;
}

/* Header principal */
.main-header {
  background: linear-gradient(135deg, #FFFFFF 0%, #F8F9FA 50%, #F4F5F7 100%);
  padding: 6rem 5% 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-light);
}

.main-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%230052CC" fill-opacity="0.03"><circle cx="30" cy="30" r="1"/></g></svg>');
  opacity: 0.5;
  z-index: 1;
}

.header-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}

.header-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid var(--success-color);
  color: var(--success-color);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease;
}

.main-header h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 1s ease 0.2s both;
}

.main-header p {
  font-size: 1.3rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease 0.4s both;
}

.header-meta {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease 0.6s both;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 1rem;
}

.meta-item i {
  color: var(--primary-color);
  font-size: 1.2rem;
}

/* Navegación */
.back-nav {
  padding: 1.5rem 5%;
  background: var(--surface);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
}

.back-btn:hover {
  background: var(--background-light);
  transform: translateX(-5px);
}

/* Container principal */
.case-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 5%;
}

/* Secciones */
.case-section {
  margin-bottom: 4rem;
  padding: 3rem;
  background: var(--surface);
  border-radius: 1rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow);
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.section-title i {
  color: var(--primary-color);
  font-size: 2rem;
}

.section-subtitle {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 1rem;
  margin-top: 2rem;
}

/* Grid de métricas */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.metric-card {
  text-align: center;
  padding: 2rem;
  background: var(--background-light);
  border-radius: 1rem;
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
}

.metric-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.metric-value {
  font-size: 3rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  margin-bottom: 0.5rem;
}

.metric-label {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.metric-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Lista de características */
.features-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.features-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--background-light);
  border-radius: 0.75rem;
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
}

.features-list li:hover {
  background: var(--surface);
  border-color: var(--primary-light);
  transform: translateX(5px);
}

.features-list i {
  color: var(--primary-color);
  font-size: 1.2rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

/* Tecnologías usadas */
.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0;
}

.tech-tag {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--background-light);
  border: 1px solid var(--border-light);
  border-radius: 2rem;
  color: var(--text-primary);
  font-weight: 600;
  transition: all 0.3s ease;
}

.tech-tag:hover {
  background: rgba(0, 82, 204, 0.05);
  border-color: var(--primary-light);
  transform: translateY(-2px);
}

.tech-tag i {
  color: var(--primary-color);
  font-size: 1.3rem;
}

/* Galería de imágenes */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.gallery-item {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  border: 1px solid var(--border-light);
}

.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
}

/* Call to Action */
.cta-section {
  text-align: center;
  padding: 4rem 3rem;
  background: var(--background-light);
  border-radius: 1rem;
  border: 1px solid var(--border-light);
  margin-top: 4rem;
}

.cta-section h3 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.cta-section p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

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

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

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

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

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

/* Responsive */
@media (max-width: 768px) {
  .main-header {
    padding: 4rem 3% 3rem;
  }

  .main-header h1 {
    font-size: 2.5rem;
  }

  .main-header p {
    font-size: 1.1rem;
  }

  .case-container {
    padding: 3rem 3%;
  }

  .case-section {
    padding: 2rem 1.5rem;
  }

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

  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .metric-value {
    font-size: 2rem;
  }

  .features-list {
    grid-template-columns: 1fr;
  }

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

  .cta-section {
    padding: 3rem 2rem;
  }

  .cta-section h3 {
    font-size: 1.5rem;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Highlight boxes */
.highlight-box {
  background: rgba(0, 82, 204, 0.05);
  border-left: 4px solid var(--primary-color);
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 0.5rem;
}

.highlight-box p {
  color: var(--text-primary);
  font-size: 1.1rem;
  line-height: 1.8;
}

.highlight-box strong {
  color: var(--primary-color);
}

/* Success box */
.success-box {
  background: rgba(16, 185, 129, 0.05);
  border-left: 4px solid var(--success-color);
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 0.5rem;
}

.success-box p {
  color: var(--text-primary);
  font-size: 1.1rem;
  line-height: 1.8;
}

.success-box strong {
  color: var(--success-color);
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 3rem;
  margin: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-light);
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--background-light);
  border-radius: 0.75rem;
  border: 1px solid var(--border-light);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -3rem;
  top: 1.5rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary-color);
  border: 3px solid var(--surface);
}

.timeline-item h4 {
  color: var(--primary-color);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.timeline-item p {
  color: var(--text-secondary);
  line-height: 1.6;
}
