/* ============================================================
   PAGES.CSS — estilos compartidos: Marca, Proyectos, Contacto
   ============================================================ */

.nav-active {
  color: var(--white) !important;
  border-bottom: 2px solid var(--orange);
  padding-bottom: 2px;
}

/* CABECERA DE PAGINA */
.page-hero {
  background:
    linear-gradient(100deg, rgba(10, 12, 13, 0.94) 30%, rgba(24, 27, 28, 0.72) 100%),
    url("assets/hero/hydronock-hero.png") center 30% / cover no-repeat;
  color: var(--white);
  padding: 168px clamp(20px, 5vw, 72px) 72px;
}

.page-hero-inner {
  margin: 0 auto;
  max-width: 1200px;
}

.page-hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 0.95;
  margin-bottom: 16px;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.68);
  font-family: "Inter", sans-serif;
  font-size: clamp(0.92rem, 1.4vw, 1.05rem);
  line-height: 1.8;
  margin: 0;
  max-width: 620px;
}

/* ============================================================
   MARCA
   ============================================================ */
.story-section {
  background: var(--white);
}

.story-grid {
  align-items: center;
  display: grid;
  gap: 48px;
  grid-template-columns: 0.85fr 1.15fr;
  margin: 0 auto;
  max-width: 1200px;
}

.story-copy h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.story-copy p {
  color: var(--steel);
  font-family: "Inter", sans-serif;
  font-size: 0.92rem;
  line-height: 1.9;
}

.story-media {
  position: relative;
}

.story-media img,
.story-media video {
  border-radius: 12px;
  box-shadow: 0 30px 70px rgba(17, 19, 20, 0.25);
  display: block;
  width: 100%;
}

.story-badge {
  background: var(--orange);
  border-radius: 8px;
  bottom: -34px;
  box-shadow: 0 14px 34px rgba(240, 90, 34, 0.4);
  color: var(--white);
  font-family: "Barlow Condensed", sans-serif;
  left: -18px;
  padding: 14px 22px;
  position: absolute;
  text-align: center;
}

.story-badge strong {
  display: block;
  font-size: 1.9rem;
  font-weight: 900;
  line-height: 1;
}

.story-badge span {
  font-family: "Inter", sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* CIFRAS */
.stats-band {
  background: linear-gradient(135deg, #111317, #2d3133);
  color: var(--white);
  padding: 56px clamp(20px, 5vw, 72px);
}

.stats-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, 1fr);
  margin: 0 auto;
  max-width: 1200px;
}

.stat strong {
  color: var(--gold);
  display: block;
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 900;
  line-height: 1;
}

.stat span {
  color: rgba(255, 255, 255, 0.55);
  display: block;
  font-family: "Inter", sans-serif;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-top: 8px;
  text-transform: uppercase;
}

/* VALORES / PILARES */
.pillars-section {
  background: var(--paper);
}

.pillars-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 auto;
  max-width: 1200px;
}

.pillar {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  border-top: 4px solid var(--orange);
  padding: 28px 26px;
}

.pillar h3 {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.pillar p {
  color: var(--steel);
  font-family: "Inter", sans-serif;
  font-size: 0.85rem;
  line-height: 1.8;
  margin: 0;
}

/* VIDEO DESTACADO (MARCA) */
.video-feature-section {
  background: var(--white);
}

.video-feature-wrap {
  background: #0d0f11;
  border-radius: 12px;
  box-shadow: 0 26px 60px rgba(17, 19, 20, 0.22);
  display: flex;
  justify-content: center;
  margin: 0 auto;
  max-width: 1100px;
  overflow: hidden;
}

.video-feature-wrap video {
  display: block;
  max-height: 640px;
  max-width: 100%;
}

/* CTA FINAL */
.cta-band {
  background:
    linear-gradient(100deg, rgba(10, 12, 13, 0.92), rgba(40, 20, 8, 0.78)),
    url("assets/hero/hydronock-hero.png") center 60% / cover no-repeat;
  color: var(--white);
  padding: 80px clamp(20px, 5vw, 72px);
  text-align: center;
}

.cta-band h2 {
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  margin-bottom: 14px;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.66);
  font-family: "Inter", sans-serif;
  margin: 0 auto 30px;
  max-width: 540px;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* ============================================================
   PROYECTOS
   ============================================================ */
.gallery-section {
  background: var(--white);
}

.gallery-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 auto;
  max-width: 1200px;
}

.gallery-item {
  background: #eceff1;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.gallery-item video,
.gallery-item img {
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
  width: 100%;
}

.gallery-caption {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: none;
  padding: 14px 16px;
}

.gallery-caption strong {
  display: block;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.gallery-caption span {
  color: var(--muted);
  font-family: "Inter", sans-serif;
  font-size: 0.74rem;
}

/* PLACEHOLDERS DE FOTOS PENDIENTES */
.gallery-placeholder {
  align-items: center;
  aspect-ratio: 4 / 3;
  background:
    repeating-linear-gradient(45deg, #f0f2f4 0 14px, #e8ebee 14px 28px);
  border: 1.5px dashed #c4ccd2;
  border-radius: 10px;
  color: #9aa4ac;
  display: flex;
  flex-direction: column;
  font-family: "Inter", sans-serif;
  font-size: 0.74rem;
  font-weight: 600;
  gap: 8px;
  justify-content: center;
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
}

.gallery-placeholder::before {
  content: "📷";
  font-size: 1.6rem;
}

/* ============================================================
   CONTACTO
   ============================================================ */
.contact-page-section {
  background: var(--paper);
}

.contact-grid {
  display: grid;
  gap: 44px;
  grid-template-columns: 0.85fr 1.15fr;
  margin: 0 auto;
  max-width: 1200px;
}

.contact-info h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
}

.contact-info > p {
  color: var(--steel);
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  line-height: 1.8;
}

.contact-cards {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.contact-card {
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--orange);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 16px 18px;
  transition: box-shadow 150ms ease, transform 150ms ease;
}

a.contact-card:hover {
  box-shadow: 0 12px 30px rgba(17, 19, 20, 0.12);
  transform: translateY(-2px);
}

.contact-card .label {
  color: var(--muted);
  font-family: "Inter", sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-card .value {
  color: var(--ink);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.contact-card .value.small {
  font-family: "Inter", sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.5;
}

/* FORMULARIO */
.contact-form-panel {
  background: var(--white);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: clamp(24px, 4vw, 40px);
}

.contact-form-panel h3 {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.contact-form-panel > p {
  color: var(--muted);
  font-family: "Inter", sans-serif;
  font-size: 0.84rem;
  margin-bottom: 22px;
}

.form-grid {
  display: grid;
  gap: 16px;
}

.form-row {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr 1fr;
}

select {
  background: var(--white);
  border: 1px solid #d8dde2;
  border-radius: 6px;
  color: var(--ink);
  font: inherit;
  padding: 14px;
}

.form-note {
  color: var(--muted);
  font-family: "Inter", sans-serif;
  font-size: 0.72rem;
  line-height: 1.6;
}

/* MAPA */
.map-section {
  background: var(--white);
  padding-top: 0;
}

.map-wrap {
  border: 1px solid var(--line);
  border-radius: 10px;
  margin: 0 auto;
  max-width: 1200px;
  overflow: hidden;
}

.map-wrap iframe {
  display: block;
  height: 380px;
  width: 100%;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .story-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }

  .pillars-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .pillars-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

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

  .page-hero {
    padding-top: 140px;
  }
}
