/* ═══════════════════════════════════════════════
   VQ Arquitectura — Stylesheet
   Paleta: Navy #1e2d4a · Gold #b8952a · Cream #f5f3ee
   Fuentes: Cormorant Garamond + DM Sans
   ═══════════════════════════════════════════════ */

/* ─── Variables ─── */
:root {
  --navy:       #1e2d4a;
  --navy-light: #2a3d62;
  --gold:       #b8952a;
  --gold-light: #d4ae52;
  --cream:      #f5f3ee;
  --cream-dark: #ece9e1;
  --white:      #ffffff;
  --text:       #1a1a2e;
  --text-mid:   #4a4a5a;
  --text-light: #7a7a8a;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --radius:   4px;
  --radius-lg: 8px;
  --shadow:   0 4px 32px rgba(30, 45, 74, .08);
  --shadow-lg: 0 12px 60px rgba(30, 45, 74, .14);

  --transition: .3s ease;
  --transition-slow: .6s cubic-bezier(.22, 1, .36, 1);

  --container: 1240px;
  --gap: clamp(1.5rem, 4vw, 3rem);
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
address { font-style: normal; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ─── Tipografía base ─── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
}

/* ─── Container ─── */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 4rem);
}
.container--narrow {
  max-width: 760px;
}

/* ═══════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
  padding-block: 1.5rem;
}
.header.scrolled {
  background: rgba(30, 45, 74, .96);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 24px rgba(0,0,0,.15);
  padding-block: 1rem;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 4rem);
}

.header__logo img {
  height: 52px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: height var(--transition);
}
.header.scrolled .header__logo img { height: 42px; }

/* Nav */
.nav__list {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.nav__link {
  font-family: var(--font-body);
  font-size: .875rem;
  font-weight: 400;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.85);
  transition: color var(--transition);
  padding-bottom: 2px;
  position: relative;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width var(--transition);
}
.nav__link:hover,
.nav__link:hover::after { color: var(--white); width: 100%; }

.nav__link--cta {
  color: var(--white);
  border: 1px solid rgba(184,149,42,.6);
  padding: .45rem 1.2rem;
  border-radius: var(--radius);
  transition: background var(--transition), border-color var(--transition);
}
.nav__link--cta::after { display: none; }

.nav__link--clientes {
  color: var(--white);
  background: rgba(184,149,42,.15);
  border: 1px solid rgba(184,149,42,.5);
  padding: .45rem 1.2rem;
  border-radius: var(--radius);
  transition: background var(--transition), border-color var(--transition);
}
.nav__link--clientes::after { display: none; }
.nav__link--clientes:hover {
  background: rgba(184,149,42,.3);
  border-color: var(--gold);
  color: var(--white);
}
.nav__link--cta:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white);
}

/* Burger */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav__burger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ═══════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════ */
.hero {
  position: relative;
  height: 100svh;
  min-height: 640px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
}
.hero__img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(30, 45, 74, .72) 0%,
    rgba(30, 45, 74, .45) 60%,
    rgba(0,0,0,.2) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: 0 clamp(1.25rem, 8vw, 8rem);
  max-width: 900px;
  padding-top: 6rem;
}

.hero__eyebrow {
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 400;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.25rem;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 8vw, 7rem);
  font-weight: 300;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 1.5rem;
}
.hero__title em {
  font-style: italic;
  color: var(--gold-light);
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 300;
  color: rgba(255,255,255,.8);
  max-width: 480px;
  margin-bottom: 2.5rem;
  letter-spacing: .02em;
}

.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero__scroll-line {
  display: block;
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, rgba(255,255,255,.6), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 1; }
  50%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  51%  { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* ═══════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════ */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .875rem;
  font-weight: 400;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .85rem 2.2rem;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: var(--gold);
  color: var(--white);
  border: 2px solid var(--gold);
}
.btn--primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.5);
}
.btn--ghost:hover {
  border-color: var(--white);
}

.btn--gold {
  background: var(--gold);
  color: var(--white);
  border: 2px solid var(--gold);
}
.btn--gold:hover {
  background: transparent;
  color: var(--gold);
}

.btn--full { width: 100%; text-align: center; }

/* ═══════════════════════════════════════════════
   SECCIONES
   ═══════════════════════════════════════════════ */
.section { padding-block: clamp(5rem, 10vw, 9rem); }
.section--light  { background: var(--white); }
.section--dark   { background: var(--navy); }
.section--cream  { background: var(--cream); }

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}
.section-header--left { text-align: left; }

.section-header__label {
  display: block;
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .75rem;
}

