/* ===== Design tokens ===== */
:root {
  --bg: #ffffff;
  --bg-alt: #eef5f9;       /* very light aqua tint */
  --ink: #16242e;          /* deep navy-teal from logo */
  --ink-soft: #4a5d6b;
  --brand: #2f6f96;        /* steel blue (wrench) */
  --brand-dark: #1f4f6e;   /* deep navy-teal (dark wave) */
  --accent: #6cc5dd;       /* light aqua wave */
  --line: #d7e3ea;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(20, 24, 31, .08);
  --maxw: 1140px;
  --font: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .98rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.6); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; }
.brand-logo { height: 46px; width: auto; display: block; }
.brand-name { color: var(--brand-dark); }
.main-nav { display: flex; gap: 26px; margin-left: auto; }
.main-nav a { color: var(--ink-soft); font-weight: 500; transition: color .2s; }
.main-nav a:hover { color: var(--brand); }

.lang-switch { display: flex; gap: 4px; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang-btn {
  border: none; background: transparent; cursor: pointer;
  font: inherit; font-weight: 600; font-size: .82rem;
  color: var(--ink-soft); padding: 5px 11px; border-radius: 999px;
  transition: background .2s, color .2s;
}
.lang-btn:hover { color: var(--ink); }
.lang-btn.active { background: var(--brand); color: #fff; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); transition: .25s; }

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, #16242e 0%, #1f4f6e 55%, #2f6f96 100%);
  color: #fff;
  padding: 110px 0 96px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, transparent, transparent 38px, rgba(108,197,221,.06) 38px, rgba(108,197,221,.06) 40px);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 760px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 600; color: var(--brand); margin-bottom: 16px; }
.hero h1 { font-size: clamp(0.95rem, 4.8vw, 2.3rem); line-height: 1.1; font-weight: 800; margin-bottom: 18px; white-space: nowrap; }
.hero-sub { font-size: 1.18rem; color: #cfd4dc; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ===== Sections ===== */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }
.section-title { font-size: clamp(1.6rem, 3.5vw, 2.3rem); font-weight: 800; margin-bottom: 14px; }
.section-lead { color: var(--ink-soft); font-size: 1.1rem; max-width: 600px; margin-bottom: 44px; }

/* ===== Intro paragraph ===== */
.intro { padding-bottom: 0; }
.intro-text {
  max-width: 820px; margin: 0 auto; text-align: center;
  font-size: 1.18rem; color: var(--ink-soft); line-height: 1.75;
}

/* ===== Grid + cards ===== */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-icon { font-size: 2rem; margin-bottom: 14px; }
.card h3 { font-size: 1.25rem; margin-bottom: 8px; }
.card p { color: var(--ink-soft); }

/* ===== About ===== */
.about-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: center; }
.about-text p { color: var(--ink-soft); margin-bottom: 16px; }
.checklist { list-style: none; margin-top: 20px; }
.checklist li { position: relative; padding-left: 30px; margin-bottom: 12px; font-weight: 500; }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 800; }
.about-stats { display: grid; gap: 18px; }
.stat { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; }
.stat-num { display: block; font-size: 2.2rem; font-weight: 800; color: var(--brand); line-height: 1; }
.stat-label { color: var(--ink-soft); font-size: .95rem; }

/* ===== Projects ===== */
.gallery { margin-top: 8px; display: grid; gap: 24px; grid-template-columns: repeat(4, 1fr); }
.project { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--bg); }
.project-img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; background: var(--bg-alt); }
.project figcaption { padding: 14px 18px; font-weight: 500; color: var(--ink-soft); }
/* Placeholder gradients — replace with real photos via background-image */
.ph-1 { background: linear-gradient(135deg,#2f6f96,#16242e); }
.ph-2 { background: linear-gradient(135deg,#6cc5dd,#2f6f96); }
.ph-3 { background: linear-gradient(135deg,#1f4f6e,#6cc5dd); }
.ph-4 { background: linear-gradient(135deg,#4a5d6b,#1f4f6e); }
.ph-5 { background: linear-gradient(135deg,#2f6f96,#6cc5dd); }
.ph-6 { background: linear-gradient(135deg,#16242e,#2f6f96); }

/* ===== Contact ===== */
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.contact-text p { color: var(--ink-soft); margin-bottom: 24px; }
.contact-list { list-style: none; }
.contact-list li { margin-bottom: 12px; }
.contact-list a:hover { color: var(--brand); }
.contact-form { display: grid; gap: 16px; background: var(--bg); padding: 30px; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }
.contact-form label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; }
.contact-form input, .contact-form textarea {
  font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--bg-alt); transition: border .2s, background .2s;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--brand); background: #fff;
}
.form-note { color: #1a7d3c; font-weight: 600; }

/* ===== Modal (popup de confirmación) ===== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(22, 36, 46, .55);
  display: flex; align-items: center; justify-content: center; padding: 24px;
  animation: modalFade .2s ease;
}
.modal-overlay[hidden] { display: none; }
.modal {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 36px 30px; max-width: 380px; width: 100%; text-align: center;
  animation: modalPop .25s ease;
}
.modal-check {
  width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%;
  background: #1a7d3c; color: #fff; font-size: 2rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.modal h3 { font-size: 1.4rem; margin-bottom: 10px; }
.modal p { color: var(--ink-soft); margin-bottom: 22px; }
@keyframes modalFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalPop { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }

/* ===== Footer ===== */
.site-footer { background: #14171c; color: #aeb4bf; padding: 36px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.site-footer .brand-name { color: #fff; font-weight: 800; font-size: 1.1rem; }
.footer-copy { font-size: .9rem; }

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .about-inner, .contact-inner { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 680px) {
  .main-nav {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: #fff;
    border-bottom: 1px solid var(--line); padding: 8px 0;
    transform: translateY(-130%); transition: transform .28s ease; z-index: -1;
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav a { padding: 13px 24px; }
  .nav-toggle { display: flex; }
  .lang-switch { margin-left: auto; }
  .brand-name { display: none; }   /* en móvil basta el emblema */
  .grid-3 { grid-template-columns: 1fr; }
  .hero { padding: 80px 0 70px; }
}
