/* ============================================
   MONOLITOS VERTICALES - INFRAESTRUCTURA DE IA
   ============================================ */

.monoliths-section {
  background-color: #000000;
  padding-top: 128px;
  padding-bottom: 128px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.monoliths-container {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.monoliths-header {
  margin-bottom: 96px;
}

.monoliths-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  border-left: 2px solid #72021a;
  padding-left: 12px;
}

.monoliths-eyebrow-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #6b7280;
}

.monoliths-title {
  font-family: "Space Grotesk", Arial, sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 24px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.monoliths-description {
  color: #9ca3af;
  font-size: 1.125rem;
  line-height: 1.7;
  max-width: 42rem;
  font-weight: 300;
}

.monoliths-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .monoliths-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.monolith-card {
  position: relative;
  height: 750px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  cursor: pointer;
  background-color: #111827;
  transition: border-color 0.5s ease;
}

.monolith-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

/* Línea de carga superior (Hover Indicator) */
.monolith-hover-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: #010c42;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
  z-index: 30;
}

.monolith-card:hover .monolith-hover-line {
  transform: scaleX(1);
}

/* Imagen de fondo */
.monolith-image-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.monolith-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(50%);
  opacity: 0.8;
  transition: all 1s cubic-bezier(0.25, 1, 0.5, 1);
  transform: scale(1);
}

.monolith-card:hover .monolith-image {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.03);
}

/* Textura de ruido */
.monolith-noise {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
  opacity: 0.2;
  mix-blend-mode: overlay;
  pointer-events: none;
}

/* Gradiente oscuro inferior */
.monolith-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #000000 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
  opacity: 0.9;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.monolith-card:hover .monolith-gradient {
  opacity: 0.8;
}

/* Líneas de escaneo (scanlines) */
.monolith-scanlines {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 50%, rgba(255, 255, 255, 0.5) 50%);
  background-size: 100% 4px;
  opacity: 0;
  transition: opacity 0.7s ease;
  pointer-events: none;
}

.monolith-card:hover .monolith-scanlines {
  opacity: 0.1;
}

/* Elementos UI superiores */
.monolith-top-ui {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  z-index: 10;
}

.monolith-number {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.2em;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 4px 8px;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.monolith-plus {
  width: 20px;
  height: 20px;
  color: rgba(255, 255, 255, 0.3);
  transition: all 0.5s ease;
  pointer-events: none;
}

.monolith-card:hover .monolith-plus {
  color: #ffffff;
  transform: rotate(90deg);
}

.monolith-plus svg {
  width: 100%;
  height: 100%;
}

/* Contenido inferior (animado) */
.monolith-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 48px 32px;
  z-index: 20;
  transform: translateY(0);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.7) 60%, transparent 100%);
  padding-top: 120px;
}

.monolith-card:hover .monolith-content {
  transform: translateY(0);
}

/* Línea decorativa roja */
.monolith-red-line {
  width: 48px;
  height: 4px;
  background-color: #72021a;
  margin-bottom: 24px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}

.monolith-card:hover .monolith-red-line {
  transform: scaleX(1);
}

.monolith-card-title {
  font-family: "Space Grotesk", Arial, sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.monolith-card-description {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  line-height: 1.6;
  font-weight: 300;
  max-width: 20rem;
  opacity: 0.8;
  transition: opacity 0.5s ease;
}

.monolith-card:hover .monolith-card-description {
  opacity: 1;
}

/* Datos técnicos (aparecen al hover) */
.monolith-tech-info {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  justify-content: space-between;
  font-family: "IBM Plex Mono", monospace;
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #6b7280;
  opacity: 0;
  transition: opacity 0.7s ease 0.1s;
}

.monolith-card:hover .monolith-tech-info {
  opacity: 1;
}

@media (max-width: 767px) {
  .monoliths-section {
    padding-top: 64px;
    padding-bottom: 64px;
  }
  
  .monoliths-header {
    margin-bottom: 48px;
  }
  
  .monolith-card {
    height: 600px;
  }
  
  .monolith-content {
    padding: 32px 24px;
    padding-top: 100px;
  }
  
  .monolith-card-title {
    font-size: 1.75rem;
  }
}
