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

:root {
  --navy:    #050e1f;
  --blue:    #0a1f3d;
  --mid:     #0d3b7a;
  --accent:  #1e6fff;
  --bright:  #4d94ff;
  --white:   #f0f5ff;
  --muted:   #7a90b0;
  --border:  rgba(30,111,255,0.15);
  --cond: 'Barlow Condensed', sans-serif;
  --body: 'Barlow', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--navy);
  color: var(--white);
  font-family: var(--body);
  overflow-x: hidden;
}

/* ── NOISE OVERLAY ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  /* side padding lines the logo and links up with the 1280px page content */
  padding: 0.7rem max(2rem, calc((100% - 1280px) / 2 + 2rem));
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(5,14,31,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s;
}
.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.nav-logo img {
  height: 54px;
  width: auto;
  display: block;
}
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }
.nav-cta {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.55rem 1.25rem;
  font-family: var(--body);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--bright); }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--white); transition: all 0.3s; }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 8rem 2rem 4rem;
  max-width: 1280px;
  margin: 0 auto;
  gap: 4rem;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(30,111,255,0.1);
  border: 1px solid rgba(30,111,255,0.3);
  border-radius: 999px;
  padding: 0.35rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--bright);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(30,111,255,0.4); }
  50% { opacity: 0.8; box-shadow: 0 0 0 6px rgba(30,111,255,0); }
}

.hero h1 {
  font-family: var(--cond);
  font-size: clamp(3rem, 5vw, 5.5rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
  display: block;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 2.5rem;
}

.hero-actions { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }

.btn-primary {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.85rem 2rem;
  font-family: var(--body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.btn-primary:hover { background: var(--bright); transform: translateY(-2px); }

.btn-ghost {
  background: none;
  color: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.85rem 2rem;
  font-family: var(--body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* HERO RIGHT */
.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-card {
  background: rgba(13,59,122,0.3);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  backdrop-filter: blur(8px);
  transition: transform 0.3s;
}
.hero-card:hover { transform: translateY(-4px); }

.hero-card-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}
.hero-card h3 {
  font-family: var(--cond);
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}
.hero-card p { font-size: 0.82rem; color: var(--muted); line-height: 1.5; }

.hero-cards-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.hero-stat-bar {
  background: rgba(13,59,122,0.3);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-evenly;
  gap: 2rem;
}
.hero-stat { text-align: center; }
.hero-stat-num {
  font-family: var(--cond);
  font-size: 2rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
}
.hero-stat-label { font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 0.2rem; }

/* ── SECTION BASE ── */
section { position: relative; z-index: 1; }
.container { max-width: 1280px; margin: 0 auto; padding: 5rem 2rem; }
.section-label {
  font-family: var(--cond);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.section-title {
  font-family: var(--cond);
  font-size: clamp(2rem, 3.5vw, 3.5rem);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}
.section-title span { color: var(--accent); }
.section-desc { font-size: 1rem; color: var(--muted); max-width: 540px; line-height: 1.7; }

/* ── SERVICES ── */
.services-bg {
  background: linear-gradient(180deg, var(--navy) 0%, var(--blue) 50%, var(--navy) 100%);
}
.services-header { margin-bottom: 3rem; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.service-card {
  background: rgba(5,14,31,0.6);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem 1.75rem;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.3s;
}
.service-card:hover { border-color: rgba(30,111,255,0.4); transform: translateY(-4px); }
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 48px; height: 48px;
  background: rgba(30,111,255,0.1);
  border: 1px solid rgba(30,111,255,0.2);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
}
.service-card h3 {
  font-family: var(--cond);
  font-size: 1.15rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.6rem;
}
.service-card p { font-size: 0.85rem; color: var(--muted); line-height: 1.6; }

/* ── WHY US ── */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.why-list { display: flex; flex-direction: column; gap: 1.5rem; margin-top: 2rem; }
.why-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}
.why-num {
  font-family: var(--cond);
  font-size: 2.5rem;
  font-weight: 900;
  color: rgba(30,111,255,0.2);
  line-height: 1;
  min-width: 48px;
}
.why-item h4 {
  font-family: var(--cond);
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.3rem;
}
.why-item p { font-size: 0.85rem; color: var(--muted); line-height: 1.6; }

.why-visual {
  display: flex;
  gap: 1rem;
}
.why-visual-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
}
.why-visual-col:nth-child(2) { margin-top: 2.5rem; }
.why-stat-card {
  background: rgba(13,59,122,0.3);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem 1.5rem;
  text-align: center;
}
.why-stat-num {
  font-family: var(--cond);
  font-size: 3rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
}
.why-stat-card p { font-size: 0.8rem; color: var(--muted); margin-top: 0.4rem; text-transform: uppercase; letter-spacing: 0.06em; }

/* ── GALLERY (Nuestro Trabajo) ── */
.gallery-bg { background: var(--blue); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 1.1rem;
  margin-top: 3rem;
}
.gallery-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item.tall { grid-row: span 2; }
.gallery-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 0.9rem 1rem;
  background: linear-gradient(180deg, transparent, rgba(5,14,31,0.9));
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ── TESTIMONIALS ── */
.testimonials-bg { background: var(--blue); }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}
.testimonial-card {
  background: rgba(5,14,31,0.5);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem;
  position: relative;
}
.testimonial-stars {
  color: var(--accent);
  font-size: 0.85rem;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}
.testimonial-text {
  font-size: 0.9rem;
  color: var(--white);
  line-height: 1.7;
  margin-bottom: 1.25rem;
  font-style: italic;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.testimonial-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--mid);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--cond);
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--accent);
}
.testimonial-name { font-size: 0.85rem; font-weight: 600; }
.testimonial-loc { font-size: 0.72rem; color: var(--muted); }

