/* ============================================================
   REKREALAB — style.css
   Paleta: #FFC000 (Krea Yellow) / #000000 / #FFFFFF / #F2F2F2 / #B5B5B5
   Tipografía: Archivo Black (titulares) + Inter (cuerpo)
   ============================================================ */

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Inter', sans-serif; background: #fff; color: #000; -webkit-font-smoothing: antialiased; text-align: justify; }
h1, h2, h3, h4 { text-align: left;}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* ---- TOKENS ---- */
:root {
  --yellow: #FFC000;
  --black: #000000;
  --white: #ffffff;
  --gray-light: #F2F2F2;
  --gray-mid: #B5B5B5;
  --gray-text: #555555;
  --border: rgba(0,0,0,0.12);
  --nav-h: 68px;
  --pad-x: 48px;
  --pad-section: 88px;
  --transition: 0.2s ease;
}

/* ---- TYPOGRAPHY ---- */
.h1 {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.0;
  letter-spacing: -1.5px;
}
.h1 em { font-style: normal; color: var(--yellow); }

.h2 {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.05;
  letter-spacing: -1px;
  margin-bottom: 48px;
}
.h2 em { font-style: normal; color: var(--yellow); }

.h2-contact {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: -1px;
  color: #000;
}

.lead {
  font-size: 17px;
  line-height: 1.65;
  color: var(--gray-text);
  max-width: 440px;
  margin-bottom: 36px;
}

.eyebrow,
.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 16px;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 14px 28px;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  border: none;
}

.btn-primary {
  background: #000;
  color: #fff;
}
.btn-primary:hover { background: var(--yellow); color: #000; }

.btn-ghost {
  background: transparent;
  color: #000;
  border: 1px solid #000;
  padding: 13px 24px;
}
.btn-ghost:hover { border-color: var(--yellow); color: var(--yellow); }

.btn-nav {
  background: #000;
  color: #fff;
  padding: 10px 20px;
  font-size: 12px;
}
.btn-nav:hover { background: var(--yellow); color: #000; }

.btn-submit {
  width: 100%;
  background: #000;
  color: #fff;
  padding: 16px;
  font-size: 14px;
  letter-spacing: 0.08em;
  margin-top: 8px;
}
.btn-submit:hover { background: var(--yellow); color: #000; }

/* ---- NAV ---- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad-x);
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 0.5px solid var(--border);
  z-index: 1000;
  gap: 24px;
}

.nav-logo {
  font-family: 'Archivo Black', sans-serif;
  font-size: 20px;
  line-height: 1;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}
.nav-logo span { color: var(--yellow); }

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav-links a {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #000;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--yellow); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #000;
  transition: all 0.2s;
}

/* MOBILE MENU */
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: #fff;
  border-bottom: 0.5px solid var(--border);
  z-index: 999;
  padding: 16px var(--pad-x) 24px;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}
.nav-mobile.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.nav-mobile ul { display: flex; flex-direction: column; gap: 0; }
.nav-mobile ul li a {
  display: block;
  padding: 14px 0;
  font-size: 16px;
  font-weight: 500;
  border-bottom: 0.5px solid var(--border);
}

/* ---- MAIN (push below nav) ---- */
main { padding-top: var(--nav-h); }

/* ---- HERO ---- */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - var(--nav-h));
}

