/* ===========================================================
   DeYDe Servicios Generales — Stylesheet
   Mirrors the Brochure 2026 visual identity
   =========================================================== */

:root {
  --navy-deep: #0D1B2A;
  --navy-mid:  #1A3550;
  --navy-soft: #2A4860;
  --amber:     #E8A020;
  --amber-dim: #B07810;
  --cream:     #F5F0E8;
  --white:     #FFFFFF;
  --slate:     #4A6878;
  --ice:       #D0DCE8;
  --line:      #E2DACF;

  --display: 'Archivo Black', 'Arial Black', Impact, sans-serif;
  --body:    'IBM Plex Sans', 'Helvetica Neue', Arial, sans-serif;

  --container-max: 1200px;
  --pad-x: clamp(1.25rem, 4vw, 3rem);
}

/* ----- Reset / base ----- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--navy-mid);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 400; }

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

/* ----- Section header pattern ----- */
.section-header { margin-bottom: 2.5rem; }
.section-title {
  font-family: var(--display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  letter-spacing: -0.01em;
  color: var(--navy-deep);
  line-height: 1.05;
}
.section-title--light { color: var(--white); }
.section-mark {
  width: 36px;
  height: 4px;
  background: var(--amber);
  margin: 0.9rem 0 1rem;
}
.section-subtitle {
  font-style: italic;
  color: var(--slate);
  font-size: 1.05rem;
  max-width: 800px;
}

/* ===========================================================
   NAV
   =========================================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.nav.is-scrolled {
  background: rgba(13, 27, 42, 0.96);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  box-shadow: 0 1px 0 rgba(232, 160, 32, 0.15);
}
.nav__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 1rem var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__brand {
  font-family: var(--display);
  display: flex;
  flex-direction: column;
  line-height: 1;
  color: var(--white);
  gap: 4px;
}
.nav__brand-mark {
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}
.nav__brand-mark .amber { color: var(--amber); }
.nav__brand-tagline {
  font-family: var(--body);
  font-size: 0.62rem;
  letter-spacing: 0.32em;
  font-weight: 700;
  color: var(--amber);
  text-transform: uppercase;
}

.nav__menu {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.nav__menu a {
  color: var(--white);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  position: relative;
  transition: color 0.2s ease;
}
.nav__menu a:not(.nav__cta):hover { color: var(--amber); }
.nav__menu a:not(.nav__cta)::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 2px;
  background: var(--amber);
  transition: width 0.25s ease;
}
.nav__menu a:not(.nav__cta):hover::after { width: 100%; }
.nav__cta {
  background: var(--amber);
  color: var(--navy-deep) !important;
  padding: 0.55rem 1.25rem;
  border-radius: 2px;
  font-weight: 700;
  transition: background 0.2s ease, transform 0.2s ease;
}
.nav__cta:hover { background: #FFB930; transform: translateY(-1px); }

.nav__toggle {
  display: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0.5rem;
  width: 44px;
  height: 44px;
}
.nav__toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  margin: 5px auto;
  transition: transform 0.3s ease, opacity 0.2s ease;
}
.nav__toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-active span:nth-child(2) { opacity: 0; }
.nav__toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===========================================================
   HERO
   =========================================================== */
.hero {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  min-height: 100vh;
  background: var(--navy-deep);
  position: relative;
  overflow: hidden;
}
.hero__panel {
  padding: 7rem var(--pad-x) 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
}
.hero__brand {
  font-family: var(--display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  color: var(--white);
  line-height: 1;
  letter-spacing: -0.03em;
}
.hero__brand .amber { color: var(--amber); }
.hero__tagline-small {
  margin-top: 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.42em;
  color: var(--amber);
  text-transform: uppercase;
}
.hero__divider {
  width: 56px;
  height: 4px;
  background: var(--amber);
  margin: 1.6rem 0 1.4rem;
}
.hero__headline {
  font-family: var(--body);
  font-weight: 300;
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  color: var(--white);
  max-width: 460px;
  line-height: 1.3;
}
.hero__meta {
  position: absolute;
  bottom: 2.5rem;
  left: var(--pad-x);
  font-size: 0.82rem;
  letter-spacing: 0.25em;
  color: var(--ice);
  text-transform: uppercase;
  margin: 0;
}

.hero__image {
  background-image:
    linear-gradient(90deg, rgba(13,27,42,0.92) 0%, rgba(13,27,42,0.78) 18%, rgba(13,27,42,0.68) 50%, rgba(13,27,42,0.65) 100%),
    url('assets/hero.jpg');
  background-size: cover;
  background-position: center;
}

/* ===========================================================
   QUIÉNES SOMOS
   =========================================================== */
.quienes {
  background: var(--cream);
  padding: 6rem 0;
}
.quienes__grid {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 2fr;
  gap: 3rem;
  align-items: start;
}
.quienes__photo img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  object-position: center;
}
.quienes__content .lead {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 700;
  color: var(--navy-deep);
  line-height: 1.35;
  margin-bottom: 0.75rem;
}
.quienes__content .lead-sub {
  font-style: italic;
  color: var(--amber-dim);
  font-size: 1rem;
  margin-bottom: 2.5rem;
}

.blocks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 2.5rem;
}
.block h3 {
  font-family: var(--body);
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy-deep);
  line-height: 1.3;
  margin-bottom: 0.6rem;
}
.block__mark {
  width: 22px;
  height: 3px;
  background: var(--amber);
  margin-bottom: 0.75rem;
}
.block p {
  font-size: 0.92rem;
  color: var(--navy-mid);
  text-align: justify;
  hyphens: auto;
  margin: 0;
}

