/* ═══════════════════════════════════════════════════════════════
   VALTRIA CAPITAL PARTNERS — Hoja de estilos principal
   ═══════════════════════════════════════════════════════════════ */

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

:root {
  --charcoal:     #2D2D35;
  --charcoal-80:  rgba(45,45,53,0.80);
  --bronze:       #875133;
  --bronze-light: #C08050;
  --off-white:    #F7F5F2;
  --white:        #FFFFFF;
  --mid:          #8A8A8E;
  --rule:         rgba(45,45,53,0.12);
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--charcoal);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

/* ── NAV ──────────────────────────────────────────────────────── */
#valtria-nav {
  position: fixed !important;
  top: 0 !important; left: 0 !important; right: 0 !important;
  z-index: 999999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 0 5vw !important;
  height: 68px !important;
  background: #ffffff !important;
  border-bottom: 1px solid rgba(45,45,53,0.12) !important;
  box-shadow: 0 2px 20px rgba(45,45,53,0.08) !important;
  visibility: visible !important;
  opacity: 1 !important;
}
#valtria-nav.scrolled { box-shadow: 0 2px 24px rgba(45,45,53,0.12) !important; }

.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo svg { height: 48px; width: auto; display: block; }
.nav-logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.nav-logo-text .name {
  font-family: var(--font-display);
  font-size: 18px; font-weight: 500;
  letter-spacing: 0.18em; color: var(--charcoal);
}
.nav-logo-text .sub {
  font-size: 9px; font-weight: 300;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--bronze);
}

.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a {
  font-size: 12px; font-weight: 400;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--charcoal); text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--bronze); }
.nav-links .cta a {
  background: var(--charcoal); color: var(--white);
  padding: 9px 22px; letter-spacing: 0.1em;
}
.nav-links .cta a:hover { background: var(--bronze); color: var(--white); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 4px;
}
.nav-toggle span { display: block; width: 22px; height: 1.5px; background: var(--charcoal); transition: all 0.3s; }

/* ── BUTTONS ──────────────────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  background: var(--charcoal); color: var(--white);
  padding: 14px 32px;
  font-size: 12px; font-weight: 400;
  letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none; border: none; cursor: pointer;
  transition: background 0.2s;
}
.btn-primary:hover { background: var(--bronze); }

.btn-outline {
  display: inline-block;
  border: 1px solid var(--charcoal); color: var(--charcoal);
  padding: 14px 32px;
  font-size: 12px; font-weight: 400;
  letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none;
  transition: all 0.2s;
}
.btn-outline:hover { background: var(--charcoal); color: var(--white); }

.btn-outline-light {
  display: inline-block;
  border: 1px solid rgba(255,255,255,0.3); color: var(--white);
  padding: 13px 28px;
  font-size: 11px; font-weight: 400;
  letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none; margin-top: 48px;
  transition: all 0.2s;
}
.btn-outline-light:hover { background: var(--bronze); border-color: var(--bronze); }

/* ── SECCIONES COMUNES ────────────────────────────────────────── */
section { padding: 96px 5vw; }

.section-eyebrow {
  font-size: 10px; font-weight: 400;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--bronze); display: block; margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 300; line-height: 1.15;
  color: var(--charcoal); margin-bottom: 20px;
}
.section-lead {
  font-size: 16px; font-weight: 300;
  color: var(--charcoal-80); max-width: 560px; line-height: 1.8;
}

hr.rule { border: none; border-top: 1px solid var(--rule); margin: 0; }

/* ── PAGE HEADER (páginas interiores) ────────────────────────── */
.page-header {
  padding: 140px 5vw 64px;
  background: var(--off-white);
  border-bottom: 1px solid var(--rule);
}
.page-header .section-eyebrow { margin-bottom: 12px; }
.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 300; line-height: 1.1;
  color: var(--charcoal);
}

