.hero {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../imagenes/hero1.jpg') center/cover no-repeat;
    min-height: calc(100vh - 72px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: 0 20px;
}

.scroll-triangle {
  width: 100%;
  height: 0;
  border-left: 100vw solid transparent;
  border-right: 0 solid transparent;
  border-top: 100px solid white;
  transform: translateY(-150px);
  opacity: 0;
  transition: transform 1s ease-in-out, opacity 1s ease-in-out;
}

.scroll-triangle.visible {
  transform: translateY(0);
  opacity: 1;
}

.contenido-posterior {
  padding: 50px;
  background-color: white;
}

.hero h1 {
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0;
  font-size: calc(30px + 24 * ((100vw - 320px) / 1580));
  line-height: calc(36px + 24 * ((100vw - 320px) / 1580));
}

.hero h2 {
  color: #fff;
  font-size: calc(15px + 7 * ((100vw - 320px) / 1580));
  line-height: calc(15px + 7 * ((100vw - 320px) / 1580));
  font-weight: 500;
  text-align: center;
  text-transform: uppercase;
}

.hero .btn {
  display: inline-block;
  background-color: transparent;
  color: white;
  border: 2px solid white;
  padding: 10px 25px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
}

.hero .btn:hover {
  background-color: #00bcd4;
  border-color: #00bcd4;
}

.hero-content button {
  margin-top: 2rem;
}
.hero-content > * {
  opacity: 0;
  transform: translateY(50px);
  animation: slideUp 0.8s ease-out forwards;
}

.hero-content h2 {
  animation-delay: 0.15s;
}

.hero-content h1 {
  animation-delay: 0.2s;
}

.hero-content .btn {
  animation-delay: 0.5s;
}

@keyframes slideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.separador-animado {
  padding: 30px 0;
  text-align: center;
  overflow: hidden;
}

.linea-animada {
  height: 3px;
  width: 0;
  background: linear-gradient(to right, #333, #555, #333);
  margin: 0 auto;
  animation: expandir 2s ease-in-out forwards;
}

@keyframes expandir {
  from {
    width: 0;
  }
  to {
    width: 80%;
  }
}
/* ========================= */
/* 📱 Boton */
/* ========================= */

.explore-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin: 0 auto;
  padding: 0.5rem 1rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: #000;
  background-color: #f9fafb;
  border-radius: 9999px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
  z-index: 10;
  transition: color 0.3s ease;
  cursor: pointer;
}

.explore-btn::before {
  content: "";
  position: absolute;
  left: -100%;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: #333;
  border-radius: 9999px;
  z-index: -1;
  transition: all 0.7s ease;
  scale: 1;
}

.explore-btn:hover::before {
  left: 0;
  scale: 1.5;
}

.explore-btn:hover {
  color: #f9fafb;
}

.explore-icon {
  width: 2rem;
  height: 2rem;
  padding: 0.5rem;
  border-radius: 9999px;
  border: 1px solid #374151;
  transform: rotate(45deg);
  transition: all 0.3s linear;
  background-color: transparent;
}

.explore-btn:hover .explore-icon {
  transform: rotate(90deg);
  background-color: #f9fafb;
  border: none;
}

.explore-path {
  fill: #1f2937;
  transition: fill 0.3s ease;
}

.explore-btn:hover .explore-path {
  fill: #1f2937;
}

/* ========================= */
/* 📱 BIMSOFT */
/* ========================= */

.bimsoft-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 20px;
  text-align: center;
  font-family: Arial, sans-serif;
}

.bimsoft-header h1 {
  font-size: 42px;
  font-weight: bold;
  margin-bottom: 30px;
  color: #000;
  line-height: 1.2;
}

.bimsoft-content {
  max-width: 900px;
  margin: 0 auto;
}

