/* Comercializadora Virval — v3: Profesional mejorada */
@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,600;1,400&family=Inter:wght@300;400;500;600&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #2a2a2a;
  background: #fff;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ─── VARIABLES ─── */
:root {
  --navy:    #1a2744;
  --navy-lt: #243258;
  --gold:    #b8962e;
  --white:   #ffffff;
  --off:     #f8f7f5;
  --border:  #e5e2dc;
  --text:    #2a2a2a;
  --muted:   #6b6b6b;
  --nav-h:   80px;
}

/* ─── NAV ─── */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
  display: flex; align-items: center;
}
.nav-inner {
  max-width: 1140px; margin: 0 auto; padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between;
  width: 100%;
}
.nav-logo img { height: 54px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  font-size: 13px; font-weight: 500;
  color: var(--muted); padding: 8px 16px;
  border-radius: 4px; letter-spacing: .02em;
  transition: color .2s, background .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--navy); background: var(--off); }
.nav-links a.nav-cta {
  background: var(--navy); color: #fff;
  margin-left: 8px; padding: 9px 20px;
  border-radius: 4px; font-weight: 600;
}
.nav-links a.nav-cta:hover { background: var(--navy-lt); }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 1.5px; background: var(--text); transition: .3s; }
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.mobile-menu {
  display: none; position: fixed; inset: 0; top: var(--nav-h);
  background: var(--white); border-top: 1px solid var(--border);
  flex-direction: column; padding: 20px 24px; gap: 2px; z-index: 99;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { font-size: 17px; font-weight: 500; color: var(--text); padding: 14px 0; border-bottom: 1px solid var(--border); }
.mobile-menu a:hover { color: var(--navy); }

/* ─── LAYOUT ─── */
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 32px; }
.section { padding: 80px 0; }
.section-sm { padding: 56px 0; }

/* ─── HERO ─── */
.hero {
  position: relative; overflow: hidden;
  height: 540px; display: flex; align-items: flex-end;
}
.hero-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 40%;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(26,39,68,.85) 0%, rgba(26,39,68,.3) 60%, transparent 100%);
}
.hero-content {
  position: relative; z-index: 1;
  padding: 0 32px 56px;
  max-width: 1140px; margin: 0 auto; width: 100%;
}
.hero-content h1 {
  font-family: 'Lora', serif;
  font-size: clamp(30px, 4.5vw, 52px);
  font-weight: 400; color: #fff;
  line-height: 1.2; margin-bottom: 14px;
  max-width: 620px;
}
.hero-content p {
  font-size: 16px; color: rgba(255,255,255,.8);
  max-width: 500px; margin-bottom: 28px; font-weight: 300;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ─── BUTTONS ─── */
.btn {
  display: inline-block; font-family: 'Inter', sans-serif;
  font-size: 13px; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  padding: 13px 28px; border-radius: 4px;
  border: none; cursor: pointer; transition: .2s;
}
.btn-white  { background: #fff; color: var(--navy); }
.btn-white:hover { background: #f0ede8; }
.btn-navy   { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-lt); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(26,39,68,.25); }
.btn-outline { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-outline-white { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.6); }
.btn-outline-white:hover { background: rgba(255,255,255,.15); }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: #c9a534; transform: translateY(-1px); }

/* ─── TYPOGRAPHY ─── */
.section-label {
  font-size: 11px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 10px; display: block;
}
h2.section-title {
  font-family: 'Lora', serif;
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 400; color: var(--navy);
  line-height: 1.25; margin-bottom: 18px;
}
.section-lead {
  font-size: 16px; color: var(--muted);
  line-height: 1.85; max-width: 640px; margin-bottom: 0;
}
.gold-bar {
  width: 48px; height: 3px;
  background: var(--gold); margin-bottom: 28px;
}

/* ─── IMG + TEXT (patrón principal) ─── */
.split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 72px; align-items: center;
}
.split.reverse .split-img { order: 2; }
.split.reverse .split-text { order: 1; }
.split-img img {
  width: 100%; height: 420px;
  object-fit: cover; border-radius: 2px;
  box-shadow: 0 8px 40px rgba(26,39,68,.12);
}
.split-text p {
  font-size: 16px; color: var(--muted);
  line-height: 1.85; margin-bottom: 16px;
}
.split-text p:last-of-type { margin-bottom: 28px; }

/* ─── SERVICES CARDS ─── */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); }
.svc-card {
  background: var(--white); padding: 36px 30px;
  transition: background .2s;
  position: relative; overflow: hidden;
}
.svc-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s ease;
}
.svc-card:hover { background: var(--off); }
.svc-card:hover::before { transform: scaleX(1); }
.svc-card img { width: 100%; height: 180px; object-fit: cover; border-radius: 2px; margin-bottom: 20px; }
.svc-card h3 { font-family: 'Lora', serif; font-size: 20px; font-weight: 400; color: var(--navy); margin-bottom: 10px; }
.svc-card p  { font-size: 14px; color: var(--muted); line-height: 1.75; }