/* ===========================================================
   SERVICIOS
   =========================================================== */
.servicios {
  background: var(--white);
  padding: 6rem 0;
}
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.service-card {
  position: relative;
  background: var(--cream);
  padding: 1.5rem 1.5rem 1.5rem 2rem;
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto 1fr;
  column-gap: 1rem;
  row-gap: 0.5rem;
}
.service-card__bar {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 5px;
  background: var(--amber);
}
.service-card__num {
  font-family: var(--display);
  font-size: 1.4rem;
  color: var(--amber);
  line-height: 1;
  align-self: start;
  margin-top: 0.1rem;
}
.service-card h3 {
  font-family: var(--body);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy-deep);
  line-height: 1.3;
  align-self: center;
}
.service-card p {
  grid-column: 1 / -1;
  font-size: 0.95rem;
  color: var(--navy-mid);
  text-align: justify;
  hyphens: auto;
  margin: 0.5rem 0 0;
}

/* ===========================================================
   NUESTRO TALLER
   =========================================================== */
.taller {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  background: var(--navy-deep);
  min-height: 540px;
}
.taller__photo {
  position: relative;
  overflow: hidden;
}
.taller__photo img {
  width: 100%;
  height: 100%;
  min-height: 540px;
  object-fit: cover;
  object-position: center;
}
.taller__content {
  padding: 4rem var(--pad-x);
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--ice);
  max-width: 560px;
}
.taller__content .section-title { color: var(--white); }
.taller__kicker {
  font-style: italic;
  color: var(--amber);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}
.taller__content p {
  text-align: justify;
  hyphens: auto;
  font-size: 0.98rem;
  margin-bottom: 1rem;
}
.taller__content p:last-child { margin-bottom: 0; }

/* ===========================================================
   TRABAJOS
   =========================================================== */
.trabajos {
  background: var(--white);
  padding: 6rem 0;
}
.trabajos__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  align-items: end;
}
.trabajo {
  margin: 0;
  display: flex;
  flex-direction: column;
}
.trabajo img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: center;
  background: var(--cream);
  transition: transform 0.4s ease;
}
.trabajo:hover img { transform: scale(1.02); }
.trabajo figcaption {
  margin-top: 1rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--navy-deep);
  text-align: center;
  letter-spacing: 0.01em;
}