.hero-left {
  padding: var(--pad-section) var(--pad-x);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-left .eyebrow { margin-bottom: 20px; }

.hero-left .h1 { margin-bottom: 24px; }

.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-right {
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.hero-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-logo-big {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(80px, 10vw, 130px);
  line-height: 0.92;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  letter-spacing: -2px;
  user-select: none;
}
.logo-re   { color: #fff; display: block; }
.logo-krea { color: #fff; display: block; }
.logo-lab  { color: var(--yellow); display: block; }

.hero-tag {
  position: absolute;
  bottom: 28px;
  right: 28px;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #444;
  font-weight: 500;
}

/* ---- TICKER ---- */
.ticker {
  background: var(--yellow);
  padding: 13px 0;
  overflow: hidden;
  white-space: nowrap;
}
.ticker-inner {
  display: inline-flex;
  align-items: center;
  animation: ticker 20s linear infinite;
  gap: 0;
}
.ticker-inner span {
  font-family: 'Archivo Black', sans-serif;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #000;
  padding: 0 28px;
}
.ticker-inner .dot {
  font-size: 18px;
  line-height: 1;
  padding: 0;
}
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---- SECTIONS ---- */
.section {
  padding: var(--pad-section) var(--pad-x);
}
.section-border {
  border-top: 0.5px solid var(--border);
}

/* ---- MODELO ---- */
.modelo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.modelo-step {
  padding: 32px 36px 32px 0;
  border-left: 0.5px solid var(--border);
  padding-left: 36px;
}
.modelo-step:first-child {
  border-left: none;
  padding-left: 0;
}
.step-num {
  font-family: 'Archivo Black', sans-serif;
  font-size: 52px;
  color: var(--gray-light);
  line-height: 1;
  margin-bottom: 12px;
  user-select: none;
}
.step-title {
  font-family: 'Archivo Black', sans-serif;
  font-size: 19px;
  line-height: 1.2;
  margin-bottom: 12px;
}
.step-body {
  font-size: 14px;
  line-height: 1.7;
  color: var(--gray-text);
}

/* ---- MANIFIESTO ---- */
.section-dark {
  background: #000;
  color: #fff;
  padding: var(--pad-section) var(--pad-x);
  position: relative;
}
.section-dark--concreto {
  background-image: url('img/fondo_concreto.jpg');
  background-size: cover;
  background-position: center;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.section-dark--concreto::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  pointer-events: none;
}
.section-dark--concreto .section-label,
.section-dark--concreto .manifesto-quote {
  position: relative;
  z-index: 1;
}
.section-dark .section-label { color: var(--yellow); }

.manifesto-quote {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(26px, 4vw, 46px);
  line-height: 1.1;
  letter-spacing: -1px;
  max-width: 720px;
  font-style: normal;
  border: none;
  padding: 0;
  margin-top: 8px;
}
.manifesto-quote em {
  font-style: normal;
  color: var(--yellow);
}

/* ---- PROYECTOS — layout full width ---- */
.caso-full {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 0.5px solid var(--border);
}
.caso-foto-full {
  width: 100%;
  height: 420px;
  overflow: hidden;
  background: var(--gray-light);
}
.caso-foto-full img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.caso-full:hover .caso-foto-full img { transform: scale(1.02); }

.caso-full-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 0.5px solid var(--border);
}
.caso-full-info {
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-right: 0.5px solid var(--border);
}
.caso-specs {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.caso-specs li {
  font-size: 13px;
  color: var(--gray-text);
  padding-left: 18px;
  position: relative;
}
.caso-specs li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--yellow);
  font-weight: 700;
}

/* Foto antes/después */
.caso-antesdespues {
  position: relative;
  overflow: hidden;
  background: #000;
}
.caso-antesdespues img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.9;
}
.caso-ad-labels {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 12px 16px;
  background: linear-gradient(transparent, rgba(0,0,0,0.6));
}
.caso-ad-labels span {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
}

/* ---- AUDIENCIAS — dos columnas en una sección ---- */
.audiencias-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.audiencia-col {
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.audiencia-col--border {
  border-left: 0.5px solid var(--border);
}
.audiencia-col-title {
  font-family: 'Archivo Black', sans-serif;
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: -0.5px;
}
.casos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
}

/* Tarjeta de caso con foto */
.caso {
  background: #fff;
  display: flex;
  flex-direction: column;
}

/* Foto principal del caso */
.caso-foto {
  width: 100%;
  height: 280px;
  overflow: hidden;
  background: var(--gray-light);
  flex-shrink: 0;
}
.caso-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.caso:hover .caso-foto img { transform: scale(1.03); }

/* Placeholder cuando no hay foto (onerror lo activa) */
.caso-foto--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-light);
}
.caso-foto--placeholder::after {
  content: 'Foto próximamente';
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-mid);
}
.caso-foto--placeholder img { display: none; }

