.cic-container {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  text-align: center;
  gap: 20px;
  max-width: 1200px;
  margin: 30px auto;
  flex-wrap: wrap;
  overflow: hidden;
}

.cic-column {
  flex: 1;
  min-width: 180px;
  background: #fff;
  border-radius: 20px;
  padding: 20px;
  position: relative;
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.cic-column.small { flex: 0.8; }
.cic-column.large { flex: 1.3; }

/* Animación de entrada */
.cic-column.appear {
  opacity: 1;
  transform: translateX(0);
}

/* Efecto hover: línea roja que recorre el borde */
.cic-column::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: 3px solid transparent;
  border-radius: 20px;
  pointer-events: none;
  transition: border 0.4s ease;
  box-sizing: border-box;
}

.cic-column1:hover::before {
  border-color: #278fff;
  animation: borderDraw 1.2s ease-in-out forwards;
}

.cic-column2:hover::before {
  border-color: #f43931;
  animation: borderDraw 1.2s ease-in-out forwards;
}

.cic-column3:hover::before {
  border-color: #fed05d;
  animation: borderDraw 1.2s ease-in-out forwards;
}

.cic-column4:hover::before {
  border-color: #9bdc91;
  animation: borderDraw 1.2s ease-in-out forwards;
}

@keyframes borderDraw {
  0% {
    clip-path: polygon(0 0, 0 0, 0 100%, 0 100%, 0 0);
  }
  25% {
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0, 0 0);
  }
  50% {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 100% 100%, 0 0);
  }
  75% {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 0 100%);
  }
  100% {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 0 0);
  }
}

.cic-column a {
  text-decoration: none;
  color: inherit;
  display: block;
  position: relative;
  z-index: 2;
}

.cic-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 10px;
  transition: transform 0.3s ease;
}

.cic-column:hover .cic-icon {
  transform: scale(1.15);
}

.cic-column p {
  font-size: 16px;
  color: #333;
  margin: 0;
  font-weight: 500;
}

@media (max-width: 768px) {
  .cic-container {
    flex-direction: column;
  }
  .cic-column {
    transform: translateY(30px);
  }
  .cic-column.appear {
    transform: translateY(0);
  }
}

.cic-column {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
  visibility: visible !important;
}

.cic-column.appear {
  opacity: 1 !important;
  transform: translateX(0) !important;
}