/* ==============================================
   TRABAJOS.HTML — estilos de página
   ============================================== */

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

:root {
  --orange: #FF4500;
  --bg: #0f0f0f;
  --font-display: 'Anton', sans-serif;
  --font-body: 'Poppins', system-ui, sans-serif;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: #fff;
  font-family: var(--font-body);
  overflow-x: hidden;
}

/* ── Header ── */
.tj-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.4rem 4vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(to bottom, rgba(15,15,15,0.92) 0%, transparent 100%);
  backdrop-filter: blur(6px);
}

.tj-logo {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  letter-spacing: 0.05em;
  color: #fff;
  text-decoration: none;
  transition: color 0.2s;
}
.tj-logo:hover { color: var(--orange); }

.tj-back {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.2s;
}
.tj-back:hover { color: #fff; }
.tj-back svg { transition: transform 0.2s; }
.tj-back:hover svg { transform: translateX(-3px); }

/* ── Hero intro ── */
.tj-hero {
  height: 38vh;
  min-height: 260px;
  display: flex;
  align-items: flex-end;
  padding: 0 4vw 3.5rem;
  position: relative;
  overflow: hidden;
}

.tj-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,69,0,0.08) 0%, transparent 60%);
  pointer-events: none;
}

.tj-hero__title {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 10rem);
  line-height: 0.9;
  letter-spacing: -0.01em;
  position: relative;
  z-index: 1;
}

.tj-hero__title em {
  font-style: normal;
  color: var(--orange);
}

/* ── Divisor ── */
.tj-divider {
  width: 100%;
  height: 5px;
  background: var(--orange);
}

/* ── Grid de categorías ── */
.tj-grid {
  display: flex;
  flex-direction: column;
}

/* ── Tarjeta de categoría ── */
.tj-card {
  position: relative;
  height: 90vh;
  min-height: 500px;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  display: block;
}

.tj-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #000;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.tj-card:hover .tj-card__img {
  transform: scale(1.03);
}

.tj-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 10, 10, 0.82) 0%,
    rgba(10, 10, 10, 0.35) 40%,
    rgba(10, 10, 10, 0.12) 100%
  );
  transition: background 0.4s;
}

.tj-card:hover .tj-card__overlay {
  background: linear-gradient(
    to top,
    rgba(10, 10, 10, 0.72) 0%,
    rgba(10, 10, 10, 0.2) 40%,
    rgba(10, 10, 10, 0.05) 100%
  );
}

.tj-card__content {
  position: absolute;
  bottom: 3.5rem;
  left: 5vw;
  right: 5vw;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.tj-card__label {
  font-family: var(--font-display);
  font-size: clamp(4rem, 10vw, 9rem);
  line-height: 0.9;
  letter-spacing: -0.01em;
  color: #fff;
  transition: color 0.3s;
}

.tj-card:hover .tj-card__label { color: var(--orange); }

.tj-card__arrow {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  color: rgba(255,255,255,0.4);
  transition: color 0.3s, transform 0.3s;
  font-family: var(--font-display);
  letter-spacing: 0.05em;
}

.tj-card:hover .tj-card__arrow {
  color: var(--orange);
  transform: translateX(8px);
}

/* Separador entre tarjetas */
.tj-card + .tj-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: rgba(255,255,255,0.08);
  z-index: 3;
}

/* ── Footer mínimo ── */
.tj-footer {
  padding: 3rem 4vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255,255,255,0.07);
}

.tj-footer__brand {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.25);
}

.tj-footer__copy {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.2);
  letter-spacing: 0.06em;
}

/* ── Responsive — tablet (max 1024px) ── */
@media (max-width: 1024px) {
  .tj-card__label {
    font-size: clamp(3rem, 8vw, 7rem);
  }
}

/* ── Responsive — móvil (max 768px) ── */
@media (max-width: 768px) {
  .tj-hero {
    height: 28vh;
    min-height: 200px;
    padding-bottom: 2.5rem;
    padding-left: 4vw;
    padding-right: 4vw;
  }

  .tj-card {
    height: 70vh;
    min-height: 360px;
  }

  .tj-card__content {
    bottom: 2rem;
    left: 4vw;
    right: 4vw;
  }

  .tj-footer {
    flex-direction: column;
    gap: 0.4rem;
    align-items: flex-start;
    padding: 2rem 4vw;
  }
}

/* ── Responsive — teléfono pequeño (max 480px) ── */
@media (max-width: 480px) {
  .tj-hero__title {
    font-size: clamp(3rem, 14vw, 6rem);
  }

  .tj-card {
    height: 58vh;
    min-height: 300px;
  }

  .tj-header {
    padding: 1rem 4vw;
  }
}