/* Cuerpo de texto del caso */
.caso-body {
  padding: 32px 40px 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.caso-tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-mid);
}
.caso-title {
  font-family: 'Archivo Black', sans-serif;
  font-size: 26px;
  line-height: 1.1;
}
.caso-title em { font-style: normal; color: var(--yellow); }
.caso-desc {
  font-size: 14px;
  color: var(--gray-text);
  line-height: 1.65;
  flex: 1;
}
.caso-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.caso-pill {
  display: inline-block;
  background: var(--gray-light);
  font-size: 11px;
  font-weight: 600;
  padding: 5px 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Tarjeta "próximo proyecto" */
.caso-next { background: var(--gray-light); }
.caso-next-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 100%;
  text-align: center;
  min-height: 380px;
  padding: 40px;
}
.caso-next-title {
  font-family: 'Archivo Black', sans-serif;
  font-size: 32px;
  color: var(--gray-mid);
  line-height: 1.1;
}
.caso-next-sub {
  font-size: 13px;
  color: var(--gray-mid);
}

/* Galería de fotos adicionales */
.caso-galeria {
  margin-top: 48px;
  border-top: 0.5px solid var(--border);
  padding-top: 40px;
}
.galeria-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-mid);
  margin-bottom: 20px;
}
.galeria-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
}
.galeria-item {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--gray-light);
}
.galeria-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.galeria-item:hover img { transform: scale(1.05); }

/* Placeholder galería cuando no hay foto */
.galeria-item--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}
.galeria-item--placeholder::after {
  content: '+';
  font-family: 'Archivo Black', sans-serif;
  font-size: 32px;
  color: var(--gray-mid);
}
.galeria-item--placeholder img { display: none; }

/* ---- AUDIENCIAS ---- */
.audiencia-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
}
.audiencia-section--reverse { direction: rtl; }
.audiencia-section--reverse > * { direction: ltr; }

.audiencia-content {
  padding: var(--pad-section) var(--pad-x);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}
.audiencia-content .h2 { margin-bottom: 0; }

.audiencia-body {
  font-size: 15px;
  line-height: 1.7;
  color: var(--gray-text);
  max-width: 480px;
}
.audiencia-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 4px 0;
}
.audiencia-list li {
  font-size: 14px;
  color: var(--gray-text);
  padding-left: 20px;
  position: relative;
}
.audiencia-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--yellow);
  font-weight: 700;
}

.audiencia-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 400px;
}
.audiencia-visual--negro { background: #000; }
.audiencia-visual--amarillo { background: var(--yellow); }
.audiencia-visual--foto {
  position: relative;
  overflow: hidden;
  min-height: 480px;
  padding: 0;
  background: #000;
}
.audiencia-visual--foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.75;
  transition: opacity 0.4s ease, transform 0.6s ease;
}
.audiencia-section:hover .audiencia-visual--foto img {
  opacity: 0.6;
  transform: scale(1.03);
}
.audiencia-foto-overlay {
  position: absolute;
  bottom: 24px;
  left: 24px;
  z-index: 2;
}
.audiencia-foto-tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 5px 12px;
}