.section-header__title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 1rem;
}
.section-header--light .section-header__title { color: var(--white); }
.section-header--light .section-header__label { color: var(--gold-light); }

.section-header__desc {
  font-size: 1.05rem;
  color: var(--text-mid);
  max-width: 560px;
  margin-inline: auto;
  line-height: 1.8;
}
.section-header--light .section-header__desc { color: rgba(255,255,255,.7); }
.section-header--left .section-header__desc { margin-inline: 0; }

/* ═══════════════════════════════════════════════
   PROYECTOS
   ═══════════════════════════════════════════════ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .projects-grid { grid-template-columns: 1fr; }
}

.project-card { position: relative; overflow: hidden; border-radius: var(--radius-lg); }

.project-card__img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.project-card__img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .7s cubic-bezier(.22, 1, .36, 1);
}
.project-card:hover .project-card__img { transform: scale(1.06); }

.project-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30,45,74,.85) 0%, rgba(30,45,74,.1) 55%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.75rem;
  opacity: 0;
  transition: opacity var(--transition-slow);
}
.project-card:hover .project-card__overlay { opacity: 1; }

.project-card__type {
  font-family: var(--font-body);
  font-size: .72rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: .4rem;
}
.project-card__name {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 400;
  color: var(--white);
  line-height: 1.2;
}

/* ═══════════════════════════════════════════════
   SERVICIOS
   ═══════════════════════════════════════════════ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}
.services-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

@media (max-width: 1100px) {
  .services-grid,
  .services-grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .services-grid,
  .services-grid-3 { grid-template-columns: 1fr; }
}

.service-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}
.service-card:hover {
  background: rgba(184,149,42,.08);
  border-color: rgba(184,149,42,.25);
  transform: translateY(-4px);
}

.service-card__icon {
  width: 2.5rem; height: 2.5rem;
  color: var(--gold);
  margin-bottom: 1.25rem;
}
.service-card__icon svg { width: 100%; height: 100%; }

.service-card__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--white);
  margin-bottom: .6rem;
}

.service-card__desc {
  font-size: .9rem;
  color: rgba(255,255,255,.6);
  line-height: 1.7;
}

.services-cta { text-align: center; }

/* ═══════════════════════════════════════════════
   SOBRE NOSOTROS
   ═══════════════════════════════════════════════ */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}

@media (max-width: 768px) {
  .about { grid-template-columns: 1fr; }
}

.about__image {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
}
.about__image img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: center;
  transition: transform .8s cubic-bezier(.22, 1, .36, 1);
}
.about__image:hover img { transform: scale(1.03); }

.about__text {
  font-size: 1.05rem;
  color: var(--text-mid);
  line-height: 1.85;
  margin-bottom: 1.25rem;
}
.about__text strong { color: var(--navy); font-weight: 500; }

.about__stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--cream-dark);
}

.stat__number {
  display: block;
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 500;
  color: var(--navy);
  line-height: 1;
}
.stat__label {
  display: block;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-top: .35rem;
}

/* ═══════════════════════════════════════════════
   CONTACTO
   ═══════════════════════════════════════════════ */
.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3.5rem);
  box-shadow: var(--shadow-lg);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  margin-bottom: 1.25rem;
}
.form-group--check { flex-direction: row; align-items: flex-start; gap: .75rem; }

label {
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-mid);
}

input, select, textarea {
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 300;
  color: var(--text);
  background: var(--cream);
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  padding: .75rem 1rem;
  transition: border-color var(--transition), background var(--transition);
  width: 100%;
}
input::placeholder, textarea::placeholder { color: var(--text-light); }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--white);
}

textarea { resize: vertical; min-height: 130px; }

.check-label {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .875rem;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 300;
  cursor: pointer;
  color: var(--text-mid);
}
.check-label input[type="checkbox"] {
  width: 1rem; height: 1rem;
  flex-shrink: 0;
  margin-top: .15rem;
  accent-color: var(--gold);
}
.check-label a { color: var(--gold); border-bottom: 1px solid transparent; }
.check-label a:hover { border-color: var(--gold); }

.captcha-group {
  background: var(--cream);
  border: 1.5px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
}
.captcha-group label {
  color: var(--navy);
}
.captcha-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: .4rem;
}
.captcha-question {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
}
.captcha-wrap input {
  max-width: 110px;
  background: var(--white);
}

.form-msg {
  margin-top: 1rem;
  font-size: .9rem;
  text-align: center;
  font-weight: 400;
}
.form-msg.ok  { color: #2d7a4f; }
.form-msg.err { color: #c0392b; }

/* ═══════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════ */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,.75);
  padding-top: clamp(4rem, 8vw, 7rem);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: clamp(2rem, 4vw, 4rem);
  padding-bottom: 4rem;
}
@media (max-width: 900px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer__grid { grid-template-columns: 1fr; }
}