/* ── CONTACT ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 1.5rem; margin-top: 2rem; }
.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.contact-icon {
  width: 44px; height: 44px;
  background: rgba(30,111,255,0.1);
  border: 1px solid rgba(30,111,255,0.2);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-item h4 { font-size: 0.8rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.2rem; }
.contact-item p { font-size: 0.95rem; font-weight: 500; }
.contact-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.contact-brand img { width: 72px; height: 72px; display: block; flex-shrink: 0; }
.contact-brand-name {
  font-family: var(--cond);
  font-size: 1.15rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.contact-brand-tag { font-size: 0.8rem; color: var(--muted); margin-top: 0.15rem; }

.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.35rem; }
.form-label { font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.form-input, .form-textarea {
  background: rgba(13,59,122,0.2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--white);
  font-family: var(--body);
  font-size: 0.9rem;
  padding: 0.75rem 1rem;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}
.form-input:focus, .form-textarea:focus { border-color: var(--accent); }
.form-input::placeholder, .form-textarea::placeholder { color: var(--muted); }
.form-textarea { resize: vertical; min-height: 120px; }
select.form-input { color-scheme: dark; }
select.form-input option { background: var(--blue); color: var(--white); }
.form-submit {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.9rem;
  font-family: var(--body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.form-submit:hover { background: var(--bright); transform: translateY(-2px); }
.form-consent { font-size: 0.78rem; color: var(--muted); line-height: 1.6; text-align: center; }
.form-consent a { color: var(--bright); }

/* ── DIVIDER ── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 0 2rem;
}

/* ── FOOTER ── */
footer {
  background: var(--navy);
  border-top: 1px solid var(--border);
  padding: 2.5rem 2rem;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.footer-logo img { height: 44px; width: auto; display: block; }
footer p { font-size: 0.78rem; color: var(--muted); }
.footer-links { display: flex; gap: 2rem; list-style: none; }
.footer-links a { font-size: 0.8rem; color: var(--muted); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--white); }

/* ── SCROLL ANIMATIONS ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ── GLOW ── */
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; gap: 3rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .hero { grid-template-columns: 1fr; padding-top: 6rem; gap: 2rem; }
  .hero-visual { display: none; }
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .services-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .why-visual { display: none; }
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 260px; }
  .gallery-item.tall { grid-row: span 1; }
}
