:root {
  --primary: #0e7490;
  --primary-dark: #155e75;
  --accent: #f59e0b;
  --ink: #0f172a;
  --muted: #475569;
  --bg: #ffffff;
  --bg-alt: #f0f9ff;
  --line: #e2e8f0;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

img { display: block; max-width: 100%; height: auto; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 0.8rem 0; }
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--ink); }
.brand-logo { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; }
.brand-name { font-weight: 800; font-size: 1.3rem; }
.brand-name .accent { color: var(--accent); }
.finanzas { color: var(--accent); }
.nav-links { display: flex; gap: 1.6rem; list-style: none; }
.nav-links a { text-decoration: none; color: var(--muted, #334155); font-weight: 500; }
.nav-links a:hover { color: var(--primary); }
.nav-toggle { display: none; background: none; border: none; font-size: 1.6rem; cursor: pointer; }

/* Hero */
.hero { padding: 4rem 0; background: linear-gradient(135deg, #e0f2fe 0%, #ffffff 60%); }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.badge {
  display: inline-block; background: var(--accent); color: #fff;
  padding: 0.3rem 0.9rem; border-radius: 999px; font-weight: 700; font-size: 0.85rem;
  margin-bottom: 1rem;
}
h1 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.15; margin-bottom: 1rem; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 52ch; margin-bottom: 1.6rem; }
.hero-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-bottom: 2rem; }
.btn { display: inline-block; padding: 0.75rem 1.4rem; border-radius: 10px; font-weight: 700; text-decoration: none; transition: 0.2s; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.hero-stats { display: flex; gap: 2.4rem; list-style: none; }
.hero-stats strong { display: block; font-size: 1.6rem; color: var(--primary); }
.hero-stats span { color: var(--muted); font-size: 0.9rem; }
.hero-media { position: relative; }
.hero-img { border-radius: 20px; box-shadow: var(--shadow); }
.hero-img-small {
  position: absolute; bottom: -18px; left: -18px; width: 130px;
  border-radius: 14px; border: 5px solid #fff; box-shadow: var(--shadow);
}

/* Sections */
.section { padding: 4.5rem 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 2.5rem; }
.section-tag { display: inline-block; color: var(--primary); font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; margin-bottom: 0.5rem; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 0.8rem; }
.section-head p { color: var(--muted); }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.6rem; }
.card { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); transition: 0.25s; }
.card:hover { transform: translateY(-6px); }
.card img { height: 170px; width: 100%; object-fit: cover; }
.card-body { padding: 1.2rem; }
.card-body h3 { margin-bottom: 0.4rem; color: var(--primary-dark); }
.card-body p { color: var(--muted); font-size: 0.95rem; }

/* Nosotros */
.nosotros-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.nosotros-img { border-radius: 20px; box-shadow: var(--shadow); }
.nosotros-text h2 { margin-bottom: 0.8rem; }
.nosotros-text p { color: var(--muted); margin-bottom: 0.8rem; }
.check-list { list-style: none; margin-top: 1rem; }
.check-list li { padding: 0.4rem 0; font-weight: 600; }
.check-list li::before { content: "✔ "; color: var(--primary); }

/* Video */
.video-wrap { position: relative; padding-top: 56.25%; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
.gallery-grid img { border-radius: 14px; width: 100%; height: 220px; object-fit: cover; transition: 0.25s; }
.gallery-grid img:hover { transform: scale(1.03); }

/* Contact */
.contacto-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: start; }
.contacto-info h2 { margin-bottom: 0.8rem; }
.contacto-info p { color: var(--muted); margin-bottom: 1.4rem; }
.contacto-rows { display: grid; gap: 1rem; font-style: normal; }
.contacto-row { display: flex; gap: 0.8rem; align-items: flex-start; }
.contacto-row .ico { font-size: 1.4rem; }
.contacto-row div { display: flex; flex-direction: column; }
.contacto-row strong { color: var(--ink); }
.contacto-row span { color: var(--muted); }
.map-wrap { border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.map-wrap iframe { width: 100%; height: 100%; min-height: 340px; }

/* Social */
.social { display: flex; gap: 0.8rem; margin-top: 1.6rem; flex-wrap: wrap; }
.social-link {
  display: inline-block; padding: 0.55rem 1.1rem; border-radius: 999px;
  background: var(--primary); color: #fff; text-decoration: none; font-weight: 700; font-size: 0.9rem;
  transition: 0.2s;
}
.social-link:hover { background: var(--accent); }

/* Footer */
.footer { background: #0b1f2a; color: #cbd5e1; padding: 2rem 0; }
.footer-grid { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer .brand-name { color: #fff; }
.social-footer .social-link { background: transparent; border: 1px solid #334155; }
.social-footer .social-link:hover { background: var(--accent); border-color: var(--accent); }

/* Responsive */
@media (max-width: 860px) {
  .nav-links {
    display: none; position: absolute; top: 100%; right: 0; left: 0;
    background: #fff; flex-direction: column; padding: 1rem;
    border-bottom: 1px solid var(--line); gap: 1rem;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .hero-grid, .nosotros-grid, .contacto-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; gap: 1.4rem; }
  .hero-img-small { display: none; }
}