/* ─── CLIENTS ─── */
.clients-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}
.client-item {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  display: flex; align-items: center; gap: 14px;
  transition: background .2s;
}
.client-item:hover { background: var(--off); }
.client-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }
.client-name { font-size: 15px; font-weight: 500; color: var(--navy); }
.client-type { font-size: 12px; color: var(--muted); margin-top: 1px; }

/* ─── CONTACT ─── */
.contact-layout { display: grid; grid-template-columns: 5fr 7fr; gap: 72px; align-items: start; }
.contact-info-title { font-family: 'Lora', serif; font-size: 28px; color: var(--navy); margin-bottom: 28px; font-weight: 400; }
.info-block { display: flex; flex-direction: column; gap: 16px; }
.info-item { display: flex; gap: 0; flex-direction: column; }
.info-label { font-size: 10px; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; color: var(--gold); margin-bottom: 3px; }
.info-val { font-size: 15px; color: var(--text); }
.info-val a { transition: color .2s; }
.info-val a:hover { color: var(--navy); }
.address-card {
  background: var(--navy); color: rgba(255,255,255,.8);
  padding: 24px; border-radius: 2px;
  font-size: 14px; line-height: 1.8; margin-top: 24px;
}
.address-card strong { color: #fff; display: block; margin-bottom: 8px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }

/* Form */
.form { display: flex; flex-direction: column; gap: 16px; }
.form-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 6px; }
.form input, .form select, .form textarea {
  width: 100%; padding: 12px 16px;
  border: 1.5px solid var(--border); border-radius: 4px;
  font-family: 'Inter', sans-serif; font-size: 14px; color: var(--text);
  background: var(--off); transition: border .2s, background .2s; outline: none;
}
.form input::placeholder, .form textarea::placeholder { color: #bbb; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--navy); background: var(--white); }
.form select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23999'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; cursor: pointer; }
.form textarea { min-height: 130px; resize: vertical; }
.form-submit { background: var(--navy); color: #fff; border: none; padding: 14px 32px; font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; border-radius: 4px; transition: .2s; align-self: flex-start; }
.form-submit:hover { background: var(--navy-lt); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(26,39,68,.25); }
.form-note { font-size: 12px; color: #aaa; }
.success-msg { display: none; background: #f0f7f0; border: 1px solid #b5d4b5; padding: 14px 18px; font-size: 14px; color: #2a622a; border-radius: 4px; }

/* ─── BANNERS ─── */
.navy-band { background: var(--navy); padding: 72px 0; text-align: center; }
.navy-band h2 { font-family: 'Lora', serif; font-size: clamp(24px, 3.5vw, 38px); color: #fff; font-weight: 400; margin-bottom: 12px; }
.navy-band p { font-size: 16px; color: rgba(255,255,255,.65); margin-bottom: 32px; }
.navy-band .btn { margin: 0 6px; }

.stats-row {
  background: var(--gold);
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.stat {
  padding: 28px 20px; text-align: center;
  border-right: 1px solid rgba(255,255,255,.25);
}
.stat:last-child { border-right: none; }
.stat-n { font-family: 'Lora', serif; font-size: 38px; font-weight: 600; color: #fff; line-height: 1; }
.stat-l { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.8); margin-top: 6px; }

/* ─── OFF-WHITE SECTION ─── */
.bg-off { background: var(--off); }
.bg-navy { background: var(--navy); }

/* ─── FOOTER ─── */
.site-footer { background: #111c35; padding: 56px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2.2fr 1fr 1fr; gap: 48px; padding-bottom: 48px; }
.footer-logo { margin-bottom: 14px; }
.footer-logo img { height: 48px; filter: brightness(0) invert(1); }
.footer-desc { font-size: 14px; color: rgba(255,255,255,.45); line-height: 1.8; max-width: 300px; margin-bottom: 24px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,.15); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: rgba(255,255,255,.5); transition: .2s; }
.footer-social a:hover { border-color: var(--gold); color: var(--gold); }
.footer-col h4 { font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #fff; margin-bottom: 18px; }
.footer-links { display: flex; flex-direction: column; gap: 9px; }
.footer-links a { font-size: 14px; color: rgba(255,255,255,.45); transition: color .2s; }
.footer-links a:hover { color: rgba(255,255,255,.85); }
.footer-ci { margin-bottom: 12px; }
.footer-ci span { display: block; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.3); margin-bottom: 3px; }
.footer-ci a, .footer-ci p { font-size: 13px; color: rgba(255,255,255,.5); transition: color .2s; }
.footer-ci a:hover { color: rgba(255,255,255,.85); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 12px; color: rgba(255,255,255,.25); }
.footer-gold { height: 3px; background: linear-gradient(90deg, var(--gold), transparent); }

/* ─── REVEAL ─── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: .1s; } .d2 { transition-delay: .2s; } .d3 { transition-delay: .3s; }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split.reverse .split-img { order: 0; }
  .split.reverse .split-text { order: 0; }
  .split-img img { height: 280px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .clients-grid { grid-template-columns: 1fr; }
  .client-item { border-right: 1px solid var(--border); }
}
@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
  .form-row2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .hero { height: 460px; }
  .stats-row { grid-template-columns: repeat(2,1fr); }
}