/* ===========================================================
   CLIENTES
   =========================================================== */
.clientes {
  background: var(--cream);
  padding: 6rem 0;
}
.clientes__logos {
  margin-top: 2rem;
}
.clientes__logos img {
  width: 100%;
  height: auto;
  max-width: 1100px;
  margin: 0 auto;
}

/* ===========================================================
   CONTACTO / CIERRE
   =========================================================== */
.contacto {
  position: relative;
  padding: 6rem 0 3rem;
  background: var(--navy-deep);
  color: var(--white);
  overflow: hidden;
}
.contacto__bg {
  position: absolute;
  inset: 0;
  background-image: url('assets/cierre.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.18;
}
.contacto__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13,27,42,0.55) 0%, rgba(13,27,42,0.85) 100%);
}
.contacto__inner { position: relative; z-index: 2; }

.contacto__title {
  font-family: var(--display);
  font-size: clamp(2rem, 6vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--white);
}
.contacto__divider {
  width: 50px;
  height: 4px;
  background: var(--amber);
  margin: 1.75rem 0 1.5rem;
}
.contacto__lead {
  font-size: 1.1rem;
  color: var(--ice);
  margin-bottom: 3.5rem;
}

.contacto__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.contact-item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.contact-item__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--amber);
}
.contact-item a, .contact-item span:not(.contact-item__label) {
  color: var(--white);
  font-size: 0.95rem;
  line-height: 1.5;
  transition: color 0.2s ease;
}
.contact-item a:hover { color: var(--amber); }

.contacto__brand {
  margin-top: 3.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ice);
  opacity: 0.7;
}

/* ===========================================================
   RESPONSIVE — Tablet
   =========================================================== */
@media (max-width: 960px) {
  /* Nav: hamburger menu */
  .nav__toggle { display: block; }
  .nav__menu {
    position: fixed;
    top: 0; right: 0;
    width: min(320px, 80%);
    height: 100vh;
    background: var(--navy-deep);
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem 2rem 2rem;
    gap: 1.5rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -10px 0 30px rgba(0,0,0,0.3);
  }
  .nav__menu.is-open { transform: translateX(0); }
  .nav__menu a { font-size: 1.05rem; }
  .nav { background: rgba(13, 27, 42, 0.96); }

  /* Hero: stack */
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hero__panel { padding: 6rem var(--pad-x) 3rem; }
  .hero__image {
    height: 280px;
    background-image:
      linear-gradient(rgba(13,27,42,0.65), rgba(13,27,42,0.65)),
      url('assets/hero.jpg');
  }
  .hero__meta {
    position: static;
    margin-top: 1.5rem;
  }

  /* Quiénes: stack */
  .quienes__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .quienes__photo {
    max-width: 360px;
    margin: 0 auto;
  }
  .quienes__photo img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }
  .blocks { gap: 1.75rem; }

  /* Taller: stack */
  .taller {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .taller__photo img { min-height: 320px; height: 320px; }
  .taller__content {
    max-width: 100%;
    padding: 3rem var(--pad-x);
  }

  /* Trabajos: 2 cols */
  .trabajos__grid { grid-template-columns: 1fr 1fr; }
  .trabajo img { height: 260px; }

  /* Contacto grid: 2 cols */
  .contacto__grid { grid-template-columns: 1fr 1fr; gap: 1.75rem; }
}

/* ===========================================================
   RESPONSIVE — Mobile
   =========================================================== */
@media (max-width: 560px) {
  .quienes, .servicios, .trabajos, .clientes { padding: 4rem 0; }
  .contacto { padding: 4rem 0 2.5rem; }

  .blocks { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }

  .quienes__photo { max-width: 280px; }
  .trabajo img { height: 220px; }

  .contacto__grid { grid-template-columns: 1fr; }
  .contacto__lead { margin-bottom: 2rem; }
}
