:root {
  --color-primary: #1C53C5;
  --color-primary-hover: #1748A8;
  --color-light-blue: #E8F0FE;
  --color-border: #D8E2F1; /* Darker border color */
  --color-dark-gray: #1A1A1A;
  --color-text: #333333;
  --color-text-secondary: #4a4a4a;
  --color-gray-soft: #B0B0B0;
  --color-yellow: #FFB800;
  --color-cyan: #3EDBF0;
  --color-error: #E63946;
  --color-success: #2ECC71;
  --color-white: #FFFFFF;
}

/* GENERAL STYLES */
body {
  background-color: var(--color-white);
  color: var(--color-dark-gray);
  font-family: 'system-ui', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5 {
  font-weight: 700;
  color: var(--color-primary);
}

.bg-light {
  background-color: var(--color-light-blue) !important;
  color: var(--color-success) !important;
}

.text-brand,
.text-primary {
  color: var(--color-primary) !important;
}

.text-success {
  color: var(--color-success) !important;
}

.text-muted {
  color: var(--color-text-secondary) !important;
}

.lead {
  font-weight: 400;
}

.badge.bg-primary {
  background-color: var(--color-primary) !important;
}

/* HERO */
.hero {
  background: var(--color-primary);
  min-height: 100vh;
  padding: 3rem 1rem;
  color: var(--color-white);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero img {
  max-width: 96px;
  border-radius: 20%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  background-color: var(--color-white);
  padding: 8px;
}

.hero h1, .hero h2, .hero h3, .hero h4, .hero h5 {
  color: var(--color-white);
}

.hero p {
  color: var(--color-light-blue) !important;
  opacity: 0.9;
  font-size: 1.25rem;
  max-width: 600px;
}

.hero span.text-warning {
  color: var(--color-yellow);
  font-weight: 900;
}

/* BUTTONS */
.btn-primary {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 0.75rem 1.5rem;
  transition: all 0.2s ease-in-out;
}

.btn-primary:hover {
  background-color: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  transform: scale(1.03);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}

.btn-outline-primary {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

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

/* Hero-specific button styles */
.hero .btn-primary {
  background-color: var(--color-white);
  border-color: var(--color-white);
  color: var(--color-primary);
  font-weight: 700;
}

.hero .btn-primary:hover {
  background-color: var(--color-light-blue);
  border-color: var(--color-light-blue);
  color: var(--color-primary);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.hero .btn-outline-light {
  color: var(--color-white);
  border-color: var(--color-white);
  border-width: 2px;
  font-weight: 600;
}

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

/* CARDS */
.card, .pricing-card {
  background: var(--color-white);
  border: 1px solid #e0e0e0;
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.07);
  transition: all 0.2s ease-in-out;
}

.card:hover, .pricing-card:hover {
  transform: translateY(-4px);
  background-color: var(--color-light-blue);
}

.card h3, .card h5 {
  color: var(--color-primary);
}

/* ALTERNATING TIMELINE */
.timeline-alt {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 0;
  transition: max-width 0.3s ease;
}

.timeline-alt::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 100%;
  background-color: var(--color-border);
}

.timeline-item-alt {
  position: relative;
  width: 50%;
  margin-bottom: 3rem;
  padding: 0 2.5rem;
}

.timeline-item-alt:last-child {
  margin-bottom: 0;
}

.timeline-item-alt:nth-child(odd) {
  left: 0;
}

.timeline-item-alt:nth-child(even) {
  left: 50%;
}

.timeline-icon {
  position: absolute;
  top: 0.8rem;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background-color: var(--color-primary);
  border: 4px solid var(--color-border);
  z-index: 10;
}

.timeline-item-alt:nth-child(odd) .timeline-icon {
  right: -0.625rem;
}

.timeline-item-alt:nth-child(even) .timeline-icon {
  left: -0.625rem;
}

.timeline-body-alt {
  background-color: var(--color-white);
  border-radius: 8px;
  border: 1px solid var(--color-border);
  padding: 1.5rem;
  position: relative;
}

.timeline-body-alt::before {
  content: '';
  position: absolute;
  top: 1rem;
  width: 0;
  height: 0;
  border: 10px solid transparent;
}

.timeline-item-alt:nth-child(odd) .timeline-body-alt::before {
  right: -20px;
  border-left-color: var(--color-border);
}

.timeline-item-alt:nth-child(even) .timeline-body-alt::before {
  left: -20px;
  border-right-color: var(--color-border);
}

.timeline-content-alt h5 {
  font-weight: 700;
  color: var(--color-primary);
}

.timeline-content-alt p {
  margin-bottom: 0;
}

.timeline-content-alt strong {
  font-weight: 600;
  color: var(--color-dark-gray);
}

/* Timeline Responsive */
@media (max-width: 768px) {
  .timeline-alt::before {
    left: 1rem;
    transform: translateX(0);
  }

  .timeline-item-alt:nth-child(odd),
  .timeline-item-alt:nth-child(even) {
    width: 100%;
    left: 0;
    padding-left: 3rem;
    padding-right: 1rem;
  }

  .timeline-icon,
  .timeline-item-alt:nth-child(odd) .timeline-icon,
  .timeline-item-alt:nth-child(even) .timeline-icon {
    left: 0.375rem;
  }

  .timeline-body-alt::before {
    display: none;
  }
}

@media (min-width: 1200px) {
  .timeline-alt {
    max-width: 1140px;
  }
}

/* TECH STACK */
.tech-stack-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.tech-badge {
  background-color: var(--color-white);
  color: var(--color-primary);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 500;
  border: 1px solid var(--color-light-blue);
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* FOOTER */
footer {
  background-color: var(--color-dark-gray);
  color: var(--color-white);
  font-size: 14px;
  padding: 1rem 0;
}

footer small {
  opacity: 0.85;
}

/* RESPONSIVE */
@media (max-width: 576px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero img {
    max-width: 72px;
  }
}

#acceso {
  background-color: #ffffff;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

#acceso h2 {
  font-size: 2.2rem;
  color: #1f3b73;
}

#acceso .btn-warning {
  background-color: #ffc107;
  border: none;
  font-size: 1.1rem;
  transition: all 0.2s ease-in-out;
}

#acceso .btn-warning:hover {
  background-color: #ffb300;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}
