/* ============================
   PulsarDynamics — styles.css
   ============================ */

/* Reset básico */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

/* Variables de marca */
:root {
  --bg: #fafaf7;          /* fondo claro arena */
  --bg-alt: #f1efe9;      /* beige suave */
  --text: #1c1c1a;        /* negro suave */
  --muted: #6b6a66;       /* gris piedra */
  --line: #e3e1db;        /* línea separadora */
  --accent: #1c1c1a;      /* botón principal */
  --max: 1200px;
  --pad: 24px;
  --radius: 2px;
  --serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

/* Tipografía base */
body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
  line-height: 1.15;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }

p { margin: 0 0 1em; color: var(--muted); }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.2rem;
}

/* Botones */
.btn {
  display: inline-block;
  padding: 14px 28px;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: all 0.25s ease;
  border: 1px solid transparent;
}
.btn-primary {
  background: #fff;
  color: var(--text);
}
.btn-primary:hover { background: var(--text); color: #fff; }

.btn-outline {
  border-color: #fff;
  color: #fff;
}
.btn-outline:hover { background: #fff; color: var(--text); }

.btn-dark {
  background: var(--text);
  color: #fff;
}
.btn-dark:hover { background: #000; }

/* ============================
   Cabecera
   ============================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(250, 250, 247, 0);
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
  padding: 22px 0;
}
.site-header.scrolled {
  background: rgba(250, 250, 247, 0.96);
  box-shadow: 0 1px 0 var(--line);
  padding: 14px 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo img {
  height: 52px;
  width: auto;
  filter: invert(1) brightness(2); /* logo blanco sobre hero oscuro */
  transition: filter 0.3s ease;
}
.site-header.scrolled .logo img { filter: none; }

.nav ul {
  display: flex;
  gap: 52px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav a {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: #fff;
  position: relative;
  padding: 4px 0;
  transition: color 0.3s ease;
}
.site-header.scrolled .nav a { color: var(--text); }
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: currentColor;
  transition: width 0.3s ease;
}
.nav a:hover::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-toggle span {
  width: 26px;
  height: 1.5px;
  background: #fff;
  transition: all 0.3s ease;
}
.site-header.scrolled .nav-toggle span { background: var(--text); }

/* ============================
   Hero
   ============================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}
.hero-image {
  position: absolute;
  inset: 0;
  background: url("assets/hero.jpg") center/cover no-repeat;
  background-color: #2a2a28; /* fallback si la imagen no carga */
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.45), rgba(0,0,0,0.35));
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding-top: 100px;
  padding-bottom: 60px;
}
.hero-content h1 { color: #fff; margin-bottom: 24px; }
.hero-content h1 span {
  display: block;
  font-size: 0.55em;
  color: rgba(255,255,255,0.92);
  margin-top: 12px;
}
.hero-content p {
  color: rgba(255,255,255,0.85);
  max-width: 560px;
  font-size: 1.05rem;
  margin-bottom: 40px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ============================
   Secciones
   ============================ */
.section { padding: 120px 0; }

.section-head {
  text-align: center;
  margin-bottom: 60px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

/* Compañía */
.compania { background: var(--bg); }
.compania-img img {
  width: 100%;
  height: 100%;
  max-height: 560px;
  object-fit: cover;
}

/* Proyectos */
.proyectos { background: var(--bg-alt); }
.proyecto-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0;
  background: #fff;
  overflow: hidden;
}
.proyecto-img img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}
.proyecto-info {
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.proyecto-info h3 { margin-bottom: 16px; }
.proyecto-info p { margin-bottom: 32px; }
.proyecto-info .btn { align-self: flex-start; }

/* ============================
   Quote section
   ============================ */
.quote-section {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  overflow: hidden;
}
.quote-image {
  position: absolute;
  inset: 0;
  background: url("assets/fondo-rigor.png") center/cover no-repeat;
  background-color: #2a2a28;
}
.quote-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}
.quote-content {
  position: relative;
  z-index: 2;
  padding: 100px 24px;
}
.quote-content p {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3.2vw, 2.6rem);
  font-weight: 400;
  color: #fff;
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.3;
}

/* ============================
   Contacto
   ============================ */
.contacto { background: var(--bg); }
.contacto-form { display: flex; flex-direction: column; gap: 20px; }
.field { display: flex; flex-direction: column; }
.field label {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.field input,
.field textarea {
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  outline: none;
  transition: border-color 0.25s ease;
}
.field input:focus,
.field textarea:focus { border-color: var(--text); }
.field textarea { resize: vertical; min-height: 100px; }
.contacto-form .btn { align-self: flex-start; margin-top: 8px; }
.field-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--muted);
}
.field-check input { margin-top: 3px; }
.field-check a { text-decoration: underline; }
.form-feedback {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
  min-height: 1.2em;
}

/* ============================
   Footer
   ============================ */
.site-footer {
  background: #1c1c1a;
  color: #c9c8c4;
  padding: 70px 0 30px;
  font-size: 0.9rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.footer-name {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: #fff;
  margin: 0 0 6px;
}
.footer-tag, .footer-info p { margin: 0 0 6px; color: #9b9a96; }
.footer-info { text-align: right; }
.footer-info a { color: #c9c8c4; }
.footer-info a:hover { color: #fff; }
.footer-bottom {
  grid-column: 1 / -1;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid #2c2c2a;
  font-size: 0.8rem;
  color: #7d7c78;
}
.footer-bottom p { color: inherit; margin: 0; }
.footer-legal {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid #2c2c2a;
  font-size: 0.82rem;
}
.footer-legal a { color: #9b9a96; }
.footer-legal a:hover { color: #fff; }

/* ============================
   Responsive
   ============================ */
@media (max-width: 900px) {
  .section { padding: 80px 0; }
  .grid-2 { grid-template-columns: 1fr; gap: 40px; }
  .proyecto-card { grid-template-columns: 1fr; }
  .proyecto-info { padding: 40px 28px; }
  .proyecto-img img { min-height: 280px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-info { text-align: left; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: 78%;
    max-width: 320px;
    background: var(--bg);
    padding: 90px 30px 30px;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    box-shadow: -1px 0 0 var(--line);
  }
  .nav.open { transform: translateX(0); }
  .nav ul { flex-direction: column; gap: 22px; }
  .nav a { color: var(--text); font-size: 1rem; }
  .site-header.scrolled .nav a { color: var(--text); }

  .hero-content { padding-top: 120px; }
  .hero-actions .btn { width: 100%; text-align: center; }
}

@media (max-width: 480px) {
  :root { --pad: 20px; }
  .section { padding: 60px 0; }
  .proyecto-info { padding: 32px 22px; }
}