/* ========================================================= */
/* TÍTULO DE LA SECCIÓN                                      */
/* ========================================================= */

.hero-title {
  width: 100%;
  height: 55vh;
  min-height: 380px;
  background: #ffffff;
  display: flex;
  align-items: center;
  padding: 0 6%;
  overflow: hidden;
}

.hero-content {
  position: relative;
  width: 100%;
}

.hero-bg {
  font-size: clamp(4rem, 18vw, 8rem);
  font-weight: 700;
  color: #611232;
  letter-spacing: -0.04em;
  margin: 0;
  line-height: 1;
  user-select: none;
}

.hero-front {
  position: absolute;
  left: 5%;
  bottom: 20%;
  transform: translateY(80px);
}

.hero-subtitle {
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  font-weight: 300;
  letter-spacing: 0.4em;
  color: #000;
}

.hero-line {
  width: 160px;
  height: 5px;
  background-color: #003366;
  margin-top: 18px;
}

/* ========================================================= */
/* HERO RESPONSIVO                                           */
/* ========================================================= */

@media (max-width: 1023px) and (min-width: 768px) {
  .hero-title {
    height: 50vh;
    padding: 0 5%;
    margin-top: 20px;
  }

  .hero-bg {
    font-size: clamp(4.5rem, 16vw, 6.5rem);
  }

  .hero-front {
    left: 4%;
    bottom: 14%;
    transform: translateY(80px);
  }

  .hero-subtitle {
    letter-spacing: 0.3em;
  }

  .hero-line {
    width: 130px;
  }
}

@media (max-width: 767px) and (min-width: 481px) {
  .hero-title {
    height: 48vh;
    min-height: 340px;
    padding: 0 6%;
    margin-top: 10px;
  }

  .hero-bg {
    font-size: clamp(4rem, 18vw, 5.5rem);
  }

  .hero-front {
    left: 4%;
    bottom: 12%;
    transform: translateY(70px);
  }

  .hero-subtitle {
    font-size: 1.6rem;
    letter-spacing: 0.28em;
  }

  .hero-line {
    width: 110px;
  }
}

@media (max-width: 630px) {
  .hero-title {
    height: auto;
    min-height: 340px;
    padding: 90px 6% 48px;
  }

  .hero-bg {
    font-size: clamp(3.8rem, 14vw, 5rem);
    line-height: 1.05;
  }

  .hero-front {
    position: relative;
    left: 0;
    bottom: auto;
    transform: none;
    margin-top: 32px;
  }

  .hero-subtitle {
    font-size: 1.45rem;
    letter-spacing: 0.24em;
  }

  .hero-line {
    width: 100px;
    height: 4px;
    margin-top: 14px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    height: auto;
    min-height: 320px;
    padding: 80px 6% 40px;
    margin-top: 10px;
  }

  .hero-bg {
    font-size: 3.8rem;
  }

  .hero-front {
    position: relative;
    left: 0;
    bottom: auto;
    transform: none;
    margin-top: 24px;
  }

  .hero-subtitle {
    font-size: 1.3rem;
    letter-spacing: 0.22em;
  }

  .hero-line {
    width: 90px;
    height: 4px;
    margin-top: 12px;
  }
}

@media (max-width: 436px) {
  .hero-title {
    min-height: 320px;
    padding: 80px 6% 36px;
  }

  .hero-bg {
    font-size: 3.2rem;
    line-height: 1.05;
    letter-spacing: -0.03em;
  }

  .hero-front {
    position: relative;
    left: 0;
    bottom: auto;
    transform: none;
    margin-top: 26px;
  }

  .hero-subtitle {
    font-size: 1.25rem;
    letter-spacing: 0.2em;
  }

  .hero-line {
    width: 88px;
    height: 3.5px;
    margin-top: 12px;
  }
}

@media (max-width: 360px) {
  .hero-title {
    min-height: 300px;
    padding: 70px 5% 32px;
    margin-top: 10px;
  }

  .hero-bg {
    font-size: 2rem;
    letter-spacing: -0.03em;
  }

  .hero-front {
    margin-top: 20px;
  }

  .hero-subtitle {
    font-size: 1.15rem;
    letter-spacing: 0.18em;
  }

  .hero-line {
    width: 72px;
    height: 3px;
    margin-top: 10px;
  }
}

@media (max-width: 320px) {
  .hero-title {
    min-height: 280px;
    padding: 60px 4% 28px;
  }

  .hero-bg {
    font-size: 1.8rem;
  }

  .hero-subtitle {
    font-size: 1.05rem;
    letter-spacing: 0.16em;
  }

  .hero-line {
    width: 64px;
  }
}

/* ========================================================= */
/* CATÁLOGO DE INSTALACIONES                                 */
/* ========================================================= */

.section-bg {
  background-color: #000;
  width: 100%;
}

