/* ====================================================
   Wolvex Capital — main.css
   ==================================================== */

:root {
  --navy:      #0d2a4e;
  --blue:      #1a4a8a;
  --mid-blue:  #2563b0;
  --accent:    #3b82d4;
  --light-blue:#dbeafe;
  --silver:    #c0cad8;
  --white:     #ffffff;
  --off-white: #f4f7fb;
  --text:      #1e2d40;
  --muted:     #5a7090;
}

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Barlow', sans-serif;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

/* ──────────────────────────────────────────────
   NAV
────────────────────────────────────────────── */
nav#navbar {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  background: rgba(13,42,78,0.98);
  backdrop-filter: blur(12px);
  height: 70px;
  display: flex; align-items: center;
  padding: 0 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: height .3s ease, background .3s ease;
}
nav#navbar.scrolled {
  height: 58px;
  background: rgba(13,42,78,1);
}

.nav-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo { display: flex; align-items: center; flex-shrink: 0; }
.nav-logo img {
  height: 40px;
  filter: brightness(0) invert(1);
}

/* Desktop links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
}
.nav-links a {
  color: rgba(255,255,255,0.78);
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  transition: color .2s;
  white-space: nowrap;
}
.nav-links a:hover { color: #fff; }

.lang-btn {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  padding: 5px 14px;
  border-radius: 3px;
  cursor: pointer;
  font-family: 'Barlow', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  font-weight: 600;
  transition: background .2s;
  white-space: nowrap;
}
.lang-btn:hover { background: rgba(255,255,255,0.2); }

/* Hamburger — hidden on desktop */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  flex-shrink: 0;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: #fff; border-radius: 2px;
  transition: all .3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ──────────────────────────────────────────────
   HERO
────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--navy) 0%, #0a1e3a 55%, #102040 100%);
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding-top: 70px;
}
#hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%231a4a8a' fill-opacity='0.07'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: .7;
}
.hero-inner {
  position: relative; z-index: 2;
  max-width: 1240px; margin: 0 auto; padding: 60px 40px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center;
}
.hero-tag {
  display: inline-block;
  font-size: 0.68rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--accent);
  border: 1px solid rgba(59,130,212,0.4);
  padding: 6px 14px; border-radius: 2px;
  margin-bottom: 1.5rem; font-weight: 500;
}
.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.6rem, 4.5vw, 4.2rem);
  font-weight: 600; line-height: 1.1;
  color: #fff; margin-bottom: 1.5rem;
}
.hero-title em { color: var(--accent); font-style: normal; }
.hero-text {
  color: rgba(255,255,255,0.65);
  font-size: 1rem; line-height: 1.85;
  max-width: 480px; margin-bottom: 2.5rem; font-weight: 300;
}
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-primary {
  background: var(--mid-blue); color: #fff;
  padding: 13px 30px; font-size: 0.82rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  font-weight: 600; text-decoration: none;
  border: 2px solid var(--mid-blue);
  transition: all .25s; display: inline-block;
}
.btn-primary:hover { background: transparent; border-color: rgba(255,255,255,0.5); }
.btn-outline {
  color: rgba(255,255,255,0.7); padding: 13px 30px;
  font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase;
  font-weight: 500; text-decoration: none;
  border: 1px solid rgba(255,255,255,0.25);
  transition: all .25s; display: inline-block;
}
.btn-outline:hover { color: #fff; border-color: rgba(255,255,255,0.65); }

.hero-img-wrap { position: relative; }
.hero-img-wrap::before {
  content: '';
  position: absolute; top: -18px; left: -18px; right: 18px; bottom: 18px;
  border: 1px solid rgba(59,130,212,0.3); z-index: 0;
}
.hero-img-wrap img {
  width: 100%; height: 460px; object-fit: cover;
  position: relative; z-index: 1;
  filter: brightness(0.88) contrast(1.06);
}

/* ──────────────────────────────────────────────
   ESTRATEGIA (About)
────────────────────────────────────────────── */
#estrategia { padding: 110px 40px; background: var(--off-white); }
.about-inner {
  max-width: 1240px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: center;
}
.section-label {
  font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--mid-blue); font-weight: 600; margin-bottom: 1rem; display: block;
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  font-weight: 600; line-height: 1.15;
  color: var(--navy); margin-bottom: 1.4rem;
}
.section-text {
  color: var(--muted); font-size: 1rem; line-height: 1.85; margin-bottom: 1.2rem; font-weight: 300;
}
.bridge-list {
  list-style: none; margin-top: 1.8rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
}
.bridge-list li {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.9rem; color: var(--text); font-weight: 500;
}
.bridge-list li::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--mid-blue); flex-shrink: 0;
}
.about-img { position: relative; }
.about-img img { width: 100%; height: 490px; object-fit: cover; display: block; }
.about-img-accent {
  position: absolute; bottom: -18px; right: -18px;
  width: 170px; height: 110px; background: var(--navy);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; text-align: center; padding: 1rem;
}
.about-img-accent strong {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.9rem; color: #fff;
}
.about-img-accent span { font-size: 0.65rem; color: var(--silver); letter-spacing: 0.08em; text-transform: uppercase; }

