:root {
  --bg-color: #f8f6f5;
  --border-color: #e52514;
  --detail-main: #000000;
  --detail-alt: #8f8f9f;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: Arial, sans-serif;
  background: var(--bg-color);
  color: var(--detail-main);
  line-height: 1.5;
}
.body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.section {
  background: #fff;
  padding: 2rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-color);
  border-radius: 24px !important;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s, background 0.18s, color 0.18s;
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.4s ease both;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.section i {
  transition: transform 0.3s;
}
.section:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  background: #e52514;
  color: #fff;
}
.section:hover i {
  transform: scale(1.2);
  color: #fff !important;
}
.section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(40,167,69,0.15), rgba(0,0,0,0));
  opacity: 0;
  transition: opacity 0.3s;
}
.section:hover::before {
  opacity: 1;
}
.section h2 {
  margin-bottom: 1rem;
}

.footer {
  text-align: center;
  padding: 1rem;
  background: #8f8f9f;
  margin-top: auto;
}
.footer__text {
  color: #fff;
}

.hero-img {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
  transition: transform 0.3s;
}
.hero-img:hover {
  transform: scale(1.05);
}


.learn-more-btn {
  background-color: #e52514;
  border-color: #e52514;
  color: #fff;
  border-radius: 24px !important;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s, color 0.18s;
  box-shadow: none;
  border: none;
}
.learn-more-btn:hover {
  background-color: #8f8f9f;
  border-color: #8f8f9f;
  color: #fff;
}


.options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.option-card {
  background: #8f8f9f;
  border: 1px solid var(--border-color);
  border-radius: 24px !important;
  padding: 2rem;
  text-align: center;
  text-decoration: none;
  color: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.4s ease both;
}

.option-card i {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  transition: transform 0.3s;
  color: #fff;
}

.option-card:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  background: #e52514;
  color: #fff;
}

.option-card:hover i {
  transform: scale(1.2);
  color: #fff;
}

.option-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(40,167,69,0.15), rgba(0,0,0,0));
  opacity: 0;
  transition: opacity 0.3s;
}

.option-card:hover::before {
  opacity: 1;
}

/* Estilos específicos para el botón principal de crear */
.option-card-primary {
  background: #e52514 !important;
  color: #fff !important;
  padding: 3rem 2rem !important;
  min-height: 180px;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
}

.option-card-primary i {
  color: #fff !important;
  font-size: 3rem !important;
}

.option-card-primary h4 {
  color: #fff !important;
  font-size: 1.5rem !important;
  font-weight: 600 !important;
}

.option-card-primary p {
  color: #fff !important;
  font-size: 0.95rem !important;
}

.option-card-primary:hover {
  background: #8f8f9f !important;
  color: #fff !important;
}

.option-card-primary:hover i,
.option-card-primary:hover h4,
.option-card-primary:hover p {
  color: #fff !important;
}

/* Estilos específicos para botones secundarios */
.option-card-secondary {
  background: #8f8f9f !important;
  color: #fff !important;
}

.option-card-secondary i {
  color: #fff !important;
}

.option-card-secondary:hover {
  background: #e52514 !important;
  color: #fff !important;
}

.option-card-secondary:hover i {
  color: #fff !important;
}

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


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

.project-card-header {
  background: var(--detail-alt);
  color: #fff;
}


.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1050;
}


.project-dropdown-menu {
  min-width: 100% !important;
  width: max-content;
  box-sizing: border-box;
  max-height: 260px;
  overflow-y: auto;
}
.project-dropdown-menu .dropdown-item {
  border-radius: 4px;
}
.project-dropdown-menu .dropdown-item:hover {
  background-color: #e9ecef;
}
.dropdown-title {
  display: block;
  font-size: 1em;
  color: #222;
  font-weight: 500;
}
.dropdown-id {
  display: block;
  color: #8F8F9F;
  font-size: 0.93em;
  font-style: italic;
  margin-top: -2px;
  word-break: break-all;
}

.logo-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 220px;
  width: 220px;
  margin: 1rem auto;
  transition: transform 0.3s, box-shadow 0.3s;
}
.logo-card:hover {
  transform: scale(1.12);
  box-shadow: 0 12px 36px rgba(0,0,0,0.18);
}
.logo-card img {
  max-width: 80%;
  max-height: 80%;
  display: block;
}


.progress-segment {
  display: inline-block;
  height: 18px;
  min-width: 0;
  width: 0;
  text-align: center;
  line-height: 18px;
  font-size: 1.1em;
  font-weight: bold;
  color: #fff;
  position: relative;
  z-index: 1;
  opacity: 1;
  vertical-align: top;
  animation: progressFill 0.7s cubic-bezier(.4,1.4,.6,1) forwards;
}
.progress-segment.progress-aprobado,
.progress-segment.progress-rechazado,
.progress-segment.progress-observado,
.progress-segment.progress-pendiente {
  border-radius: 0;
}
.progress-segment:first-child {
  border-radius: 24px 0 0 24px;
}
.progress-segment:last-child {
  border-radius: 0 24px 24px 0;
}
.progress-aprobado {
  background: #28a745;
}
.progress-rechazado {
  background: #e52514;
}
.progress-observado {
  background: #ffc107;
  color: #222;
}
.progress-pendiente {
  background: #e0e0e0;
  color: #bbb;
}
@keyframes progressFill {
  from { width: 0; }
  to   { width: var(--final-width, 20%); }
}
