/* ============ BASE ============ */
:root {
  --dark: #12333d;
  --dark-2: #1d4a58;
  --accent: #2596a9;
  --accent-dark: #1b7789;
  --amber: #f59e0b;
  --bg: #ffffff;
  --bg-alt: #f6f4f0;
  --text: #2b3442;
  --text-light: #64707f;
  --border: #e5e1da;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(28, 39, 54, 0.08);
}

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

html { scroll-behavior: smooth; }

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

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

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============ LANGUAGE TOGGLE ============ */
html[lang="en"] .es { display: none; }
html[lang="es"] .en { display: none; }

/* ============ NAVBAR ============ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(28, 39, 54, 0.97);
  color: #fff;
  backdrop-filter: blur(8px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 88px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  font-size: 1.35rem;
  white-space: nowrap;
}
.logo-img { height: 64px; width: auto; flex-shrink: 0; }
.logo strong { color: #6ecbdc; }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-text small {
  font-size: 0.62rem;
  font-weight: 400;
  color: #9db4bd;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
}
.nav-links a {
  color: #d5dae2;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-links a:hover { color: #fff; }

.nav-phone {
  font-weight: 700;
  color: #fff !important;
  white-space: nowrap;
}

.nav-actions { display: flex; align-items: center; gap: 12px; }

.lang-toggle {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  border-radius: 8px;
  padding: 6px 12px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.lang-toggle:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  width: 24px;
  height: 2.5px;
  background: #fff;
  border-radius: 2px;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 14px 28px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid var(--accent);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}
.btn-outline:hover { background: rgba(255, 255, 255, 0.1); border-color: #fff; }

.btn-small { padding: 9px 18px !important; font-size: 0.9rem; color: #fff !important; }

.mission-quote {
  border-left: 4px solid var(--accent);
  padding: 6px 0 6px 18px;
  margin: 0 0 20px;
  font-style: italic;
  color: var(--dark);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* ============ HERO ============ */
.hero {
  background: linear-gradient(160deg, var(--dark) 0%, var(--dark-2) 100%);
  color: #fff;
  padding: 80px 0 90px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  color: var(--amber);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.12;
  margin-bottom: 20px;
}

.hero-sub {
  color: #c3ccd8;
  font-size: 1.1rem;
  margin-bottom: 32px;
  max-width: 480px;
}

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }

.hero-stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 1.6rem; color: var(--amber); }
.hero-stats span { color: #aab4c2; font-size: 0.85rem; }

.hero-photo {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

/* ============ SECTIONS ============ */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }

.section-eyebrow {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  margin-bottom: 36px;
  color: var(--dark);
}

/* ============ CARDS / SERVICES ============ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(28, 39, 54, 0.12); }

.card-icon { font-size: 2rem; margin-bottom: 14px; }
.card h3 { font-size: 1.15rem; margin-bottom: 8px; color: var(--dark); }
.card p { color: var(--text-light); font-size: 0.95rem; }

/* ============ WARRANTY STRIP ============ */
.warranty-strip {
  background: var(--dark-2);
  color: #fff;
  padding: 34px 0;
}
.warranty-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}
.warranty-item { display: flex; gap: 14px; align-items: flex-start; }
.warranty-icon { font-size: 1.8rem; line-height: 1; }
.warranty-item strong { display: block; margin-bottom: 3px; font-size: 1rem; }
.warranty-item p { color: #b9cdd4; font-size: 0.88rem; line-height: 1.45; }

/* ============ PORTFOLIO ============ */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 32px; }

.filter-btn {
  background: var(--bg);
  border: 1.5px solid var(--border);
  color: var(--text);
  border-radius: 999px;
  padding: 9px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-btn:hover { border-color: var(--accent); color: var(--accent); }
.filter-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 26px;
}

.project {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.project:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(28, 39, 54, 0.14); }
.project.hidden { display: none; }

.project-img {
  height: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  font-size: 0.95rem;
  overflow: hidden;
}
.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.project:hover .project-img img { transform: scale(1.04); }
.placeholder-1 { background: linear-gradient(135deg, #1d4a58, #12333d); }
.placeholder-2 { background: linear-gradient(135deg, #2596a9, #16606e); }
.placeholder-3 { background: linear-gradient(135deg, #6b7a8d, #465363); }

.portfolio-note {
  margin-top: 28px;
  color: var(--text-light);
  font-size: 0.92rem;
  max-width: 820px;
}

.project figcaption { padding: 20px 22px; }
.project h3 { font-size: 1.05rem; color: var(--dark); margin-bottom: 4px; }
.project p { color: var(--text-light); font-size: 0.88rem; }

/* ============ ABOUT ============ */
.about-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-text > p { color: var(--text-light); margin-bottom: 24px; }

.check-list { list-style: none; }
.check-list li {
  padding-left: 30px;
  position: relative;
  margin-bottom: 12px;
  font-weight: 600;
  color: var(--dark);
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 800;
}

.framed-photo {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.photo-caption {
  margin-top: 10px;
  color: var(--text-light);
  font-size: 0.85rem;
  font-style: italic;
  text-align: center;
}

/* ============ TESTIMONIALS ============ */
.testimonial { display: flex; flex-direction: column; }
.stars { color: var(--amber); font-size: 1.1rem; letter-spacing: 2px; margin-bottom: 12px; }
.testimonial p { flex: 1; font-style: italic; color: var(--text); margin-bottom: 16px; }
.testimonial footer { font-weight: 700; color: var(--dark); }

/* ============ CONTACT ============ */
.contact-info-centered {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}
.contact-info-centered .section-eyebrow,
.contact-info-centered h2 { justify-content: center; }
.contact-info-centered > p { color: var(--text-light); margin-bottom: 24px; }

.contact-list { list-style: none; display: inline-block; text-align: left; }
.contact-list li { margin-bottom: 14px; font-size: 1.02rem; }
.contact-list a { color: var(--dark); font-weight: 600; text-decoration: none; }
.contact-list a:hover { color: var(--accent); }

/* ============ FOOTER ============ */
.footer {
  background: var(--dark);
  color: #aab4c2;
  padding: 28px 0;
  font-size: 0.9rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 860px) {
  .hero-inner, .about-inner { grid-template-columns: 1fr; }

  .hamburger { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 88px;
    left: 0;
    right: 0;
    background: var(--dark);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px 24px;
    gap: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  .nav-links.open { display: flex; }

  .section { padding: 64px 0; }
  .hero { padding: 56px 0 64px; }
  .hero-stats { gap: 24px; }
}
