/* ============================================================
   LARK.pro — Hoja de estilos
   Dirección visual inspirada en despachos de arquitectura
   (fotografía a pantalla completa, tipografía serif editorial,
   paleta contenida). Marca: azul marino + dorado.
   ============================================================ */

:root {
  --navy: #0a1f37;
  --navy-2: #0f2a4a;
  --gold: #c9a24b;
  --gold-light: #e8cf8a;
  --gold-dark: #9c7a2e;
  --stone: #f2ede4;      /* fondo cálido neutro, en vez de blanco puro */
  --stone-2: #e8e0d2;
  --paper: #fbf9f5;
  --ink: #211b13;
  --ink-soft: #6b6255;
  --line: #d9cfba;

  --font-display: 'Fraunces', serif;
  --font-body: 'Poppins', sans-serif;
  --font-signature: 'Cormorant Garamond', serif;

  --container: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 {
  font-family: var(--font-body);
  font-weight: 500;
  margin: 0 0 .5em;
  color: var(--navy);
  letter-spacing: -0.01em;
}
p { margin: 0 0 1em; }
ul, ol { list-style: none; margin: 0; padding: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  z-index: 999;
}
.skip-link:focus { left: 16px; top: 16px; }

/* --- Etiquetas de sección --- */
.eyebrow, .pillar-word::before {
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .74rem;
  font-weight: 500;
  color: var(--gold-dark);
}
.eyebrow-light { color: var(--gold-light); }
.section-head { margin-bottom: 48px; }
.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.section-head-light h2 { color: #fff; }

/* --- Botones tipo "línea" (más editorial que un botón sólido) --- */
.btn-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 0;
  font-size: .82rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--navy);
  border-bottom: 1.5px solid var(--gold);
  transition: color .2s ease, border-color .2s ease, padding .2s ease;
}
.btn-line:hover { color: var(--gold-dark); padding-left: 6px; }
.hero-actions .btn-line { color: #fff; border-color: var(--gold-light); }
.hero-actions .btn-line:hover { color: var(--gold-light); }
.contacto-form .btn-line {
  background: none;
  border: none;
  border-bottom: 1.5px solid var(--gold);
  border-radius: 0;
  cursor: pointer;
  font-family: var(--font-body);
  color: #fff;
  padding: 15px 0;
}
.contacto-form .btn-line:hover { color: var(--gold-light); }

/* --- Encabezado --- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 8px 0;
  background: rgb(7, 30, 54);
  border-bottom: 1px solid rgba(201,162,75,.18);
  transition: padding .3s ease;
}
.site-header.scrolled {
  padding: 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 110px;
}
.brand { display: flex; align-items: center; }
.brand-logo { height: 84px; width: auto; }

.nav { display: flex; align-items: center; gap: 36px; }
.nav a {
  color: #eef1f5;
  font-size: .85rem;
  font-weight: 400;
  letter-spacing: .03em;
  opacity: .9;
  position: relative;
}
.nav a:not(.nav-cta)::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -4px;
  height: 1px; background: var(--gold-light);
  transform: scaleX(0); transform-origin: left;
  transition: transform .2s ease;
}
.nav a:not(.nav-cta):hover::after { transform: scaleX(1); }
.nav a:hover { opacity: 1; }
.nav-cta {
  border-bottom: 1px solid var(--gold);
  padding-bottom: 3px;
  font-weight: 500;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span { width: 24px; height: 1.5px; background: var(--gold-light); border-radius: 2px; }

/* --- Hero a pantalla completa --- */
.hero {
  position: relative;
  min-height: 94vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 60% 30%;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(6,17,30,.92) 0%, rgba(6,17,30,.55) 45%, rgba(6,17,30,.35) 100%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  color: #fff;
  padding-bottom: 110px;
  padding-top: 160px;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.4rem, 5.2vw, 4rem);
  line-height: 1.08;
  margin: 18px 0 24px;
  max-width: 16ch;
}
.hero-lead {
  color: #dfe4ea;
  font-size: clamp(.72rem, 1.9vw, 1.05rem);
  max-width: none;
  font-weight: 300;
  white-space: nowrap;
}
.hero-actions { display: flex; gap: 40px; flex-wrap: wrap; margin-top: 20px; }

.scroll-cue {
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 22px; height: 36px;
  border: 1.5px solid rgba(255,255,255,.6);
  border-radius: 20px;
}
.scroll-cue span {
  position: absolute;
  top: 6px; left: 50%;
  width: 3px; height: 8px;
  margin-left: -1.5px;
  background: var(--gold-light);
  border-radius: 2px;
  animation: scrollcue 1.8s infinite;
}
@keyframes scrollcue {
  0% { opacity: 1; top: 6px; }
  100% { opacity: 0; top: 18px; }
}

/* --- Franja de pilares --- */
.pillars { background: var(--stone); padding: 64px 0; border-bottom: 1px solid var(--line); }
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.pillar {
  padding: 0 28px;
  border-left: 1px solid var(--line);
}
.pillar:first-child { border-left: none; padding-left: 0; }
.pillar-word {
  font-family: var(--font-body);
  font-size: 1.3rem;
  color: var(--navy);
  margin-bottom: 8px;
}
.pillar-desc { color: var(--ink-soft); font-size: .9rem; margin: 0; }

/* --- Servicios: lista editorial --- */
.servicios { background: var(--paper); padding: 110px 0; }
.servicios-list { max-width: 780px; }
.servicios-list li {
  display: flex;
  align-items: baseline;
  gap: 28px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  transition: padding-left .25s ease;
}
.servicios-list li:last-child { border-bottom: 1px solid var(--line); }
.servicios-list li:hover { padding-left: 12px; }
.servicio-num {
  font-family: var(--font-body);
  color: var(--gold-dark);
  font-size: 1rem;
  width: 32px;
  flex-shrink: 0;
}
.servicio-nombre {
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 2vw, 1.4rem);
  color: var(--navy);
}

