/* =============================================
   ARTEFISIO - CSS PÁGINA INICIO (index)
   ============================================= */

/* === GALERÍA HERO === */
.hero {
  position: relative;
  width: 100%;
  height: 679px;
  overflow: hidden;
  background: #111;
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 1;
}

.hero__slide.active {
  opacity: 1;
  z-index: 2;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Overlay oscuro para legibilidad */
.hero__slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.18) 0%,
    rgba(0,0,0,0.42) 100%
  );
  z-index: 3;
}

.hero__content {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
  gap: 10px;
}

.hero__top-text {
  font-family: 'Nunito', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: rgba(255,255,255,0.92);
  letter-spacing: 0.03em;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
  min-height: 1.8em;
  transition: opacity 0.5s;
}

.hero__brand {
  font-family: 'Roboto', sans-serif;
  font-size: clamp(3.2rem, 8vw, 6rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 4px 24px rgba(0,0,0,0.45);
  line-height: 1;
}

.hero__bottom-text {
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  color: rgba(255,255,255,0.88);
  font-weight: 400;
  text-shadow: 0 2px 8px rgba(0,0,0,0.35);
  max-width: 520px;
  line-height: 1.5;
  min-height: 3em;
  transition: opacity 0.5s;
}

.hero__btn {
  display: inline-block;
  background: rgba(8, 141, 181, 0.9);
  color: #fff;
  font-family: 'Nunito', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 11px 28px;
  border-radius: 30px;
  border: 2px solid rgba(255,255,255,0.3);
  transition: background 0.22s, transform 0.18s, border-color 0.22s;
  white-space: nowrap;
  width: fit-content;
}

.hero__btn:hover {
  background: rgba(8, 141, 181, 1);
  border-color: #fff;
  transform: translateY(-2px);
  opacity: 1;
}

/* Indicadores del slider */
.hero__dots {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 8px;
}

.hero__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  padding: 0;
}

.hero__dot.active {
  background: #fff;
  transform: scale(1.25);
}

/* === SECCIÓN INTRODUCCIÓN === */
.intro {
  padding: 72px 0;
  background: #fff;
}

.intro__inner {
  width: 80%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* Imagen con decoración */
.intro__img-wrap {
  position: relative;
}

.intro__img-wrap::before {
  content: '';
  position: absolute;
  top: -14px;
  left: -14px;
  width: 100%;
  height: 100%;
  border: 3px solid var(--azul-principal);
  border-radius: 12px;
  z-index: 0;
  opacity: 0.35;
}

.intro__img-wrap::after {
  content: '';
  position: absolute;
  bottom: -14px;
  right: -14px;
  width: 100%;
  height: 100%;
  border: 3px solid var(--azul-claro);
  border-radius: 12px;
  z-index: 0;
  opacity: 0.2;
}

.intro__img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(8,141,181,0.16);
}

.intro__text-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.intro__heading {
  font-family: 'Roboto', sans-serif;
  font-size: 2.1rem;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.2;
}

.intro__heading span {
  color: rgba(72, 195, 230, 1);
}

.intro__body {
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  color: #555;
  line-height: 1.8;
}

.intro__btn {
  display: inline-block;
  background: linear-gradient(
    90deg,
    rgba(8, 141, 181, 1) 0%,
    rgba(30, 165, 205, 1) 25%,
    rgba(58, 185, 220, 1) 50%,
    rgba(90, 205, 235, 1) 75%,
    rgba(120, 220, 245, 1) 100%
  );
  color: #fff;
  font-family: 'Nunito', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 13px 32px;
  border-radius: var(--radio-btn);
  transition: transform 0.2s, box-shadow 0.2s;
  width: fit-content;
  box-shadow: 0 4px 18px rgba(8,141,181,0.25);
}

.intro__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(8,141,181,0.35);
  opacity: 1;
}

/* === SECCIÓN VALORES === */
.valores {
  padding: 20px 0 0;
}

.valores__heading {
  text-align: center;
  font-family: 'Roboto', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: rgba(72, 195, 230, 1);
  padding: 36px 20px 28px;
  letter-spacing: 0.01em;
}

.valores__bg {
  position: relative;
  width: 100%;
  min-height: 400px;
  background-image: url('../img/artefisio_bg1.jpg');
  background-size: cover;
  background-position: center;
  padding: 56px 0;
}

.valores__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(8, 141, 181, 0.55);
}

.valores__grid {
  position: relative;
  z-index: 1;
  width: 80%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.valores__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}

.valores__card img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.7);
  box-shadow: 0 4px 18px rgba(0,0,0,0.2);
}

.valores__card h2 {
  font-family: 'Roboto', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}

.valores__card p {
  font-family: 'Nunito', sans-serif;
  font-size: 0.84rem;
  color: rgba(255,255,255,0.9);
  line-height: 1.7;
}

/* === SECCIÓN EQUIPO === */
.equipo {
  padding: 60px 0 40px;
  background: #fff;
}

.equipo__heading {
  text-align: center;
  font-family: 'Roboto', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: rgba(72, 195, 230, 1);
  margin-bottom: 40px;
  letter-spacing: 0.01em;
}

.equipo__grid {
  width: 80%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-bottom: 40px;
}

.equipo__card {
  overflow: hidden;
  border-radius: 10px;
  box-shadow:
    0 2px 8px rgba(8,141,181,0.08),
    4px 4px 16px rgba(8,141,181,0.1),
    -2px -2px 8px rgba(0,0,0,0.04);
  transition: transform 0.28s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.28s;
  cursor: pointer;
}

.equipo__card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.equipo__divider {
  width: 80%;
  margin: 0 auto;
  height: 2px;
  background: rgba(8, 141, 181, 0.4);
  border-radius: 2px;
}

/* === RESPONSIVE INICIO === */
@media (max-width: 1100px) {
  .intro__inner,
  .valores__grid,
  .equipo__grid {
    width: 92%;
  }
  .equipo__divider {
    width: 92%;
  }
}

@media (max-width: 900px) {
  .intro__inner {
    grid-template-columns: 1fr;
  }
  .intro__img {
    height: 360px;
  }
  .valores__grid,
  .equipo__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero {
    height: 520px;
  }
}

@media (max-width: 600px) {
  .hero {
    height: 420px;
  }
  .hero__brand {
    font-size: 2.8rem;
  }
  .hero__top-text {
    font-size: 1rem;
  }
  .valores__grid,
  .equipo__grid {
    grid-template-columns: 1fr;
  }
  .intro__inner {
    width: 92%;
    gap: 36px;
  }
}