.audiencia-icon-letter {
  font-family: 'Archivo Black', sans-serif;
  font-size: 100px;
  line-height: 1;
  color: var(--yellow);
  user-select: none;
}
.audiencia-visual--negro .audiencia-icon-letter { color: var(--yellow); }
.audiencia-visual--amarillo .audiencia-icon-letter { color: #000; }

.audiencia-visual-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #444;
}
.audiencia-visual--negro .audiencia-visual-label { color: #555; }
.audiencia-visual--amarillo .audiencia-visual-label { color: rgba(0,0,0,0.5); }

/* ---- CONTACTO ---- */
.section-contact {
  background: var(--gray-light);
  padding: 0;
}
.contact-header {
  background: var(--yellow);
  padding: var(--pad-section) var(--pad-x);
}
.contact-body {
  padding: 64px var(--pad-x);
  max-width: 680px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #000;
}
.form-group input,
.form-group select,
.form-group textarea {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: #000;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.2);
  padding: 12px 14px;
  outline: none;
  transition: border-color var(--transition);
  border-radius: 0;
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #000;
}
.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: #c00;
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23000' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.form-note {
  font-size: 13px;
  color: var(--gray-text);
  text-align: center;
}
.form-note a {
  color: #000;
  font-weight: 600;
  border-bottom: 1px solid var(--yellow);
}

.form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  padding: 48px 0;
}
.form-success[hidden] { display: none; }
.success-icon {
  width: 56px;
  height: 56px;
  background: var(--yellow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
}
.form-success h3 {
  font-family: 'Archivo Black', sans-serif;
  font-size: 24px;
}
.form-success p {
  font-size: 15px;
  color: var(--gray-text);
}

/* ---- FOOTER ---- */
.footer {
  background: #000;
  padding: 32px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-logo {
  font-family: 'Archivo Black', sans-serif;
  font-size: 18px;
  color: #fff;
  letter-spacing: -0.3px;
}
.footer-logo span { color: var(--yellow); }

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13px;
  color: #555;
  text-align: center;
}
.footer-info a { color: #555; transition: color var(--transition); }
.footer-info a:hover { color: var(--yellow); }

.footer-copy {
  font-size: 12px;
  color: #444;
  letter-spacing: 0.04em;
}

/* ---- REVEAL ANIMATION ---- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  :root {
    --pad-x: 28px;
    --pad-section: 64px;
  }

  .nav-links, .btn-nav { display: none; }
  .nav-toggle { display: flex; }
  .nav-mobile { display: block; }

  .hero { grid-template-columns: 1fr; }
  .hero-right {
    min-height: 280px;
    order: -1;
  }
  .hero-left { padding-top: 48px; padding-bottom: 56px; }

  .modelo-grid { grid-template-columns: 1fr; }
  .modelo-step {
    border-left: none;
    border-top: 0.5px solid var(--border);
    padding: 28px 0;
  }
  .modelo-step:first-child { border-top: none; padding-top: 0; }

  .caso-foto-full { height: 260px; }
  .caso-full-body { grid-template-columns: 1fr; }
  .caso-full-info { border-right: none; border-bottom: 0.5px solid var(--border); padding: 28px var(--pad-x); }
  .caso-antesdespues { min-height: 220px; }
  .audiencias-grid { grid-template-columns: 1fr; }
  .audiencia-col { padding: 40px var(--pad-x); }
  .audiencia-col--border { border-left: none; border-top: 0.5px solid var(--border); }
  .casos-grid { grid-template-columns: 1fr; }
  .caso-foto { height: 220px; }
  .caso-next-inner { min-height: 260px; }
  .galeria-grid { grid-template-columns: repeat(2, 1fr); }

  .audiencia-section,
  .audiencia-section--reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }
  .audiencia-visual { min-height: 220px; }
  .audiencia-visual--foto { min-height: 300px; }
  .audiencia-icon-letter { font-size: 64px; }
  .audiencia-content { padding: 48px var(--pad-x); }

  .form-row { grid-template-columns: 1fr; }

  .footer {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
  .footer-info { text-align: center; }
}

@media (max-width: 480px) {
  :root {
    --pad-x: 20px;
    --pad-section: 48px;
  }
  .hero-ctas { flex-direction: column; }
  .btn { width: 100%; text-align: center; }
}

/* ---- REDUCED MOTION ---- */
@media (prefers-reduced-motion: reduce) {
  .ticker-inner { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition: none !important; }
}