.bimsoft-content p {
  color: #878786;
  font-weight: 400;
  font-size: calc(17px + 2 * ((100vw - 320px) / 1580));
  line-height: calc(27px + 3 * ((100vw - 320px) / 1580));
}
/* Seccion Items */
.item-section {
  padding: 8rem 0 8rem 0;
  background-color: #fff;
  width: 100%;
  display: flex;
  align-items: center;
  height: auto;
  gap: 20px;
}
.text-item {
  flex: 1;
  padding: 0 5vw 0 0;
  max-width: 45%;
  text-align: left;
}
.text-item span {
  color: #000;
  font-weight: 700;
  font-size: calc(46px + 20 * ((100vw - 320px) / 1580));
  line-height: calc(54px + 20 * ((100vw - 320px) / 1580));
}
.text-item h1 {
  padding: 0 0 1rem 0;
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0;
  font-size: calc(16px + 24 * ((100vw - 320px) / 1580));
  line-height: calc(36px + 24 * ((100vw - 320px) / 1580));
}

.text-item p {
  color: #878786;
  font-weight: 400;
  font-size: calc(17px + 2 * ((100vw - 320px) / 1580));
  line-height: calc(27px + 3 * ((100vw - 320px) / 1580));
}
.img-item {
  padding-left: 5vw;
  max-width: 55%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.img-item img {
  width: 80vw;
  max-width: 120%;
  height: auto;
  object-fit: contain;
  box-shadow: 20px 20px #ececec;
}

/* Segundo */
.text-item-left {
  padding-left: 0 0 0 2rem;
  flex: 1;
  padding: 0 5vw 0 0;
  max-width: 45%;
  text-align: left;
}
.text-item-left span {
  color: #000;
  font-weight: 700;
  font-size: calc(46px + 20 * ((100vw - 320px) / 1580));
  line-height: calc(54px + 20 * ((100vw - 320px) / 1580));
}
.text-item-left h1 {
  padding: 0 0 1rem 0;
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0;
  font-size: calc(16px + 24 * ((100vw - 320px) / 1580));
  line-height: calc(36px + 24 * ((100vw - 320px) / 1580));
}

.text-item-left p {
  color: #878786;
  font-weight: 400;
  font-size: calc(17px + 2 * ((100vw - 320px) / 1580));
  line-height: calc(27px + 3 * ((100vw - 320px) / 1580));
}
.img-item-left {
  padding-right: 5vw;
  max-width: 55%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.img-item-left img {
  width: 80vw;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  box-shadow: 20px 20px #ececec;
}
/* SEPARADORES */

.fancy-separator {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 60px 0;
  gap: 10px;
}

.fancy-separator .line {
  flex: 1;
  height: 2px;
  background: linear-gradient(to right, #ddd, #bbb);
  position: relative;
  animation: slideIn 1s ease forwards;
}

.fancy-separator .dot {
  width: 12px;
  height: 12px;
  background: #333;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(90, 95, 99, 0.6);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.3);
    opacity: 0.7;
  }
}

@keyframes slideIn {
  from {
    width: 0;
    opacity: 0;
  }
  to {
    width: 100%;
    opacity: 1;
  }
}
/* OCULTO */
.hidden-sections {
  position: relative;
  max-height: 300px;
  overflow: hidden;
  transition: max-height 1s ease;
}

.fade-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 120px;
  background: linear-gradient(to top, white, transparent);
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding: 20px;
  box-shadow: inset 0 -30px 30px rgba(255, 255, 255, 0.9);
}

/* Cuando se activa */
.hidden-sections.expanded {
  max-height: 5000px;
}

.hidden-sections.expanded .fade-overlay {
  display: none;
}

/* HERO 2 */
.hero-container {
  padding: 8rem 0 8rem 0;
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
  color: white;
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  padding: 20px;
  width: 80%;
  max-width: 600px;
}

.hero-content h1 {
  font-weight: 700;
  font-size: calc(18px + 34 * ((100vw - 320px) / 1580));
  line-height: calc(16px + 38 * ((100vw - 320px) / 1580));
}

.hero-content p {
  color: #fff;
  font-weight: 400;
  font-size: calc(16px + 2 * ((100vw - 320px) / 1580));
  line-height: calc(27px + 3 * ((100vw - 320px) / 1580));
}


/* ========================= */
/* 📱 Responsive Styles */
/* ========================= */
@media (max-width: 768px) {
  .item-section-left {
    flex-direction: column;
    text-align: center;
    padding: 4rem 20px;
    gap: 40px;
  }

  .text-item-left {
    padding: 0;
    max-width: 100%;
  }

  .img-item-left {
    padding: 0;
    max-width: 80%;
    order: -1;
  }

  .img-item-left img {
    width: 100%;
    max-width: 100%;
  }

  .text-item-left span {
    font-size: calc(36px + 10 * ((100vw - 320px) / 448));
    line-height: calc(44px + 10 * ((100vw - 320px) / 448));
  }

  .text-item-left h1 {
    font-size: calc(20px + 12 * ((100vw - 320px) / 448));
    line-height: calc(30px + 12 * ((100vw - 320px) / 448));
  }

  .text-item-left p {
    font-size: calc(16px + 1 * ((100vw - 320px) / 448));
    line-height: calc(25px + 2 * ((100vw - 320px) / 448));
  }
}
@media (max-width: 768px) {
  .item-section {
    flex-direction: column;
    text-align: center;
    padding: 4rem 20px;
    gap: 40px;
  }

  .text-item {
    padding: 0;
    max-width: 100%;
  }

  .img-item {
    padding: 0;
    max-width: 80%;
    order: -1;
  }

  .img-item img {
    width: 100%;
    max-width: 100%;
  }

  .text-item span {
    font-size: calc(36px + 10 * ((100vw - 320px) / 448));
    line-height: calc(44px + 10 * ((100vw - 320px) / 448));
  }

  .text-item h1 {
    font-size: calc(20px + 12 * ((100vw - 320px) / 448));
    line-height: calc(30px + 12 * ((100vw - 320px) / 448));
  }

  .text-item p {
    font-size: calc(16px + 1 * ((100vw - 320px) / 448));
    line-height: calc(25px + 2 * ((100vw - 320px) / 448));
  }
}

@media (max-width: 480px) {
  .item-section {
    padding: 3rem 15px;
    gap: 30px;
  }

  .img-item {
    max-width: 95%;
  }

  .text-item span {
    font-size: 32px;
    line-height: 40px;
  }

  .text-item h1 {
    font-size: 24px;
    line-height: 32px;
  }

  .text-item p {
    font-size: 16px;
    line-height: 24px;
  }
}

@media (max-width: 768px) {
  .bimsoft-header h1 {
    font-size: 32px;
  }

  .bimsoft-content p {
    font-size: 15px;
  }
}
@media (max-width: 1024px) {
  .hero h1 {
    font-size: 36px;
  }

  .hero h2 {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 28px;
  }

  .hero h2 {
    font-size: 14px;
  }

  .hero .btn {
    padding: 8px 20px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 0 10px;
  }

  .hero h1 {
    font-size: 22px;
  }

  .hero h2 {
    font-size: 12px;
    letter-spacing: 1px;
  }

  .hero .btn {
    padding: 6px 16px;
    font-size: 13px;
  }
}
/* Queries Hero2*/

@media (max-width: 768px) {
  .hero-container {
    height: 400px;
  }

  .hero-content h1 {
    font-size: 2em;
  }

  .hero-content p {
    font-size: 1em;
  }
}

@media (max-width: 480px) {
  .hero-container {
    height: 300px;
  }

  .hero-content h1 {
    font-size: 1.5em;
  }

  .hero-content p {
    font-size: 0.9em;
  }

  .button {
    padding: 8px 15px;
    font-size: 0.9em;
  }
}
