/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Segoe UI', Arial, sans-serif; color: #1a1a2e; background: #fff; }
img { max-width: 100%; display: block; border-radius: 12px; }
a { text-decoration: none; color: inherit; }

/* ===== VARIABLES ===== */
:root {
  --primary: #1e90ff;
  --dark-bg: #0d1b2a;
  --darker-bg: #07111c;
  --navy: #10243a;
  --white: #ffffff;
  --highlight: #1e90ff;
  --text-muted: #aab4c4;
  --radius: 12px;
}

/* ===== NAVBAR ===== */
header { position: sticky; top: 0; z-index: 1000; background: var(--dark-bg); }
.navbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 60px; max-width: 1300px; margin: 0 auto;
}
.logo-text { font-size: 1.7rem; font-weight: 800; letter-spacing: 2px; color: var(--white); }
.logo-a { color: var(--primary); }
.nav-links { list-style: none; display: flex; gap: 40px; }
.nav-links a { color: var(--white); font-weight: 500; font-size: 1rem; transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); border-bottom: 2px solid var(--primary); padding-bottom: 2px; }
.hamburger { display: none; font-size: 1.6rem; color: white; cursor: pointer; }

/* ===== BOTONES ===== */
.btn {
  display: inline-block; padding: 14px 36px; border-radius: 50px;
  font-weight: 600; font-size: 1rem; transition: all .25s; cursor: pointer; text-align: center;
}
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: #1270d8; }
.btn-outline { background: transparent; color: var(--dark-bg); border: 2px solid var(--dark-bg); }
.btn-outline:hover { background: var(--dark-bg); color: var(--white); }
.btn-dark { background: #111; color: var(--white); border-radius: 8px; padding: 14px 28px; }
.btn-dark:hover { background: #333; }

/* ===== HERO ===== */
.hero {
  position: relative; min-height: 92vh;
  background: url('img/hero-bg.jpg') center/cover no-repeat;
  display: flex; align-items: center; justify-content: center;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: rgba(7, 17, 28, 0.65);
}
.hero-content {
  position: relative; z-index: 1; text-align: center; color: var(--white);
  padding: 0 20px; max-width: 800px;
}
.hero-content h1 { font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 900; line-height: 1.15; margin-bottom: 24px; }
.hero-content p { font-size: 1.2rem; margin-bottom: 40px; color: #cdd8e8; }

/* ===== CONTENEDOR ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }

/* ===== DOS COLUMNAS ===== */
.two-col {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  align-items: center; padding: 80px 32px;
}
.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }
.col-text h2 { font-size: 2.4rem; font-weight: 800; margin-bottom: 20px; line-height: 1.2; }
.col-text p { font-size: 1.05rem; line-height: 1.7; color: #444; margin-bottom: 30px; }

/* ===== HIGHLIGHT ===== */
.highlight { color: var(--primary); }

/* ===== SECCIONES ===== */
.about-intro { background: #fff; }
.mission { background: #f4f7fc; }
.who-we-are { background: #fff; }

/* ===== PAGE HERO (servicios) ===== */
.page-hero {
  background: var(--dark-bg); color: var(--white);
  text-align: center; padding: 80px 32px 60px;
}
.page-hero h1 { font-size: 2.8rem; font-weight: 900; margin-bottom: 16px; }
.page-hero p { font-size: 1.1rem; color: var(--text-muted); }

/* ===== SERVICIOS GRID ===== */
.services-main { padding: 70px 0; background: #f4f7fc; }
.services-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.service-card {
  background: var(--navy); color: var(--white); border-radius: var(--radius);
  padding: 44px 36px; transition: transform .2s;
}
.service-card:hover { transform: translateY(-4px); }
.service-card h3 { font-size: 1.6rem; font-weight: 800; margin-bottom: 16px; }
.service-card p { font-size: 0.97rem; line-height: 1.7; color: #b0bfcc; margin-bottom: 12px; }

/* ===== PROYECTOS ===== */
.projects { padding: 80px 0; background: #fff; }
.section-title { font-size: 2.2rem; font-weight: 800; text-align: center; margin-bottom: 12px; }
.section-subtitle { text-align: center; color: #666; font-size: 1rem; margin-bottom: 60px; }

.project-block {
  display: grid; grid-template-columns: 1fr 1fr; gap: 50px;
  align-items: center; background: var(--navy); color: var(--white);
  border-radius: var(--radius); padding: 50px 50px; margin-bottom: 36px;
}
.project-block.reverse { direction: rtl; }
.project-block.reverse > * { direction: ltr; }

.project-img img { border-radius: var(--radius); width: 100%; object-fit: cover; max-height: 360px; }
.project-title {
  font-size: 2rem; font-weight: 900; margin-bottom: 16px; letter-spacing: 1px;
}
.project-info p { font-size: 0.97rem; line-height: 1.75; color: #b8c8d8; margin-bottom: 20px; }
.link-more { color: var(--primary); font-weight: 600; display: block; margin-bottom: 16px; }
.link-more:hover { text-decoration: underline; }

/* ===== FOOTER ===== */
footer { background: var(--darker-bg); color: var(--white); }
.footer-content {
  display: flex; justify-content: space-between; align-items: flex-start;
  flex-wrap: wrap; gap: 40px; padding: 60px 60px 40px;
  max-width: 1300px; margin: 0 auto;
}
.footer-left h3 { font-size: 1.6rem; font-weight: 800; margin-bottom: 12px; }
.footer-left p { color: var(--text-muted); margin-bottom: 28px; max-width: 340px; line-height: 1.6; }
.footer-right { display: flex; align-items: center; }
.contact-info { display: flex; flex-direction: column; gap: 16px; }
.contact-info div { display: flex; flex-direction: column; gap: 4px; }
.contact-info span { color: var(--text-muted); font-size: 0.95rem; }
.contact-info span:last-child { color: var(--white); font-weight: 600; }
.footer-bottom { text-align: center; padding: 18px; border-top: 1px solid #1e3050; color: var(--text-muted); font-size: 0.88rem; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .navbar { padding: 16px 24px; }
  .nav-links { display: none; flex-direction: column; gap: 20px; position: absolute; top: 70px; left: 0; right: 0; background: var(--dark-bg); padding: 24px; }
  .nav-links.open { display: flex; }
  .hamburger { display: block; }
  .two-col, .two-col.reverse, .services-grid, .project-block, .project-block.reverse {
    grid-template-columns: 1fr; direction: ltr;
  }
  .two-col { padding: 50px 24px; }
  .footer-content { flex-direction: column; padding: 40px 24px; }
}