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

:root {
  --negro: #111111;
  --gris: #6b6b6b;
  --magenta: #e6007e;
  --cian: #009fe3;
  --centro: 640px;
}

html, body { margin: 0; padding: 0; }

body {
  font-family: "Gill Sans", "Gill Sans MT", "Cabin", Calibri, sans-serif;
  color: var(--negro);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

/* ---------- CABECERA ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: #fff;
  padding: 50px 20px 60px;
}

.hero-bg {
  position: absolute;
  top: 0;
  height: 100%;
  width: calc((100% - var(--centro)) / 2 + 40px);
  object-fit: cover;
  pointer-events: none;
}
.hero-bg-izq {
  left: 0;
  object-position: right top;
  -webkit-mask-image: linear-gradient(to right, #000 70%, transparent);
  mask-image: linear-gradient(to right, #000 70%, transparent);
}
.hero-bg-der {
  right: 0;
  object-position: left top;
  -webkit-mask-image: linear-gradient(to left, #000 70%, transparent);
  mask-image: linear-gradient(to left, #000 70%, transparent);
}

.hero-contenido {
  position: relative;
  max-width: var(--centro);
  margin: 0 auto;
}

.titulo-img { mix-blend-mode: multiply; }

.logo img { width: 230px; margin: 0 auto; }

.titulo-img { width: 330px; margin: 6px auto 0; }

.menu { position: relative; margin-top: 44px; }
.menu-texto { width: 100%; }
.menu-barra { width: 100%; margin-top: 10px; }
.menu ul {
  position: absolute;
  inset: 0;
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}
.menu li { flex: 1; }
.menu a {
  display: block;
  height: 100%;
  color: transparent;
  overflow: hidden;
  white-space: nowrap;
}
.menu a:focus-visible { outline: 2px solid var(--magenta); outline-offset: 2px; }

h1 { margin: 44px 0 0; }
h1 img { width: 100%; }

.intro { margin: 26px 0 0; }
.intro img { width: 88%; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- FRANJA DE COLOR ---------- */
.franja { width: 100%; height: auto; }

/* ---------- SERVICIOS ---------- */
.servicios {
  display: grid;
  grid-template-columns: 1fr minmax(0, 670px) 1fr;
  min-height: 652px;
}

.lateral { position: relative; overflow: hidden; }
.lateral img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.lateral-izq img { object-position: right top; }
.lateral-der img { object-position: left top; }

.centro {
  position: relative;
  padding: 58px 30px 50px;
  background: #fff url("../img/fondo-inferior-centro.png") center top / cover no-repeat;
}

.tarjetas {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
}

.tarjeta {
  background: #f9f9f9;
  border-radius: 12px;
  padding: 12px 22px 16px 24px;
}
.t-offset     { grid-column: 1 / 9;  grid-row: 1 / 3; }
.t-diseno     { grid-column: 9 / 13; grid-row: 1; }
.t-textil     { grid-column: 9 / 13; grid-row: 2; }
.t-soportes   { grid-column: 1 / 7;  grid-row: 3; }
.t-produccion { grid-column: 7 / 13; grid-row: 3; }

.tarjeta h2 {
  position: relative;
  margin: 0 0 12px;
  font-family: "Fira Sans Extra Condensed", "Arial Narrow", sans-serif;
  font-weight: 600;
  font-size: 22px;
  line-height: 1.05;
}
.t-offset h2 { margin-bottom: 18px; }

.punto {
  position: absolute;
  left: -14px;
  top: 6px;
  width: 8px;
  height: 8px;
}

.tarjeta p {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
}
.t-offset p { font-size: 15px; max-width: 400px; }

/* ---------- CONTACTO ---------- */
.contacto {
  position: relative;
  font-style: normal;
  width: 220px;
  max-width: 100%;
  margin: 90px auto 0;
}
.contacto > img { width: 100%; }
.zona { position: absolute; left: 0; right: 0; border-radius: 4px; }
.zona:focus-visible { outline: 2px solid var(--magenta); outline-offset: 2px; }
.zona-email { top: 34%; height: 9%; }
.zona-web   { top: 49%; height: 9%; }
.zona-tel   { top: 62%; height: 10%; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1100px) {
  .servicios { grid-template-columns: 1fr minmax(0, 640px); }
  .lateral-izq { display: none; }
}

@media (max-width: 720px) {
  .hero { padding-top: 30px; }
  .hero-bg { width: 50%; opacity: 0.6; }
  .intro img { width: 100%; }

  .servicios { grid-template-columns: 1fr; }
  .lateral-der { min-height: 360px; }

  .tarjetas { grid-template-columns: 1fr; }
  .tarjeta { grid-column: auto !important; grid-row: auto !important; }

  .contacto { margin-top: 48px; }
}
