/* =========================
   1) Tokens
========================= */
:root{
  --brand: #005548;
  --brand-deep: #033c34;
  --brand-soft: rgba(0, 85, 72, 0.18);

  --white: #ffffff;
  --text-on-hero: rgba(255, 255, 255, 0.96);
  --muted-on-hero: rgba(255, 255, 255, 0.82);

  --hero-overlay-top: rgba(0, 0, 0, 0.18);
  --hero-overlay-mid: rgba(0, 0, 0, 0.38);
  --hero-overlay-bottom: rgba(0, 0, 0, 0.68);

  --glass: rgba(0, 85, 72, 0.28);
  --glass-border: rgba(255, 255, 255, 0.22);

  --radius-xl: 24px;
  --radius-lg: 18px;
  --container: 1180px;
  --pad-x: clamp(18px, 4vw, 36px);
  --pad-y: clamp(22px, 4vw, 42px);
}

/* =========================
   2) Hero
========================= */
.seccion_imagen{
  position: relative;
  width: 100%;
  min-height: 420px;
  height: clamp(520px, 88dvh, 920px);
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: end;
  background: #000;
  box-sizing: border-box;
}

/* Imagen principal */
.seccion_imagen > img{
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: scale(1.04);
}

/* Capa de color y contraste */
.seccion_imagen::before{
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 22%, rgba(0, 85, 72, 0.35), transparent 34%),
    radial-gradient(circle at 82% 18%, rgba(255, 210, 140, 0.16), transparent 24%),
    linear-gradient(
      to bottom,
      var(--hero-overlay-top) 0%,
      var(--hero-overlay-mid) 50%,
      var(--hero-overlay-bottom) 100%
    );
}

/* Sombra inferior para cerrar mejor el hero */
.seccion_imagen::after{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 28%;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to top, rgba(0,0,0,0.34), transparent);
}

/* =========================
   3) Contenedor del texto
========================= */
.imagen{
  position: relative;
  z-index: 2;
  margin: auto;
  width: min(100%, var(--container));
  margin-inline: auto;
  padding-inline: var(--pad-x);
  padding-block: var(--pad-y);
  display: flex;
}

.text_imagen{
  position: relative;
  width: min(100%, 760px);
  padding: clamp(20px, 3vw, 34px);
  border-radius: var(--radius-xl);
  color: var(--text-on-hero);
  margin: auto;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)),
    linear-gradient(135deg, rgba(0, 85, 72, 0.52), rgba(3, 60, 52, 0.72));

  border: 1px solid var(--glass-border);
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255,255,255,0.10);
}

@supports (backdrop-filter: blur(12px)){
  .text_imagen{
    backdrop-filter: blur(12px) saturate(130%);
    -webkit-backdrop-filter: blur(12px) saturate(130%);
  }
}

.text_imagen::before{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.35),
    rgba(255,255,255,0.04)
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}

.text_imagen__eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.text_imagen h1{
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 800;
  text-wrap: balance;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
}

.text_imagen p{
  margin: 16px 0 0;
  max-width: 58ch;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.65;
  color: var(--muted-on-hero);
}

/* =========================
   4) Responsive
========================= */
@media (max-width: 900px){
  .seccion_imagen{
    height: clamp(480px, 80dvh, 760px);
  }

  .text_imagen{
    width: min(100%, 680px);
  }
}

@media (max-width: 600px){
  .seccion_imagen{
    min-height: 400px;
    height: clamp(440px, 72dvh, 660px);
  }

  .imagen{
    padding-inline: 16px;
    padding-block: 20px;
  }

  .text_imagen{
    padding: 18px 16px;
    border-radius: var(--radius-lg);
  }

  .text_imagen__eyebrow{
    font-size: 0.72rem;
    padding: 7px 12px;
    margin-bottom: 12px;
  }

  .text_imagen p{
    margin-top: 12px;
    font-size: 0.98rem;
    line-height: 1.55;
  }
}

/* =========================
   5) Reduced motion
========================= */
@media (prefers-reduced-motion: reduce){
  .seccion_imagen > img{
    transform: none;
  }
}
