/* ================= INDUSTRIES SECTION ================= */

.industries-section {
  width: 100%;
  background: #fff;
  overflow: hidden;
  font-family: inherit;
}

/* Top Red Bar */
.industries-header {
  background: #b00024;
  padding: 40px 60px;
}

.industries-header h1 {
  color: #fff;
  font-size: 42px;
  font-weight: 700;
  margin: 0;
  margin-top: 85px;
  margin-left: 105px;
}

/* Content Layout */
.industries-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px 10px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: center;
}

/* Text */
.industries-label {
  font-size: 14px;
  letter-spacing: 2px;
  color: #666;
  display: block;
  margin-bottom: 16px;
}

.industries-text h2 {
  font-size: 44px;
  font-weight: 700;
  color: #000;
  margin-bottom: 25px;
  line-height: 1.2;
}

.industries-text p {
  font-size: 18px;
  line-height: 1.8;
  color: #444;
  max-width: 450px;
  text-align: justify;
}
/* Wrapper */
.industries-image-wrap {
  overflow: hidden;
}

/* Frame */
.industries-image-frame {
  position: relative;
  overflow: hidden;
}

/* Image */
.industries-image-frame img {
  width: 100%;
  height: 450px;
  display: block;
  object-fit: cover;

  /* Image animation */
  clip-path: inset(0 100% 0 0);
  animation: imageUnfold 1.2s ease forwards;
}

/* Animated Border (ON TOP) */
.industries-image-frame::before {
  content: "";
  position: absolute;
  inset: 0;

  border: 8px solid #b00024;
  box-sizing: border-box;

  z-index: 2;              /* ✅ IMPORTANT */
  pointer-events: none;

  /* Border animation */
  clip-path: inset(0 100% 0 0);
  animation: frameUnfold 1.2s ease forwards;
}

/* Animations */
@keyframes imageUnfold {
  to {
    clip-path: inset(0 0 0 0);
  }
}

@keyframes frameUnfold {
  to {
    clip-path: inset(0 0 0 0);
  }
}



/* Text Fade */
.industries-text {
  opacity: 0;
  transform: translateY(30px);
  animation: textReveal 1s ease forwards;
  animation-delay: 0.4s;
}

@keyframes textReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================= RESPONSIVE ================= */

@media (max-width: 992px) {
  .industries-container {
    grid-template-columns: 1fr;
    padding: 60px 40px;
    gap: 50px;
  }

  .industries-text h2 {
    font-size: 34px;
  }

  .industries-header {
    padding: 40px;
  }
}

@media (max-width: 576px) {
  .industries-header h1 {
    font-size: 30px;
  }

  .industries-text h2 {
    font-size: 28px;
  }

  .industries-container {
    padding: 30px 20px;
  }
  .industries-header h1 {
  color: #fff;
  font-size: 42px;
  font-weight: 700;
  margin: 0;
  margin-top: 10px;
  text-align: center;
}
}

/* ================================
   CALLE INDUSTRIES SECTION ONLY
================================ */
.ci-industries {
  padding: 80px 0;
  background: #ffffff;
}

.ci-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* GRID */
.ci-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}

/* CARD */
.ci-card {
  background: #f8f9fb;
  position: relative;
  overflow: hidden;
}

/* RED LINE */
.ci-card::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 4px;
  background: #c8102e;
  transition: width 0.4s ease;
}

.ci-card:hover::after {
  width: 100%;
}

/* IMAGE */
.ci-img {
  overflow: hidden;
}

.ci-img img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.ci-card:hover img {
  transform: scale(1.08);
}

/* CONTENT */
.ci-content {
  padding: 28px;
}

.ci-content h3 {
  font-size: 20px;
  margin-bottom: 14px;
  color: #111;
}

.ci-red {
  color: #c8102e;
}

.ci-content p {
  font-size: 15px;
  line-height: 1.7;
  color: #666;
}

/* ================================
   ANIMATIONS
================================ */
.ci-ltr {
  opacity: 0;
  transform: translateX(-60px);
  transition: all 0.8s ease;
}

.ci-rtl {
  opacity: 0;
  transform: translateX(60px);
  transition: all 0.8s ease;
}

.ci-ltr.show,
.ci-rtl.show {
  opacity: 1;
  transform: translateX(0);
}

/* ================================
   RESPONSIVE
================================ */
@media (max-width: 991px) {
  .ci-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575px) {
  .ci-grid {
    grid-template-columns: 1fr;
  }

  /* disable slide on mobile (safe UX) */
  .ci-ltr,
  .ci-rtl {
    opacity: 1;
    transform: none;
  }
}