/* ──────────────────────────────────────────────
   SERVICIOS
────────────────────────────────────────────── */
#servicios { padding: 110px 40px; background: var(--white); }
.services-inner { max-width: 1240px; margin: 0 auto; }
.section-head { text-align: center; margin-bottom: 55px; }
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5px; background: #e0e8f2;
}
.service-card {
  background: var(--white); padding: 2.4rem;
  transition: background .25s; position: relative; overflow: hidden;
}
.service-card::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 3px; background: var(--mid-blue); transition: width .3s;
}
.service-card:hover::after { width: 100%; }
.service-card:hover { background: var(--off-white); }
.service-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.8rem; font-weight: 300; color: var(--light-blue); line-height: 1; margin-bottom: 1rem;
}
.service-title {
  font-size: 0.88rem; font-weight: 700; color: var(--navy);
  margin-bottom: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em;
}
.service-text { font-size: 0.88rem; color: var(--muted); line-height: 1.72; font-weight: 300; }
.service-tags { margin-top: 1.1rem; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tag {
  font-size: 0.68rem; padding: 3px 8px;
  background: var(--light-blue); color: var(--mid-blue);
  border-radius: 2px; letter-spacing: 0.06em;
}

/* ──────────────────────────────────────────────
   SECTORES
────────────────────────────────────────────── */
#sectores { background: var(--navy); padding: 90px 40px; }
.sectors-inner {
  max-width: 1240px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 2fr; gap: 5rem; align-items: center;
}
.sectors-inner .section-title { color: #fff; }
.sectors-inner .section-text { color: rgba(255,255,255,0.58); }
.industry-pills { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.pill {
  padding: 10px 22px;
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.78);
  font-size: 0.8rem; letter-spacing: 0.09em; text-transform: uppercase; font-weight: 500;
  transition: all .2s; cursor: default;
}
.pill:hover { background: rgba(59,130,212,0.18); border-color: var(--accent); color: #fff; }

/* ──────────────────────────────────────────────
   CONTACTO
────────────────────────────────────────────── */
#contacto { padding: 110px 40px; background: var(--off-white); }
.contact-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: start;
}
.contact-detail {
  display: flex; align-items: flex-start; gap: 1rem;
  margin-top: 2rem; padding-bottom: 2rem;
  border-bottom: 1px solid #cdd8e4;
}
.contact-icon {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--navy);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-icon svg { width: 16px; height: 16px; fill: #fff; }
.contact-detail-text strong {
  display: block; font-size: 0.72rem; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--mid-blue); margin-bottom: 0.3rem;
}
.contact-detail-text a, .contact-detail-text span {
  color: var(--text); font-size: 0.96rem; text-decoration: none;
}
.form-group { margin-bottom: 1.1rem; }
.form-group label {
  display: block; font-size: 0.72rem; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--muted); margin-bottom: 0.4rem;
}
.form-group input, .form-group textarea {
  width: 100%; padding: 11px 14px;
  border: 1px solid #bfcdd8; background: var(--white); color: var(--text);
  font-family: 'Barlow', sans-serif; font-size: 0.93rem;
  outline: none; transition: border-color .2s;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--mid-blue); }
.form-group textarea { height: 115px; resize: vertical; }
.form-submit {
  width: 100%; padding: 14px;
  background: var(--navy); color: #fff; border: none; cursor: pointer;
  font-family: 'Barlow', sans-serif; font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase; transition: background .25s;
}
.form-submit:hover { background: var(--mid-blue); }

/* ──────────────────────────────────────────────
   FOOTER
────────────────────────────────────────────── */
footer { background: #070f1c; padding: 50px 40px 28px; }
.footer-inner {
  max-width: 1240px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1.5rem; padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
footer img { height: 34px; filter: brightness(0) invert(1); }
.footer-links { display: flex; gap: 2rem; flex-wrap: wrap; }
.footer-links a {
  color: rgba(255,255,255,0.38); text-decoration: none;
  font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; transition: color .2s;
}
.footer-links a:hover { color: rgba(255,255,255,0.78); }
.footer-copy {
  max-width: 1240px; margin: 22px auto 0;
  font-size: 0.73rem; text-align: center; color: rgba(255,255,255,0.3);
}

/* ──────────────────────────────────────────────
   SCROLL-TO-TOP
────────────────────────────────────────────── */
.scroll-top {
  position: fixed; bottom: 28px; right: 28px;
  width: 42px; height: 42px; background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; opacity: 0; pointer-events: none;
  transition: opacity .3s, background .2s; z-index: 500;
}
.scroll-top.visible { opacity: 1; pointer-events: all; }
.scroll-top:hover { background: var(--mid-blue); }
.scroll-top svg { width: 16px; height: 16px; fill: #fff; }

/* ──────────────────────────────────────────────
   ANIMATIONS
────────────────────────────────────────────── */
.fade-up {
  opacity: 0; transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ──────────────────────────────────────────────
   RESPONSIVE
────────────────────────────────────────────── */
@media (max-width: 1024px) {
  nav#navbar { padding: 0 24px; }
  .nav-links { gap: 1.4rem; }
  .hero-inner, .about-inner { gap: 3rem; }
}

@media (max-width: 860px) {
  /* Hide desktop links, show hamburger */
  .nav-links { display: none; }
  .hamburger { display: flex; }

  /* Mobile dropdown */
  .nav-links.mobile-open {
    display: flex; flex-direction: column;
    position: fixed; top: 70px; left: 0; width: 100%;
    background: rgba(13,42,78,0.99);
    padding: 1.5rem 24px 2rem;
    gap: 1.2rem; z-index: 999;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  .nav-links.mobile-open a { font-size: 0.9rem; }

  .hero-inner { grid-template-columns: 1fr; gap: 2rem; padding: 40px 24px; }
  .hero-img-wrap { order: -1; }
  .hero-img-wrap img { height: 280px; }
  .about-inner { grid-template-columns: 1fr; gap: 2rem; }
  .about-img img { height: 280px; }
  .about-img-accent { display: none; }
  .sectors-inner { grid-template-columns: 1fr; gap: 2rem; }
  .contact-inner { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 640px) {
  #estrategia, #servicios, #sectores, #contacto { padding: 70px 20px; }
  #hero { padding-top: 70px; }
  .services-grid { grid-template-columns: 1fr; }
  .bridge-list { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}