/* ── HERO (home) ──────────────────────────────────────────────── */
#inicio {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 140px 5vw 80px;
  position: relative; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(105deg, rgba(247,245,242,1) 0%, rgba(247,245,242,0.92) 50%, rgba(247,245,242,0.6) 100%);
}
.hero-bg-img {
  position: absolute; inset: 0; z-index: -1;
  background-image: url('https://images.unsplash.com/photo-1486325212027-8081e485255e?w=1800&q=80');
  background-size: cover; background-position: center 40%;
  filter: saturate(0.4) brightness(0.95);
}
.hero-content { position: relative; z-index: 1; max-width: 700px; }
.hero-eyebrow {
  display: inline-block;
  font-size: 11px; font-weight: 400;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--bronze); margin-bottom: 24px;
  padding-bottom: 12px; border-bottom: 1px solid var(--bronze);
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 300; line-height: 1.1;
  color: var(--charcoal); margin-bottom: 28px; letter-spacing: -0.01em;
}
.hero-headline em { font-style: italic; color: var(--bronze); }
.hero-sub {
  font-size: 17px; font-weight: 300; color: var(--charcoal-80);
  max-width: 480px; margin-bottom: 48px; line-height: 1.8;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-stats {
  position: absolute; right: 5vw; bottom: 60px; z-index: 1;
  display: flex; gap: 48px;
}
.hero-stat { text-align: right; }
.hero-stat .num {
  font-family: var(--font-display);
  font-size: 42px; font-weight: 300;
  color: var(--charcoal); line-height: 1; display: block;
}
.hero-stat .label {
  font-size: 10px; font-weight: 400;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--mid); display: block; margin-top: 4px;
}

/* ── SERVICIOS ────────────────────────────────────────────────── */
#servicios { background: var(--white); }
.servicios-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 64px; flex-wrap: wrap; gap: 24px;
}
.servicios-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0; border: 1px solid var(--rule);
}
.servicio-card {
  padding: 48px 40px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  transition: background 0.25s;
}
.servicio-card:hover { background: var(--off-white); }
.servicio-card:nth-child(3n) { border-right: none; }
.servicio-num {
  font-family: var(--font-display);
  font-size: 48px; font-weight: 300; color: var(--rule);
  display: block; margin-bottom: 20px; line-height: 1;
  transition: color 0.25s;
}
.servicio-card:hover .servicio-num { color: var(--bronze); opacity: 0.4; }
.servicio-card h3 {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 400;
  color: var(--charcoal); margin-bottom: 12px; line-height: 1.2;
}
.servicio-card p { font-size: 14px; font-weight: 300; color: var(--mid); line-height: 1.7; }

/* ── NOSOTROS ─────────────────────────────────────────────────── */
#nosotros { background: var(--off-white); }
.nosotros-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.nosotros-text .section-lead { margin-bottom: 40px; }
.nosotros-valores { list-style: none; }
.nosotros-valores li {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 20px 0; border-bottom: 1px solid var(--rule);
  font-size: 15px; font-weight: 300; color: var(--charcoal-80);
}
.nosotros-valores li:first-child { border-top: 1px solid var(--rule); }
.nosotros-valores li::before {
  content: ''; display: block; flex-shrink: 0;
  width: 2px; height: 20px; margin-top: 2px; background: var(--bronze);
}
.nosotros-img {
  aspect-ratio: 4/5;
  background-image: url('https://images.unsplash.com/photo-1560518883-ce09059eeffa?w=900&q=80');
  background-size: cover; background-position: center;
  filter: saturate(0.5);
}

/* ── PROYECTOS (grid home) ────────────────────────────────────── */
#proyectos { background: var(--charcoal); }
#proyectos .section-eyebrow { color: var(--bronze-light); }
#proyectos .section-title { color: var(--white); }
#proyectos .section-lead { color: rgba(255,255,255,0.55); }
.proyectos-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 56px; flex-wrap: wrap; gap: 24px;
}
.proyectos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.proyecto-card { position: relative; overflow: hidden; aspect-ratio: 3/4; cursor: pointer; }
.proyecto-card img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.4) brightness(0.7);
  transition: filter 0.4s, transform 0.5s;
}
.proyecto-card:hover img { filter: saturate(0.6) brightness(0.85); transform: scale(1.03); }
.proyecto-info {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 32px 28px;
  background: linear-gradient(to top, rgba(45,45,53,0.95) 0%, transparent 100%);
}
.proyecto-tag {
  font-size: 10px; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--bronze-light); display: block; margin-bottom: 8px;
}
.proyecto-card h3 {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 400;
  color: var(--white); line-height: 1.2; margin-bottom: 6px;
}
.proyecto-card p { font-size: 13px; font-weight: 300; color: rgba(255,255,255,0.6); line-height: 1.5; }

