/* --- Sección Principal --- */

.sectors-section {
  position: relative;
  width: 100%;
  padding: 140px 0;
  overflow: hidden;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 50%, #f8f9fa 100%);
}

/* Capa de degradado que se funde con la imagen de fondo */

.sectors-gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient( 180deg, rgba(248, 249, 250, 0.95) 0%, rgba(248, 249, 250, 0.7) 20%, rgba(248, 249, 250, 0.5) 50%, rgba(248, 249, 250, 0.7) 80%, rgba(248, 249, 250, 0.95) 100% );
  z-index: 1;
  pointer-events: none;
}

/* Contenedor para la imagen de fondo (se activa cuando le pongas URL) */

.sectors-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: 0;
}

.sectors-container {
  position: relative;
  z-index: 2;
}

/* --- Encabezado de Sección --- */

.pre-title-sectors {
  display: inline-block;
  color: #2563eb;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 15px;
}

.section-title-sectors {
  color: #1a1a1a;
  font-family: 'Outfit', sans-serif;
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Panel de Sector (Glassmorphism Claro) --- */

.sector-panel {
  height: 100%;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 28px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 1);
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  display: flex;
  flex-direction: column;
}

.sector-panel:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.1), 0 0 40px rgba(37, 99, 235, 0.08), inset 0 1px 0 rgba(255, 255, 255, 1);
}

/* --- Cabecera del Panel con Imagen Hero --- */

.sector-panel-header {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.sector-hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-color: #d1d5db;
  transition: transform 0.6s ease;
  display: flex;
  justify-content: center;
  align-items: center;
}

.sector-panel:hover .sector-hero-image {
  transform: scale(1.05);
}

/* Texto placeholder de la imagen (borrar al poner imagen real) */

.image-placeholder-text {
  color: rgba(0, 0, 0, 0.25);
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Overlay oscuro degradado sobre la imagen */

.sector-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.6) 100%);
  z-index: 1;
}

/* Título del Panel superpuesto */

.sector-panel-title {
  position: absolute;
  bottom: 20px;
  left: 25px;
  right: 25px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 2;
}

.sector-icon-box {
  width: 45px;
  height: 45px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.sector-icon-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sector-panel:hover .sector-icon-box {
  background: rgba(37, 99, 235, 0.6);
  transform: scale(1.05);
}

.sector-panel-title h3 {
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

/* --- Lista de Tipos de Proyecto --- */

.sector-list {
  list-style: none;
  padding: 25px;
  margin: 0;
  flex-grow: 1;
}

.sector-list-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px 15px;
  border-radius: 14px;
  transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
  cursor: pointer;
  border: 1px solid transparent;
}

.sector-list-item:hover {
  background: rgba(37, 99, 235, 0.06);
  border-color: rgba(37, 99, 235, 0.15);
  transform: translateX(6px);
}

/* Imagen pequeña de cada tipo de proyecto */

.list-image-box {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(37, 99, 235, 0.08);
  border: 1px dashed rgba(37, 99, 235, 0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  overflow: hidden;
  transition: all 0.35s ease;
}

.list-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sector-list-item:hover .list-image-box {
  border-color: rgba(37, 99, 235, 0.6);
  background: rgba(37, 99, 235, 0.15);
  transform: scale(1.08);
  box-shadow: 0 5px 15px rgba(37, 99, 235, 0.2);
}

/* Placeholder temporal para los iconos de la lista */

.list-icon-placeholder {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.4);
}

.sector-list-item span {
  color: #2d3748;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.sector-list-item:hover span {
  color: #7ca317;
  font-weight: 600;
}

/* --- Animaciones de Scroll --- */

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */

@media (max-width: 991px) {
  .section-title-sectors {
    font-size: 2.2rem;
  }
}

@media (max-width: 991px) {
  .sector-panel {
    margin-bottom: 20px;
  }
}

@media (max-width: 768px) {
  .sectors-section {
    padding: 80px 0;
  }
}

@media (max-width: 768px) {
  .section-title-sectors {
    font-size: 1.8rem;
  }
}

@media (max-width: 768px) {
  .sector-panel-header {
    height: 160px;
  }
}

@media (max-width: 768px) {
  .sector-panel-title h3 {
    font-size: 1.25rem;
  }
}

@media (max-width: 768px) {
  .sector-list {
    padding: 15px;
  }
}

@media (max-width: 768px) {
  .sector-list-item {
    padding: 10px;
    gap: 12px;
  }
}

@media (max-width: 768px) {
  .list-image-box {
    width: 38px;
    height: 38px;
  }
}

@media (max-width: 768px) {
  .sector-list-item span {
    font-size: 0.88rem;
  }
}

