/* ===== IMENCO branding ===== */
:root {
  --imenco-red: #E83948;
  --imenco-navy: #122F40;
  --imenco-teal: #259DB0;
  --imenco-blue-light: #D0E8F9;
  --imenco-mint: #C4DBD1;
  --imenco-green: #81C49D;

  --bg: var(--imenco-navy);
  --surface: #0f1f2a;
  --line: #1d3542;
  --text: #F0F5F7;
  --muted: #C7D6DE;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --maxw: 1200px;
}

*,
*::before,
*::after {
  box-sizing: border-box
}

html,
body {
  height: 100%
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Mulish, Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  /* Evita el scroll horizontal */
}

img {
  max-width: 100%;
  height: auto;
  display: block
}

/* Estilo predeterminado para enlaces */
a {
  color: #00bfff; /* Color azul por defecto */
  text-decoration: none; /* Elimina el subrayado por defecto */
}

/* Estilo para enlaces al pasar el cursor */
a:hover {
  color: red; /* Color rojo al pasar el cursor */
  text-decoration: underline; /* Subraya el enlace al pasar el cursor */
}

/* Estilo para enlaces al hacer clic */
a:active {
  color: green; /* Color verde al hacer clic */
}

h1,
h2,
h3 {
  font-family: 'Red Hat Display', Mulish, Inter, Arial, sans-serif;
  margin: 0
}

h3 {
  font-size: 1.8rem;
  margin-bottom: -20px;
  line-height: 1;
}

h4 {
  font-size: 1.3rem;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 20px
}

.grid {
  display: grid;
  gap: 24px
}

.grid.two {
  grid-template-columns: 1fr 1fr
}

.grid.three {
  grid-template-columns: repeat(3, 1fr)
}

.center {
  text-align: center
}

.intems-center {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  width: 100%;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .35);
}

.muted {
  color: var(--muted);
  font-size: 1.12rem;
}

.sec-title {
  margin: 0 0 10px;
  font-size: 48px;
}

/* HERO */
.hero {
  position: relative;
  min-height: 86vh;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  filter: saturate(1.1) contrast(1.05)
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(40% 50% at 20% 20%, rgba(37, 157, 176, 0.35), transparent 60%),
    radial-gradient(45% 55% at 80% 30%, rgba(232, 57, 72, 0.30), transparent 60%),
    radial-gradient(50% 60% at 50% 80%, rgba(208, 232, 249, 0.25), transparent 60%),
    linear-gradient(180deg, rgba(18, 47, 64, 0.55), rgba(18, 47, 64, 0.85));
}

.hero-inner {
  margin-left: -600px;
}

.hero-logo {
  height: 250px;
  margin: 0 auto 0 auto
}

.hero-title {
  font-size: clamp(2.5rem, 5.1vw, 4.1rem);
  font-weight: 700;
  line-height: 1.1;
  margin: .2em 0 .4em;
  width: 780px;
}

.red {
  color: var(--imenco-red)
}

.hero-sub {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  color: #e0edf2;
  width: 780px;
}

/* Secciones */
.section {
  padding: 68px 0;
}

.section.alt {
  background: white;
  /* Color de fondo blanco restaurado */
  padding: 20px 0 20px 0;
  /* Espaciado restaurado */
}

/* Productos */
.producto-card {
  width: 360px;
}

.productos .grid {
  align-items: stretch
}

.trio {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 18px;

}

.duo {
  grid-template-columns: repeat(2, 1fr);
  margin-top: 18px
}

.producto {
  padding: 18px;
  transition: transform .25s ease, box-shadow .25s ease;
  line-height: 1.3;
}

.producto:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .35)
}

.prod-img {
  border-radius: 12px;
  border: 1px solid var(--line);
  margin-bottom: 12px;
}

/* Lo último */
.split {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 24px;
  align-items: center
}

.media {
  border-radius: 16px;
  border: 1px solid var(--line);
  overflow: hidden
}

.ultimo {
  background: white;
  padding: 20px 0 20px 0;
}

.ultimo-copy {
  color: black;
}

.ultimo .headline {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  margin-top: 8px;
  font-size: large;
}

/* Otras noticias */
.newsgrid {
  display: grid;
  grid-template-columns: .4fr 2fr;
  gap: 24px;
  align-items: start
}

.noticias {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.noticias a {
  text-decoration: none;
  color: inherit
}

.news-aside {
  align-self: center;
  line-height: 1;
}

.news-list {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.news-item {
  padding: 18px;
  margin-bottom: 10px;
}

.news-grid-duo {
  display: grid;
  grid-template-columns: 1fr 0.5fr;
  gap: 24px;
  align-items: start;
}

.news-grid-duo img {
  margin-top: 70px;
}

.news-item h3 {
  margin: .2em 0 .2em;
  padding-bottom: 10px;
}

/* Contacto */
.contacto {
  background: white;
  padding-bottom: 10px;
}

.contacto-title {
  color: black;
}

.contact-figure img {
  max-width: 560px;
  margin: 8px auto 22px auto;
  border-radius: 16px;
  border: 1px solid var(--line)
}

.contact-cards {
  display: flex;
  margin-top: 10px;
  flex-wrap: nowrap;
  justify-content: center;
}

.contact-item {
  padding: 18px
}

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  padding: 24px 0;
  color: #d1e2ea;
}

/* ---------- BREAKPOINTS ---------- */
@media (max-width: 1366px) {

  .hero-inner {
    margin-left: -400px;
  }
}


@media (max-width: 1100px) {

  .contact-figure img {
    max-width: 100%;
  }

  .hero-logo {
    height: auto;
    padding: 10px;
  }

  .trio {
    grid-template-columns: 1fr 1fr;
  }

  .hero {
    position: initial;
  }

  .hero-inner {
    margin-left: 0;
    padding: 10px;
  }

  .hero-title,
  .hero-sub {
    width: 100%;
  }

  .news-grid-duo {
    grid-template-columns: 1fr;
  }

  .news-grid-duo img {
    margin-top: 0;
  }

  .row {
    justify-content: center;
  }

  .productos {
    margin-top: 30px;
  }
}

@media (max-width: 900px) {

  .split {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .newsgrid {
    grid-template-columns: 1fr;
  }

  .duo {
    grid-template-columns: 1fr;
  }

  .trio {
    grid-template-columns: 1fr;
  }

  .hero-logo {
    height: auto;
    padding: 10px;
  }

  .hero-title,
  .hero-sub {
    width: 100%;
  }

  .news-grid-duo {
    grid-template-columns: 1fr;
  }

  .news-grid-duo img {
    margin-top: 0;
  }

  .productos {
    margin-top: 50px;
  }

  .contact-cards {
    flex-wrap: wrap;
    gap: 20px;
  }
}