/* ── PROYECTO DESTACADO ───────────────────────────────────────── */
.proyecto-destacado { padding: 80px 5vw; }
.proyecto-destacado.bg-off { background: var(--off-white); }
.proyecto-destacado.bg-white { background: var(--white); }
.proyecto-destacado-inner { max-width: 1100px; margin: 0 auto; }

.proyecto-hero { position: relative; margin-bottom: 32px; overflow: hidden; }
.proyecto-hero img {
  width: 100%; height: 480px; object-fit: cover;
  display: block; filter: saturate(0.85);
}
.proyecto-badge {
  position: absolute; top: 24px; right: 24px;
  background: var(--bronze); color: var(--white);
  padding: 10px 24px; font-size: 14px; font-weight: 500; letter-spacing: 0.08em;
}
.proyecto-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(45,45,53,0.85) 0%, transparent 100%);
  padding: 32px 36px;
}
.proyecto-overlay-tag {
  font-size: 11px; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--bronze-light);
}
.proyecto-overlay h3 {
  font-family: var(--font-display);
  font-size: 36px; font-weight: 300;
  color: var(--white); margin-top: 8px; line-height: 1.2;
}

.proyecto-galeria {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-bottom: 48px;
}
.proyecto-galeria img {
  width: 100%; height: 260px; object-fit: cover; filter: saturate(0.85);
}

.proyecto-specs {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--rule); margin-bottom: 40px;
}
.proyecto-spec {
  padding: 28px 32px; border-right: 1px solid var(--rule);
}
.proyecto-spec:last-child { border-right: none; }
.proyecto-spec-label {
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--bronze); margin-bottom: 8px;
}
.proyecto-spec-value {
  font-family: var(--font-display); font-size: 20px; color: var(--charcoal);
}
.proyecto-spec-desc { font-size: 13px; color: var(--mid); margin-top: 4px; }

.proyecto-footer {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 20px;
}
.proyecto-dir {
  font-size: 13px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--mid);
}

/* ── INVERSORES ───────────────────────────────────────────────── */
#inversores { background: var(--white); }
.inversores-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.inversores-list { list-style: none; margin-top: 40px; }
.inversores-list li {
  padding: 24px 0; border-bottom: 1px solid var(--rule);
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px;
}
.inversores-list li:first-child { border-top: 1px solid var(--rule); }
.item-title { font-family: var(--font-display); font-size: 18px; font-weight: 400; color: var(--charcoal); }
.item-desc { font-size: 13px; font-weight: 300; color: var(--mid); margin-top: 4px; }
.arrow { font-size: 18px; color: var(--bronze); opacity: 0; transition: opacity 0.2s; }
.inversores-list li:hover .arrow { opacity: 1; }
.inversores-cta { background: var(--off-white); padding: 48px 40px; }
.inversores-cta h3 {
  font-family: var(--font-display); font-size: 28px; font-weight: 300;
  color: var(--charcoal); margin-bottom: 16px;
}
.inversores-cta p { font-size: 14px; font-weight: 300; color: var(--mid); line-height: 1.8; margin-bottom: 32px; }

/* ── CONTACTO ─────────────────────────────────────────────────── */
#contacto { background: var(--off-white); }
.contacto-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.contacto-info .section-lead { margin-bottom: 48px; }
.contacto-datos { list-style: none; }
.contacto-datos li {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 16px 0; border-bottom: 1px solid var(--rule);
  font-size: 14px; font-weight: 300; color: var(--charcoal-80);
}
.contacto-datos li:first-child { border-top: 1px solid var(--rule); }
.dato-label {
  font-size: 10px; font-weight: 400; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--bronze); min-width: 80px; margin-top: 3px;
}
.contacto-form { display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: 10px; font-weight: 400; letter-spacing: 0.2em; text-transform: uppercase; color: var(--mid);
}
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--white); border: 1px solid var(--rule);
  padding: 12px 16px; font-family: var(--font-body);
  font-size: 14px; font-weight: 300; color: var(--charcoal);
  outline: none; transition: border-color 0.2s; border-radius: 0; -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--bronze); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ── CLIENTE (placeholder) ────────────────────────────────────── */
