/* ============================================================
   AlumGlass Design — global stylesheet
   Single shared file, mobile-first, no framework.
   ============================================================ */

:root {
  --navy-deep:  #0B2C6B;
  --blue-brand: #1B4DA8;
  --blue-mid:   #2E6BD4;
  --cyan:       #29ABE2;
  --white:      #FFFFFF;
  --off-white:  #F5F8FC;
  --gray-text:  #4A5568;
  --gray-line:  #E2E8F0;
  --wa-green:   #25D366;
  --wa-green-2: #1DA851;

  --shadow-sm: 0 1px 2px rgba(11,44,107,0.06);
  --shadow-md: 0 4px 14px rgba(11,44,107,0.10);
  --shadow-lg: 0 10px 40px rgba(11,44,107,0.15);
  --grad-brand: linear-gradient(135deg, var(--navy-deep) 0%, var(--cyan) 100%);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--gray-text);
  background: #fff;
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-mid); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--blue-brand); }
button { font: inherit; cursor: pointer; }

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', system-ui, sans-serif;
  color: var(--navy-deep);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.15rem, 2.4vw, 1.4rem); font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }
.eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  color: var(--blue-mid);
  display: inline-block;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
@media (min-width: 900px) { .section { padding: 96px 0; } }
.section-alt { background: var(--off-white); }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gray-line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; max-width: 1200px; margin: 0 auto;
  gap: 16px;
}
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--navy-deep); font-family: 'Montserrat',sans-serif;
  font-weight: 800; font-size: 17px; letter-spacing: -0.01em;
  text-decoration: none;
  line-height: 1.1;
}
.logo-mark {
  width: 38px; height: 38px; border-radius: 8px;
  background: var(--grad-brand);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.logo-mark svg { width: 22px; height: 22px; }
.logo-text small {
  display: block; font-weight: 500; font-size: 10px;
  color: var(--gray-text); letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 2px;
}
.nav { display: none; gap: 28px; margin: 0 auto; }
.nav a {
  color: var(--gray-text); font-weight: 500; font-size: 15px;
  padding: 8px 0; position: relative;
}
.nav a:hover, .nav a.active { color: var(--navy-deep); }
.nav a.active::after {
  content: ''; position: absolute; bottom: -18px; left: 0; right: 0;
  height: 2px; background: var(--blue-brand);
}
.header-actions { display: flex; align-items: center; gap: 12px; }
.lang-toggle {
  display: inline-flex; align-items: center;
  border: 1px solid var(--gray-line); border-radius: 999px;
  overflow: hidden; font-size: 12px;
  font-family: 'Montserrat',sans-serif; font-weight: 700;
}
.lang-toggle a {
  padding: 6px 12px; color: var(--gray-text); background: #fff;
  line-height: 1;
}
.lang-toggle a.on { background: var(--navy-deep); color: #fff; }
.lang-toggle a:hover:not(.on) { background: var(--off-white); }
.btn-whatsapp-header {
  display: none; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px;
  background: var(--wa-green); color: #fff; font-weight: 700; font-size: 14px;
  font-family: 'Montserrat',sans-serif;
}
.btn-whatsapp-header:hover { background: var(--wa-green-2); color: #fff; }
.btn-whatsapp-header svg { width: 16px; height: 16px; fill: currentColor; }
.hamburger {
  display: flex; flex-direction: column; gap: 5px;
  background: none; border: 0; padding: 8px;
}
.hamburger span {
  width: 22px; height: 2px; background: var(--navy-deep); border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (min-width: 900px) {
  .nav { display: flex; }
  .btn-whatsapp-header { display: inline-flex; }
  .hamburger { display: none; }
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed; top: 66px; left: 0; right: 0; bottom: 0; z-index: 99;
  background: #fff; padding: 20px; overflow-y: auto;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block; padding: 16px 0; border-bottom: 1px solid var(--gray-line);
  color: var(--navy-deep); font-family: 'Montserrat',sans-serif;
  font-weight: 700; font-size: 18px;
}
.mobile-menu a.mobile-menu-cta {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 24px; padding: 14px 22px; background: var(--wa-green);
  color: #fff; border-radius: 999px; border: none;
}
.mobile-menu a.mobile-menu-cta svg { width: 18px; height: 18px; fill: #fff; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 24px; border-radius: 999px;
  font-family: 'Montserrat',sans-serif; font-weight: 700; font-size: 15px;
  border: 0; transition: transform 0.15s, box-shadow 0.15s, background 0.2s, color 0.2s;
  text-decoration: none;
  cursor: pointer;
}
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn-primary { background: var(--blue-brand); color: #fff; }
.btn-primary:hover {
  background: var(--navy-deep); color: #fff;
  box-shadow: var(--shadow-md);
}
.btn-secondary {
  background: transparent; color: var(--navy-deep);
  border: 2px solid var(--navy-deep);
  padding: 12px 22px;
}
.btn-secondary:hover { background: var(--navy-deep); color: #fff; }
.btn-wa { background: var(--wa-green); color: #fff; }
.btn-wa:hover { background: var(--wa-green-2); color: #fff; box-shadow: 0 4px 14px rgba(37,211,102,0.35); }
.btn-outline-light {
  background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.7);
  padding: 12px 22px;
}
.btn-outline-light:hover { background: #fff; color: var(--navy-deep); }

/* ===== Hero (home) ===== */
.hero {
  position: relative; overflow: hidden;
  background: var(--grad-brand);
  color: #fff;
  padding: 72px 20px 96px;
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at top right, rgba(41,171,226,0.35), transparent 60%);
  pointer-events: none;
}
.hero-inner {
  max-width: 1200px; margin: 0 auto;
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr; gap: 40px;
  align-items: center;
}
@media (min-width: 900px) {
  .hero { padding: 96px 20px 120px; }
  .hero-inner { grid-template-columns: 1.15fr 1fr; gap: 60px; }
}
.hero-text .eyebrow { color: var(--cyan); }
.hero-text h1 { color: #fff; margin: 14px 0 20px; }
.hero-text p.lead {
  max-width: 560px; font-size: clamp(1.05rem,2vw,1.2rem);
  color: rgba(255,255,255,0.9); margin-bottom: 32px;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-photo {
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.07);
  border: 1px dashed rgba(255,255,255,0.25);
  min-height: 320px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.55);
  font-family: 'Montserrat',sans-serif; font-weight: 700;
  text-align: center; padding: 32px;
  font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase;
}
@media (min-width: 900px) { .hero-photo { min-height: 460px; } }

/* ===== Page hero (internal pages) ===== */
.page-hero {
  background: var(--grad-brand);
  color: #fff; padding: 64px 20px 80px;
  position: relative; overflow: hidden;
}
.page-hero::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at bottom right, rgba(41,171,226,0.3), transparent 60%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero .eyebrow { color: var(--cyan); }
.page-hero h1 { color: #fff; margin-top: 10px; }
.page-hero p.lead {
  max-width: 680px; color: rgba(255,255,255,0.9);
  margin-top: 20px; font-size: clamp(1rem,1.6vw,1.15rem);
}

/* ===== Differentiator strip ===== */
.differentiator {
  background: var(--navy-deep); color: #fff;
  padding: 20px; text-align: center;
  font-family: 'Montserrat',sans-serif; font-weight: 700;
  font-size: clamp(0.95rem, 1.6vw, 1.05rem);
  letter-spacing: 0.02em;
}
.differentiator strong {
  color: var(--cyan); text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ===== Service grid ===== */
.grid-services {
  display: grid; grid-template-columns: 1fr; gap: 18px;
}
@media (min-width: 640px) { .grid-services { grid-template-columns: 1fr 1fr; gap: 20px; } }
@media (min-width: 900px) { .grid-services { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.service-card {
  background: #fff;
  border: 1px solid var(--gray-line);
  border-radius: var(--radius-md);
  padding: 32px 26px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  display: flex; flex-direction: column;
  min-height: 260px;
  text-decoration: none;
  color: inherit;
}
.service-card:hover {
  border-color: var(--blue-mid);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  color: inherit;
}
.service-card h3 { color: var(--navy-deep); margin-bottom: 12px; }
.service-card p { flex: 1; font-size: 15px; color: var(--gray-text); }
.service-card .arrow {
  margin-top: 20px; color: var(--blue-brand); font-family: 'Montserrat',sans-serif;
  font-weight: 700; font-size: 13px; letter-spacing: 0.06em;
  text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 6px;
}
.service-card.featured {
  background: var(--grad-brand); color: #fff; border: 0;
  position: relative;
}
.service-card.featured::before {
  content: 'DESTACADO'; position: absolute; top: 16px; right: 16px;
  font-family: 'Montserrat',sans-serif; font-weight: 800; font-size: 10px;
  letter-spacing: 0.12em; color: var(--navy-deep);
  background: var(--cyan); padding: 4px 10px; border-radius: 999px;
}
.service-card.featured h3 { color: #fff; }
.service-card.featured p { color: rgba(255,255,255,0.9); }
.service-card.featured .arrow { color: var(--cyan); }

/* ===== Photo placeholders ===== */
.photo-placeholder {
  background: var(--blue-brand);
  color: rgba(255,255,255,0.9);
  display: flex; align-items: center; justify-content: center;
  padding: 40px 20px; text-align: center;
  font-family: 'Montserrat',sans-serif; font-weight: 700;
  border-radius: var(--radius-md);
  min-height: 240px;
  font-size: 13px; letter-spacing: 0.06em;
  text-transform: uppercase;
  background-image: linear-gradient(135deg, var(--navy-deep) 0%, var(--blue-brand) 60%, var(--blue-mid) 100%);
}
.photo-placeholder.tall { min-height: 360px; }
.photo-placeholder.hero-slot { min-height: 100%; }

/* ===== Two-column layout ===== */
.two-col {
  display: grid; grid-template-columns: 1fr; gap: 32px;
  align-items: start;
}
@media (min-width: 900px) {
  .two-col { grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
}
.two-col-image { min-height: 320px; }
.two-col-flip .two-col-image { order: 1; }
@media (min-width: 900px) { .two-col-flip .two-col-image { order: 2; } }

/* ===== Feature list ===== */
.feature-list { list-style: none; padding: 0; margin: 24px 0 0; }
.feature-list li {
  padding: 14px 0 14px 32px; position: relative;
  border-bottom: 1px solid var(--gray-line);
  color: var(--navy-deep); font-weight: 500;
}
.feature-list li:last-child { border-bottom: 0; }
.feature-list li::before {
  content: ''; position: absolute; left: 0; top: 22px;
  width: 20px; height: 2px; background: var(--blue-brand);
}

/* ===== Coverage / steps ===== */
.coverage-grid, .steps {
  display: grid; grid-template-columns: 1fr; gap: 24px;
}
@media (min-width: 640px) { .coverage-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 32px; } }
.coverage-item {
  background: #fff; padding: 24px 24px 24px 28px;
  border-left: 3px solid var(--blue-brand);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  box-shadow: var(--shadow-sm);
}
.coverage-item h4 { color: var(--navy-deep); margin-bottom: 6px; }
.coverage-item p { font-size: 14px; margin: 0; }
.step { position: relative; padding-top: 44px; }
.step-num {
  position: absolute; top: 0; left: 0;
  font-family: 'Montserrat',sans-serif; font-weight: 800; font-size: 42px;
  color: var(--cyan); line-height: 1;
}
.step h4 { margin-bottom: 8px; color: var(--navy-deep); }
.step p { font-size: 14px; }

/* ===== CTA block ===== */
.cta-block {
  background: var(--grad-brand); color: #fff;
  border-radius: var(--radius-lg); padding: 48px 32px;
  text-align: center;
}
.cta-block h2 { color: #fff; margin-bottom: 16px; }
.cta-block p { color: rgba(255,255,255,0.9); margin-bottom: 28px; max-width: 640px; margin-left: auto; margin-right: auto; }
.cta-block-ctas { display: inline-flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ===== Section head ===== */
.section-head { text-align: center; margin-bottom: 48px; max-width: 720px; margin-left: auto; margin-right: auto; }
.section-head h2 { margin-top: 10px; }
.section-head p { margin-top: 16px; font-size: 1.05rem; }

/* ===== Project grid ===== */
/* Flexible: renders however many .project-item children are present.
   Default 2 cols on tablet+ (works for 4/6/8 items with no orphans).
   :has() overrides for 3 and 9 items (which would leave an orphan of 1
   in a 2-col layout). Browsers without :has() fall back to 2 cols. */
.project-grid {
  display: grid; grid-template-columns: 1fr; gap: 16px;
}
@media (min-width: 640px) { .project-grid { grid-template-columns: 1fr 1fr; gap: 20px; } }
@media (min-width: 900px) {
  .project-grid { gap: 24px; }
  .project-grid:has(> :nth-child(3):last-child),
  .project-grid:has(> :nth-child(9):last-child) {
    grid-template-columns: repeat(3, 1fr);
  }
}
.project-item .photo-placeholder { min-height: 260px; }
.project-item .project-caption {
  padding: 14px 4px 0; color: var(--navy-deep);
  font-family: 'Montserrat',sans-serif; font-weight: 700; font-size: 14px;
}
.project-item .project-loc { color: var(--gray-text); font-size: 13px; font-weight: 500; margin-top: 2px; }

/* ===== Contact card ===== */
.contact-grid {
  display: grid; grid-template-columns: 1fr; gap: 20px;
}
@media (min-width: 640px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-card {
  background: #fff; padding: 32px;
  border: 1px solid var(--gray-line); border-radius: var(--radius-md);
  transition: box-shadow 0.2s, border-color 0.2s;
  text-decoration: none; color: inherit;
  display: flex; flex-direction: column; gap: 8px;
}
.contact-card:hover {
  border-color: var(--blue-mid); box-shadow: var(--shadow-md);
  color: inherit;
}
.contact-card .contact-label {
  font-family: 'Montserrat',sans-serif; font-weight: 700; font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue-mid);
}
.contact-card .contact-value {
  font-family: 'Montserrat',sans-serif; font-weight: 800; font-size: 20px;
  color: var(--navy-deep);
}
.contact-card .contact-sub { font-size: 14px; color: var(--gray-text); }

/* ===== Footer ===== */
.site-footer {
  background: var(--navy-deep); color: rgba(255,255,255,0.7);
  padding: 60px 20px 24px;
}
.footer-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr; gap: 40px;
}
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.footer-brand {
  display: flex; flex-direction: column; gap: 12px; max-width: 320px;
}
.footer-brand .logo { color: #fff; }
.footer-brand .logo-text small { color: rgba(255,255,255,0.55); }
.footer-brand p {
  font-size: 14px; line-height: 1.65;
  color: rgba(255,255,255,0.65); margin-top: 8px;
}
.footer-col h4 {
  font-family: 'Montserrat',sans-serif; font-weight: 700;
  color: rgba(255,255,255,0.95);
  text-transform: uppercase; letter-spacing: 0.12em;
  font-size: 12px; margin-bottom: 20px;
}
.footer-col a, .footer-col p {
  display: block; color: rgba(255,255,255,0.7); font-size: 14px;
  padding: 4px 0; margin: 0;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  max-width: 1200px; margin: 40px auto 0;
  padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  font-size: 13px; color: rgba(255,255,255,0.5);
}
.footer-bottom a { color: rgba(255,255,255,0.7); }

/* ===== Sticky WhatsApp float ===== */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--wa-green);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(37,211,102,0.45);
  transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
}
.wa-float:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 26px rgba(37,211,102,0.6);
  background: var(--wa-green-2);
}
.wa-float svg { width: 32px; height: 32px; fill: #fff; }

/* ===== 404 ===== */
.page-404 {
  min-height: 60vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 80px 20px;
}
.page-404 .huge {
  font-family: 'Montserrat',sans-serif; font-weight: 800;
  font-size: clamp(4rem, 15vw, 8rem);
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; line-height: 1;
}
.page-404 h1 { margin: 20px 0 10px; }
.page-404 p { margin-bottom: 28px; max-width: 480px; }
.page-404-links { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ===== Content prose ===== */
.prose {
  max-width: 720px;
  color: var(--gray-text);
  font-size: 1.05rem;
}
.prose p { margin: 0 0 18px; }
.prose h2 { margin: 40px 0 16px; }
.prose h3 { margin: 32px 0 12px; }
.prose ul { margin: 16px 0 20px 24px; }
.prose ul li { margin-bottom: 8px; }

/* ===== Utilities ===== */
.text-center { text-align: center; }
.mt-4 { margin-top: 32px; }
.mt-6 { margin-top: 48px; }
.hidden-mobile { display: none; }
@media (min-width: 900px) { .hidden-mobile { display: initial; } }