.section-wrapper {
  background-color: #000;
  display: flex;
  flex-direction: column;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px 50px;
}

.section-title {
  font-size: clamp(3.2rem, 3vw, 4.7rem);
  font-weight: 300;
  line-height: 1.05;
  color: #ffffff;
  margin-left: calc(35% + 24px);
  padding-top: 60px;
  padding-bottom: 40px;
  letter-spacing: -0.02em;
}

.cards-row {
  display: flex;
  gap: 20px;
  align-items: stretch;
  padding-bottom: 24px;
}

/* ========================================================= */
/* CARD IZQUIERDA                                            */
/* ========================================================= */

.card-left {
  flex: 0 0 35%;
  border-radius: 10px;
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 560px;
  box-sizing: border-box;
}

/* Color base primera tarjeta */
.card-left {
  background: linear-gradient(180deg, #050833 0%, #050833 100%);
}

/* Colores por tarjeta izquierda */
.card-left--dark {
  background: linear-gradient(180deg, #9d842d 0%, #7d6820 100%);
}

.card-left--green {
  background: linear-gradient(180deg, #bf303a 0%, #6f1c26 100%);
}

.card-left--red {
  background: linear-gradient(180deg, #7b3c75 0%, #4e2548 100%);
}

.card-left--blue {
  background: linear-gradient(180deg, #04543e 0%, #033f2f 100%);
}

.card-left--pink {
  background: linear-gradient(180deg, #3340b5 0%, #27328f 100%);
}

.card-top {
  display: flex;
  flex-direction: column;
}

.card-left .tag {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 12px;
}

.card-left .card-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.6rem, 1.8vw, 2.2rem);
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 18px;
  letter-spacing: -0.02em;
  line-height: 1.02;
}

.card-left .card-desc {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.7;
  font-weight: 300;
  max-width: 330px;
  margin: 0;
}

.card-left .card-tags {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: auto;
  padding-top: 40px;
}

.card-left .card-tags span {
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.45;
}

/* ========================================================= */
/* CARD DERECHA - IMÁGENES                                   */
/* ========================================================= */

.card-right {
  flex: 1;
  border-radius: 10px;
  min-height: 560px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #111;
}

/* PRIMERA FILA - SALA DE JUNTAS */
.card-right {
  background-image: url("../imagenes/salajuntas.png");
}

/* SEGUNDA FILA - VIDEOCONFERENCIAS */
.card-right--alt {
  background-image: url("../imagenes/salavideo.png");
}

/* TERCERA FILA - SALA C1 */
.card-right--green {
  background-image: url("../imagenes/salac1.png");
}

/* CUARTA FILA - SALA C3 */
.card-right--red {
  background-image: url("../imagenes/salac3.png");
}

/* QUINTA FILA - SALA C4 */
.card-right--blue {
  background-image: url("../imagenes/salac4.png");
}

/* SEXTA FILA - SALA DE CÓMPUTO */
.card-right--pink {
  background-image: url("../imagenes/salacompu.png");
}

/* ========================================================= */
/* TABLET HORIZONTAL                                         */
/* ========================================================= */

@media (max-width: 1024px) {
  .section-wrapper {
    padding: 0 24px 40px;
  }

  .section-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    margin-left: calc(40% + 20px);
    padding-top: 48px;
    padding-bottom: 32px;
  }

  .card-left {
    flex: 0 0 40%;
    min-height: 480px;
    padding: 32px 28px;
  }

  .card-right {
    min-height: 480px;
  }

  .card-left .card-title {
  font-size: 1.45rem;
}
}

/* ========================================================= */
/* TABLET VERTICAL                                           */
/* ========================================================= */

@media (max-width: 768px) {
  .section-wrapper {
    padding: 0 20px 34px;
  }

  .section-title {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    margin-left: 0;
    padding-top: 40px;
    padding-bottom: 28px;
  }

  .cards-row {
    flex-direction: column;
    gap: 12px;
    padding-bottom: 16px;
  }

  .card-left {
    flex: none;
    width: 100%;
    min-height: auto;
    padding: 30px 26px;
  }

  .card-left .card-desc {
    max-width: 100%;
  }

  .card-left .card-tags {
    padding-top: 28px;
  }

  .card-right {
    width: 100%;
    min-height: 320px;
  }
}

/* ========================================================= */
/* MÓVIL                                                     */
/* ========================================================= */

@media (max-width: 480px) {
  .section-wrapper {
    padding: 0 16px 28px;
  }

  .section-title {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
    padding-top: 32px;
    padding-bottom: 24px;
  }

  .cards-row {
  display: flex;
  gap: 20px;
  align-items: stretch;
  padding-bottom: 24px;
}

.card-left,
.card-right {
  min-height: 560px;
  height: 560px;
  box-sizing: border-box;
}

.card-left {
  flex: 0 0 35%;
  border-radius: 10px;
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.card-right {
  flex: 1;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #111;
}
}