:root {
  --navy-900: #0a1633;
  --navy-800: #10214f;
  --navy-700: #1a3169;
  --blue-accent: #2e86d8;
  --blue-light: #5aa9e6;
  --gray-50: #f6f8fb;
  --gray-100: #edf1f6;
  --gray-300: #d7dee8;
  --gray-600: #5b6472;
  --white: #ffffff;
  --tint: #eaf3fc;
  --tint-border: #d3e6fa;
  --camel: #c9a873;
  --camel-bg: #ffffff;
  --camel-bg-alt: #f6f8fb;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(16, 33, 79, 0.08);
  --container: 1160px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--navy-900);
  background: var(--camel-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

a { color: inherit; text-decoration: none; }

h1, h2, h3 { font-weight: 700; line-height: 1.2; margin: 0 0 16px; }

p { margin: 0 0 16px; color: var(--gray-600); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--blue-accent); color: var(--white); box-shadow: 0 8px 20px rgba(46,134,216,0.35); }
.btn-primary:hover { background: var(--blue-light); }
.btn-outline { border-color: var(--navy-800); color: var(--navy-800); }
.btn-outline:hover { background: var(--navy-800); color: var(--white); }
.btn-accent { background: #25D366; color: var(--white); padding: 10px 20px; }
.btn-accent:hover { background: #1ebc5a; }

/* Header */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-100);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100px;
  gap: 24px;
}
.brand-logo { height: 78px; width: auto; border-radius: 4px; }
.nav {
  display: flex;
  gap: 32px;
  margin-left: auto;
}
.nav a {
  color: var(--navy-800);
  font-weight: 500;
  font-size: 0.95rem;
  opacity: 0.8;
  transition: opacity 0.15s ease;
}
.nav a:hover { opacity: 1; }
.nav-cta { margin-left: 24px; flex-shrink: 0; }
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--navy-900);
  border-radius: 2px;
}

/* Hero */
.hero {
  position: relative;
  padding: 196px 0 0;
  background: linear-gradient(180deg, var(--camel-bg-alt) 0%, var(--camel-bg) 70%);
  overflow: hidden;
}
.hero-content { max-width: 700px; padding-bottom: 56px; }
.hero-media {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  height: min(64vh, 560px);
  overflow: hidden;
}
.hero-carousel-track {
  display: flex;
  width: max-content;
  height: 100%;
  animation: hero-marquee 64s linear infinite;
}
.hero-carousel-track img {
  width: 30vw;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
}
@keyframes hero-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-carousel-track { animation: none; }
}
@media (max-width: 860px) {
  .hero-media { height: min(42vh, 360px); }
  .hero-carousel-track img { width: 60vw; }
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--blue-accent);
  margin-bottom: 16px;
}
.hero h1 {
  font-family: 'Poppins', var(--font);
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--navy-900);
  margin-bottom: 12px;
}
.hero-tagline {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: clamp(0.85rem, 1.4vw, 1.05rem);
  font-weight: 600;
  color: var(--navy-700);
  margin-bottom: 28px;
}
.hero-lead {
  font-size: 1.15rem;
  color: var(--gray-600);
  max-width: 560px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 12px;
}
@media (max-width: 860px) {
  .hero { padding: 156px 0 0; }
}

/* Stats */
.stats { background: var(--camel-bg-alt); border-top: 1px solid var(--tint-border); border-bottom: 1px solid var(--tint-border); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  padding: 48px 24px;
  text-align: center;
}
.stat {
  background: var(--tint);
  border: 1px solid var(--tint-border);
  border-radius: var(--radius);
  padding: 28px 20px;
}
.stat-number {
  display: block;
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--blue-accent);
}
.stat-label {
  display: block;
  font-size: 0.95rem;
  color: var(--gray-600);
  margin-top: 8px;
}

/* Sections */
.section { padding: 96px 0; }
.section-alt { background: var(--camel-bg-alt); }
.section-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--blue-accent);
  margin-bottom: 12px;
}
.section-title { font-size: clamp(1.8rem, 3.5vw, 2.4rem); }
.section-lead { max-width: 640px; font-size: 1.05rem; margin-bottom: 48px; }

/* Cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.card {
  background: var(--tint);
  border: 1px solid var(--tint-border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(16,33,79,0.12); }
.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue-accent), var(--navy-700));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.card-icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.card p { margin: 0; font-size: 0.95rem; }

/* Sectores */
.sector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.sector {
  padding: 28px;
  background: var(--tint);
  border-left: 4px solid var(--blue-accent);
  border-radius: 6px;
  box-shadow: var(--shadow);
}
.sector h3 { font-size: 1.1rem; margin-bottom: 8px; }
.sector p { margin: 0; font-size: 0.95rem; }

/* Projects */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.project-card {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.project-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.project-card:hover img { transform: scale(1.07); }
.project-card-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  overflow: hidden;
}
.project-card-images img { height: 220px; }
.project-card figcaption { padding: 24px; }
.project-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.project-card p { margin: 0; font-size: 0.9rem; }
.project-card-text {
  background: var(--gray-50);
  justify-content: center;
}
.project-card-text figcaption { padding: 32px; }

/* About */
.about-grid {
  max-width: var(--container);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.about-media { overflow: hidden; border-radius: var(--radius); }
.about-media img {
  border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(16,33,79,0.18);
  transition: transform 0.6s ease;
}
.about-media:hover img { transform: scale(1.04); }
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-media { order: -1; }
}
.about-grid blockquote {
  margin: 24px 0;
  padding-left: 20px;
  border-left: 3px solid var(--blue-accent);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--navy-900);
}
.about-signature { color: var(--navy-700); margin-top: 24px; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.contact-card {
  display: block;
  padding: 32px;
  background: var(--tint);
  border: 1px solid var(--tint-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.contact-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(16,33,79,0.12); }
.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--navy-800);
  color: var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.contact-icon svg { width: 24px; height: 24px; }
.contact-card h3 { font-size: 1.05rem; margin-bottom: 6px; color: var(--navy-900); }
.contact-card p { margin: 0; font-size: 0.95rem; }

/* Footer */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,0.7); padding: 40px 0; }
.footer-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: space-between;
}
.footer-logo { height: 63px; border-radius: 4px; }
.footer-inner p { margin: 0; font-size: 0.85rem; color: rgba(255,255,255,0.6); }
.footer-link { font-size: 0.85rem; font-weight: 600; color: var(--blue-light); }
.footer-social { display: flex; gap: 14px; }
.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, transform 0.15s ease;
}
.footer-social a:hover { background: var(--blue-accent); color: var(--white); transform: translateY(-2px); }
.footer-social svg { width: 18px; height: 18px; }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.projects-grid .reveal:nth-child(3n+2) { transition-delay: 0.1s; }
.projects-grid .reveal:nth-child(3n+3) { transition-delay: 0.2s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Mobile */
@media (max-width: 860px) {
  .nav {
    position: fixed;
    top: 100px; left: 0; right: 0;
    background: var(--camel-bg);
    box-shadow: 0 12px 24px rgba(16,33,79,0.1);
    border-bottom: 1px solid var(--gray-100);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    transform: translateY(-120%);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }
  .nav.open { transform: translateY(0); opacity: 1; }
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }
  .section { padding: 64px 0; }
}
