/* ========================
   RESET
======================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ========================
   GLOBAL
======================== */
html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: #2a2a2a transparent;
}

body {
  font-family: 'Arial Black', Arial, sans-serif;
  background-color: #000;
  color: #fff;
  overflow-x: hidden;
}

/* ========================
   SCROLLBAR
======================== */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #2a2a2a;
  border-radius: 3px;
  transition: background 0.3s ease;
}
::-webkit-scrollbar-thumb:hover {
  background: #f2b705;
}

/* ========================
   NAVBAR
======================== */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  height: 70px;
  padding: 0 6vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #1c1c1c;
  z-index: 1000;
}

.logo img {
  height: 40px;
  display: block;
}

.navbar ul {
  list-style: none;
  display: flex;
  gap: 40px;
}

.navbar a {
  text-decoration: none;
  color: #fff;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: opacity 0.3s ease;
}

.navbar a:hover {
  opacity: 0.6;
}

/* ========================
   HERO
======================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 8vw;
}

.hero-content h1 {
  font-size: clamp(40px, 8vw, 95px);
  line-height: 0.95;
  font-weight: 900;
}

.line {
  display: block;
}

.highlight {
  display: inline-block;
  background: #f2b705;
  transform: skew(-8deg);
  margin-top: 15px;
}

.highlight span {
  display: inline-block;
  transform: skew(8deg);
  padding: 12px 30px;
  color: #000;
}

/* ========================
   TRABAJO SECTION
======================== */
.trabajo-section {
  position: relative;
  min-height: 100vh;
  background: url('../assets/img/charliework.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
}

.trabajo-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}

.trabajo-container {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 8vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 80px;
}

.trabajo-left {
  max-width: 750px;
}

.trabajo-left h2 {
  font-size: clamp(70px, 6vw, 90px);
  line-height: 0.95;
}

.trabajo-subtitle {
  margin-top: 60px;
  font-size: 22px;
  font-weight: 500;
  color: #f2b705;
  letter-spacing: 1px;
}

.trabajo-grid {
  display: grid;
  grid-template-columns: repeat(2, 220px);
  grid-template-rows: repeat(2, 220px);
  gap: 30px;
}

.trabajo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  letter-spacing: 6px;
  transition: all 0.3s ease;
}

.trabajo-item:hover {
  background: #111;
  transform: translateY(-4px);
}

.highlight-item {
  background: #f2b705;
  color: #000;
  font-size: 30px;
  font-weight: bold;
}

.highlight-item:hover {
  background: #d89e04;
  transform: translateY(-4px);
}

/* ========================
   SOBRE MI ESTRUCTURA
======================== */

.sobre-mi {
  width: 100%;
}

/* BLOQUES GENERALES (usado en Bloque 1 y 4) */
.sobre-bloque {
  display: flex;
  align-items: center;
}

.sobre-negro {
  background: #000;
}

.sobre-blanco {
  background: #f5f5f5;
  padding: 20px 8vw;
}

/* CONTENEDOR DE TEXTO BASE */
.sobre-texto {
  flex: 1;
  padding: 120px 8vw;
}

/* TÍTULOS BASE */
.sobre-texto h2 {
  font-size: clamp(40px, 5vw, 65px);
  color: #f2b705;
  margin-bottom: 40px;
}

.sobre-texto h3 {
  font-size: clamp(30px, 4vw, 55px);
  margin-bottom: 40px;
  color: #000;
}

/* PÁRRAFOS BASE */
.sobre-texto p {
  font-family: Arial, sans-serif;
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 25px;
}

/* COLORES SEGÚN FONDO */
.sobre-negro .sobre-texto p {
  color: #ccc;
}

.sobre-blanco .sobre-texto p {
  color: #333;
}

/* CORRECCIÓN: evitar padding duplicado en bloque blanco */
.sobre-blanco .sobre-texto {
  padding: 0;
}

/* IMAGENES LATERALES (Bloques 1 y 4) */
.sobre-imagen {
  flex: 1;
  height: 100%;
}

.sobre-imagen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
}

/* BLOQUE 3 — IMAGEN INTERMEDIA */
.sobre-cabecera img {
  width: 100%;
  height: 50vh;
  object-fit: cover;
  filter: grayscale(100%);
}

/* BLOQUE 5 — CIERRE */
.sobre-cierre-final {
  background: #000;
  padding: 115px 8vw;
}

.sobre-cierre-final p {
  font-size: 22px;
  margin-bottom: 40px;
}

/* ==================================================
   VARIACIONES POR BLOQUE (SIN ROMPER BASE)
================================================== */

/* BLOQUE 1 — INTRO */
.sobre-intro .sobre-texto {
  padding: 90px 6vw 70px 6vw;
}

.sobre-intro h2 {
  font-size: clamp(42px, 5vw, 64px);
  line-height: 1.02;
  margin-bottom: 20px;
}

.sobre-intro p {
  max-width: 500px;
  font-size: 16.5px;
}

/* BLOQUE 2 — ESTRUCTURA */
.sobre-estructura {
  padding: 60px 8vw;
}

.sobre-estructura h3 {
  font-size: clamp(34px, 4vw, 56px);
  margin-bottom: 30px;
}

.sobre-estructura p {
  max-width: 850px;
  font-size: 18px;
}

/* BLOQUE 4 — IMPACTO */
.sobre-impacto .sobre-texto {
  padding: 110px 7vw;
}

.sobre-impacto h2 {
  letter-spacing: 1px;
  margin-bottom: 30px;
}

.sobre-impacto p {
  max-width: 520px;
  font-size: 17px;
}

/* BLOQUE 5 — CIERRE */
.sobre-cierre-final p:first-child {
  font-size: 24px;
  max-width: 700px;
}

.sobre-cierre-final p:last-child {
  font-size: 22px;
  max-width: 600px;
}


/* ========================
   TOOLS SECTION
======================== */
.tools-section {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-bottom: 0;
}

/* ========================
   SECCIONES GENERALES
======================== */
.section {
  min-height: 100vh;
  padding: 120px 8vw;
  scroll-margin-top: 70px;
}

.dark {
  background: #111;
}

/* ========================
   FOOTER (barra tipo navbar)
======================== */
.footer {
  position: relative;
  height: 70px;
  width: 100vw;
  left: 50%;
  transform: translateX(-50%);
  padding: 0 6vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #1c1c1c;
  font-size: 12px;
  letter-spacing: 1px;
  color: #aaa;
}

.footer-left {
  display: flex;
  gap: 18px;
}

.footer-left a {
  text-decoration: none;
  color: #aaa;
  transition: opacity 0.3s ease;
}

.footer-left a:hover {
  opacity: 0.6;
}

.footer-right {
  text-align: right;
}

/* ========================
   RESPONSIVE
======================== */
@media (max-width: 1100px) {

  .trabajo-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 60px;
  }

  .trabajo-grid {
    grid-template-columns: repeat(2, 180px);
    grid-template-rows: repeat(2, 180px);
  }

  .sobre-cultura,
  .sobre-estructura {
    flex-direction: column;
  }

  .estructura-image {
    height: 400px;
  }
}

@media (max-width: 600px) {

  .trabajo-left h2 {
    font-size: 60px;
  }

  .trabajo-subtitle {
    font-size: 18px;
  }

  .trabajo-grid {
    grid-template-columns: repeat(2, 140px);
    grid-template-rows: repeat(2, 140px);
    gap: 20px;
  }

  .trabajo-item {
    font-size: 14px;
    letter-spacing: 3px;
  }

}