.footer__brand img {
  filter: brightness(0) invert(1);
  height: 48px;
  margin-bottom: 1.25rem;
}
.footer__tagline {
  font-size: .9rem;
  line-height: 1.7;
  max-width: 260px;
  margin-bottom: 1.5rem;
}

.footer__social { display: flex; gap: 1rem; }
.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem; height: 2.25rem;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  color: rgba(255,255,255,.7);
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}
.social-link svg { width: 1rem; height: 1rem; }
.social-link:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(184,149,42,.08);
}

.footer__heading {
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.25rem;
}

.footer__nav ul, .footer__services ul {
  display: flex;
  flex-direction: column;
  gap: .65rem;
}
.footer__nav a { transition: color var(--transition); }
.footer__nav a:hover { color: var(--white); }
.footer__services li { font-size: .88rem; }

.footer__contact address {
  display: flex;
  flex-direction: column;
  gap: .85rem;
}
.footer__contact p {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .9rem;
}
.footer__contact svg { width: 1rem; height: 1rem; flex-shrink: 0; color: var(--gold); }
.footer__contact a { transition: color var(--transition); }
.footer__contact a:hover { color: var(--white); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-block: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem;
}

.footer__legal { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer__legal a {
  font-size: .78rem;
  color: rgba(255,255,255,.5);
  transition: color var(--transition);
}
.footer__legal a:hover { color: rgba(255,255,255,.85); }

.footer__copy {
  font-size: .78rem;
  color: rgba(255,255,255,.35);
}

/* ═══════════════════════════════════════════════
   WHATSAPP FLOTANTE
   ═══════════════════════════════════════════════ */
.whatsapp-btn {
  position: fixed;
  bottom: 2rem;
  right: 1.75rem;
  z-index: 800;
  width: 3.25rem; height: 3.25rem;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,.25);
  transition: transform var(--transition), box-shadow var(--transition);
}
.whatsapp-btn svg { width: 1.75rem; height: 1.75rem; color: var(--white); }
.whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(0,0,0,.3);
}

/* ═══════════════════════════════════════════════
   COOKIE BANNER
   ═══════════════════════════════════════════════ */
.cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  max-width: 620px;
  background: var(--navy);
  color: rgba(255,255,255,.85);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  transform: translateY(140%);
  transition: transform .5s cubic-bezier(.22, 1, .36, 1);
}
.cookie-banner.visible { transform: translateY(0); }
.cookie-banner[aria-hidden="true"] { display: none; }

.cookie-banner p { font-size: .88rem; flex: 1; line-height: 1.6; }
.cookie-banner a { color: var(--gold-light); border-bottom: 1px solid transparent; }
.cookie-banner a:hover { border-color: var(--gold-light); }

.cookie-banner__actions { display: flex; gap: .75rem; }

.btn-cookie {
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .55rem 1.25rem;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
  cursor: pointer;
  border: none;
}
.btn-cookie--accept { background: var(--gold); color: var(--white); }
.btn-cookie--accept:hover { background: var(--gold-light); }
.btn-cookie--reject {
  background: transparent;
  color: rgba(255,255,255,.6);
  border: 1px solid rgba(255,255,255,.2);
}
.btn-cookie--reject:hover { color: var(--white); border-color: rgba(255,255,255,.5); }

/* ═══════════════════════════════════════════════
   ANIMACIONES DE SCROLL
   ═══════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.22, 1, .36, 1), transform .7s cubic-bezier(.22, 1, .36, 1);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal--delay-1 { transition-delay: .12s; }
.reveal--delay-2 { transition-delay: .24s; }
.reveal--delay-3 { transition-delay: .36s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ═══════════════════════════════════════════════
   MOBILE NAV
   ═══════════════════════════════════════════════ */
@media (max-width: 768px) {
  .nav__burger { display: flex; }

  .nav {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(320px, 85vw);
    background: var(--navy);
    padding: 6rem 2.5rem 2.5rem;
    transform: translateX(100%);
    transition: transform var(--transition-slow);
    z-index: 850;
  }
  .nav.open { transform: translateX(0); }

  .nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }
  .nav__link {
    display: block;
    font-size: 1.1rem;
    letter-spacing: .06em;
    padding-block: 1rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
    width: 100%;
  }
  .nav__link--cta {
    display: inline-block;
    width: auto;
    margin-top: 1.5rem;
    border-color: var(--gold);
  }
}