/* --- Proyectos: galería de tarjetas pequeñas, contenida en la página --- */
.proyectos { background: var(--stone); padding: 110px 0; }

.carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 44px;
}
.carousel-track {
  flex: 1;
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
  padding: 4px 2px;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track.dragging { cursor: grabbing; scroll-snap-type: none; }

.carousel-slide {
  flex: 0 0 300px;
  scroll-snap-align: start;
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 10px;
}
.carousel-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  pointer-events: none;
  transition: transform .5s ease;
}
.carousel-slide:hover img { transform: scale(1.04); }
.carousel-slide figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 18px 20px;
  background: linear-gradient(0deg, rgba(6,17,30,.88), transparent);
  color: #fff;
  font-size: .78rem;
  font-weight: 300;
}
.carousel-slide figcaption span {
  display: block;
  font-family: var(--font-body);
  font-size: 1.05rem;
  margin-bottom: 2px;
}

.carousel-btn {
  flex-shrink: 0;
  position: static;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}
.carousel-btn:hover { background: var(--navy); border-color: var(--navy); }
.carousel-btn svg { width: 18px; height: 18px; fill: none; stroke: var(--navy); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.carousel-btn:hover svg { stroke: var(--gold-light); }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}
.carousel-dots button {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: 1px solid var(--gold-dark);
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: background .2s ease;
}
.carousel-dots button.active { background: var(--gold-dark); }

/* --- Nosotros --- */
.nosotros { background: var(--paper); padding: 120px 0; }
.nosotros-inner {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 72px;
  align-items: center;
}
.nosotros-foto { margin: 0; justify-self: center; }
.nosotros-foto img {
  width: 190px;
  height: 190px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 52% 34%;
  box-shadow:
    0 0 0 8px var(--paper),
    0 0 0 9px var(--gold),
    0 22px 40px -16px rgba(10,31,55,.4);
}
.nosotros-quote {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  color: var(--navy);
  line-height: 1.4;
  margin: 10px 0 28px;
}
.nosotros-text p:not(.nosotros-quote) { color: var(--ink-soft); }
.nosotros-firma-img {
  height: 408px;
  width: auto;
  margin-top: 28px;
}

/* --- Contacto --- */
.contacto {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  padding: 110px 0;
  color: #fff;
}
.contacto-grid {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 60px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field label { font-size: .78rem; letter-spacing: .04em; color: #c3cbd6; }
.field input, .field select, .field textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,.28);
  padding: 8px 2px;
  color: #fff;
  font-family: var(--font-body);
  font-size: .95rem;
  border-radius: 0;
  resize: vertical;
}
.field select option { color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.contacto-form-note { font-size: .78rem; color: #93a0b0; margin-top: 14px; }

.contacto-label {
  display: block;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .72rem;
  color: var(--gold-light);
  margin-bottom: 14px;
}

.contacto-botones { display: flex; flex-direction: column; gap: 14px; margin-bottom: 40px; }
.contacto-boton {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 22px;
  border: 1px solid rgba(201,162,75,.4);
  border-radius: 999px;
  font-size: 1rem;
  transition: background .2s ease, border-color .2s ease, transform .15s ease;
}
.contacto-boton:hover {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
  transform: translateY(-2px);
}
.contacto-boton-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(201,162,75,.15);
  flex-shrink: 0;
}
.contacto-boton-icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.social-icons { display: flex; gap: 14px; }
.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(201,162,75,.4);
  transition: background .2s ease, border-color .2s ease, transform .15s ease;
}
.social-icons a:hover { background: var(--gold); border-color: var(--gold); transform: translateY(-2px); }
.social-icons svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.social-icons a:hover svg { stroke: var(--navy); }

/* --- Pie de página --- */
.site-footer { background: #071627; color: #cdd5df; padding: 48px 0 28px; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand { display: flex; align-items: center; gap: 16px; }
.footer-logo { height: 48px; width: auto; }
.footer-brand p { margin: 0; font-size: .82rem; color: #a9b3c0; }
.footer-categorias { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-categorias span {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--gold-light);
}
.footer-copy { text-align: center; font-size: .78rem; color: #7c8896; margin: 22px 0 0; }

/* ============================================================
   Responsivo
   ============================================================ */
@media (max-width: 980px) {
  .nosotros-inner, .contacto-grid { grid-template-columns: 1fr; }
  .pillars-grid { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
  .pillar:nth-child(3) { border-left: none; padding-left: 0; }
  .carousel-slide { flex-basis: 240px; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav {
    position: absolute;
    top: 110px;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 32px 28px;
    gap: 18px;
    display: none;
    border-bottom: 1px solid rgba(201,162,75,.2);
  }
  .nav.open { display: flex; }
  .site-header:not(.scrolled) .nav.open { background: rgba(10,31,55,.98); }
  .servicios, .proyectos, .nosotros, .contacto { padding: 72px 0; }
  .pillars { padding: 48px 0; }
  .pillars-grid { grid-template-columns: 1fr; row-gap: 24px; }
  .pillar { border-left: none; padding-left: 0; }
  .form-row { grid-template-columns: 1fr; }
  .hero-inner { padding-top: 130px; padding-bottom: 80px; }
  .hero-lead { white-space: normal; font-size: 1rem; }
  .carousel { gap: 10px; }
  .carousel-slide { flex-basis: 66vw; }
  .carousel-slide figcaption { padding: 14px 16px; }
  .carousel-btn { width: 36px; height: 36px; }
}
