/* =====================
   BASE
===================== */
body {
  font-family: 'Poppins', sans-serif;
  color: #0a2540;
}

/* =====================
   HERO
===================== */
.prod-hero {
  position: relative;
  height: 420px;
  background: url('/assets/productos-servicios/banner-ps.webp') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.prod-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
}

.prod-hero-content {
  position: relative;
  color: #ffffff;
  text-align: center;
  max-width: 900px;
  animation: heroFade 1s ease forwards;
}

.prod-hero-content h1 {
  font-size: 42px;
  font-weight: 700;
}

/* =====================
   INTRO
===================== */
.prod-intro {
  padding: 60px 20px;
  text-align: center;
}

.prod-intro p {
  max-width: 900px;
  margin: auto;
  font-size: 18px;
  font-weight: 600;
}

/* =====================
   BLOQUES
===================== */
.prod-content {
  max-width: 1200px;
  margin: auto;
  padding: 100px 20px 140px;
  display: flex;
  flex-direction: column;
  gap: 140px;

  /* sombra final */
  box-shadow: 0 35px 50px -40px rgba(0,0,0,0.25);
}

.prod-block {
  display: flex;
  align-items: center;
  gap: 90px;

  animation: fadeBlock 1s ease forwards;
  animation-timeline: view();
  animation-range: entry 20% cover 35%;
}

.prod-block.right {
  flex-direction: row-reverse;
}

/* =====================
   IMAGEN + FORMAS
===================== */
.prod-image {
  flex: 1;
  display: flex;
  justify-content: center;
  position: relative;
}

/* FORMA DECORATIVA */
.prod-image::before {
  content: "";
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: rgba(111, 167, 200, 0.12);
  filter: blur(10px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 0;
}

/* izquierda */
.prod-block:not(.right) .prod-image::before {
  left: -120px;
}

/* derecha */
.prod-block.right .prod-image::before {
  right: -120px;
}

/* imagen */
.prod-image img {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 25px 50px rgba(0,0,0,0.18);
  position: relative;
  z-index: 1;
}

/* =====================
   TEXTO
===================== */
.prod-text {
  flex: 1;
  max-width: 520px;
}

.prod-text h2 {
  font-size: 32px;
  margin-bottom: 18px;
}

.prod-text p {
  font-size: 16px;
  line-height: 1.8;
  color: #4a5d73;
}

.prod-note {
  font-size: 14px;
  margin: 18px 0;
  font-weight: 600;
}

/* =====================
   BOTÓN
===================== */
.prod-btn {
  display: inline-block;
  margin-top: 15px;
  padding: 12px 26px;
  border-radius: 30px;
  background: #6299b9;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: transform .3s ease, box-shadow .3s ease;
}

.prod-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,.2);
}

/* =====================
   CTA
===================== */
.prod-cta {
  padding: 110px 20px;
  text-align: center;
  background: #f4f7fa;
}

.prod-cta h2 {
  font-size: 36px;
  margin-bottom: 15px;
}

.prod-cta p {
  max-width: 600px;
  margin: 0 auto 25px;
}

/* =====================
   ANIMACIONES
===================== */
@keyframes heroFade {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fadeBlock {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* =====================
   RESPONSIVE
===================== */
@media (max-width: 900px) {
  .prod-block,
  .prod-block.right {
    flex-direction: column;
    text-align: center;
    gap: 50px;
  }

  .prod-image img {
    width: 240px;
    height: 240px;
  }

  /* ocultar formas */
  .prod-image::before {
    display: none;
  }
}