.cliente-placeholder {
  min-height: 60vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 80px 5vw;
  background: var(--off-white);
}
.cliente-placeholder .lock-icon {
  font-size: 48px; margin-bottom: 24px; opacity: 0.3;
}
.cliente-placeholder h2 {
  font-family: var(--font-display); font-size: 36px; font-weight: 300;
  color: var(--charcoal); margin-bottom: 16px;
}
.cliente-placeholder p { font-size: 15px; font-weight: 300; color: var(--mid); max-width: 400px; }

/* ── FOOTER ───────────────────────────────────────────────────── */
footer { background: var(--charcoal); padding: 56px 5vw 32px; color: rgba(255,255,255,0.5); }
.footer-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-wrap: wrap; gap: 40px;
}
.footer-nav { display: flex; gap: 48px; flex-wrap: wrap; }
.footer-nav-col h4 {
  font-size: 10px; font-weight: 400; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,0.3); margin-bottom: 16px;
}
.footer-nav-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-nav-col a {
  font-size: 13px; font-weight: 300; color: rgba(255,255,255,0.5); text-decoration: none; transition: color 0.2s;
}
.footer-nav-col a:hover { color: var(--white); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 28px; flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: 12px; font-weight: 300; }
.footer-legal { display: flex; gap: 24px; }
.footer-legal a {
  font-size: 12px; font-weight: 300; color: rgba(255,255,255,0.35); text-decoration: none;
}
.footer-legal a:hover { color: rgba(255,255,255,0.7); }

/* ── COOKIE BANNER ────────────────────────────────────────────── */
#cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
  background: var(--charcoal); padding: 20px 5vw;
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px; flex-wrap: wrap; border-top: 2px solid var(--bronze);
}
#cookie-banner p { font-size: 13px; font-weight: 300; color: rgba(255,255,255,0.7); max-width: 600px; }
#cookie-banner a { color: var(--bronze-light); text-decoration: none; }
.btn-accept {
  background: var(--bronze); color: var(--white);
  padding: 10px 28px; border: none; cursor: pointer;
  font-family: var(--font-body); font-size: 11px; font-weight: 400;
  letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap;
  transition: background 0.2s;
}
.btn-accept:hover { background: var(--bronze-light); }

/* ── RESPONSIVE ───────────────────────────────────────────────── */
@media (max-width: 900px) {
  .servicios-grid { grid-template-columns: 1fr 1fr; }
  .servicio-card:nth-child(3n) { border-right: 1px solid var(--rule); }
  .servicio-card:nth-child(2n) { border-right: none; }
  .nosotros-inner, .inversores-inner, .contacto-inner { grid-template-columns: 1fr; gap: 48px; }
  .nosotros-img { aspect-ratio: 16/9; order: -1; }
  .proyectos-grid { grid-template-columns: 1fr 1fr; }
  .proyecto-specs { grid-template-columns: 1fr 1fr; }
  .proyecto-spec:nth-child(2) { border-right: none; }
  .proyecto-spec:nth-child(3) { border-top: 1px solid var(--rule); grid-column: 1/-1; }
  .hero-stats { position: static; flex-direction: row; margin-top: 48px; }
  .hero-stat { text-align: left; }
}
@media (max-width: 600px) {
  .nav-links {
    display: none; flex-direction: column;
    position: absolute; top: 68px; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--rule);
    padding: 24px 5vw; gap: 20px;
  }
  .nav-links.open { display: flex; }
  .nav-links .cta a { display: inline-block; }
  .nav-toggle { display: flex; }
  .servicios-grid { grid-template-columns: 1fr; }
  .servicio-card:nth-child(3n),
  .servicio-card:nth-child(2n) { border-right: none; }
  .proyectos-grid { grid-template-columns: 1fr; }
  .proyecto-specs { grid-template-columns: 1fr; }
  .proyecto-spec { border-right: none !important; border-top: 1px solid var(--rule); }
  .proyecto-spec:first-child { border-top: none; }
  .proyecto-galeria { grid-template-columns: 1fr; }
  .proyecto-galeria img { height: 200px; }
  .proyecto-hero img { height: 280px; }
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { gap: 28px; }
  .hero-stat .num { font-size: 32px; }
  section { padding: 64px 5vw; }
  .page-header { padding: 110px 5vw 48px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
