/* =============================================
   CONSTRUCTORA C&L HERMANOS S.A.
   Stylesheet · Montserrat · Brand 2025
   ============================================= */

@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}

/* ── Variables ───────────────────────────────── */
:root {
  --primary:        #1E3D58;
  --primary-dark:   #152c41;
  --primary-light:  #2a5275;
  --graphite:       #2E2E2E;
  --white:          #FFFFFF;
  --bg-light:       #f4f6f9;
  --text-muted:     #6b7a8d;
  --border:         #e2e8f0;
  --accent:         #4db8e8;
  --shadow-sm:  0 2px 8px  rgba(30,61,88,.08);
  --shadow-md:  0 4px 20px rgba(30,61,88,.12);
  --shadow-lg:  0 10px 40px rgba(30,61,88,.18);
  --radius:    10px;
  --radius-lg: 18px;
  --ease: .3s ease;
}

/* ── Reset ───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Montserrat', sans-serif;
  color: var(--graphite);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ── Utilities ───────────────────────────────── */
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 88px 0; }
.section-sm { padding: 60px 0; }
.text-center { text-align: center; }

.label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-heading {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
  margin-bottom: 14px;
}
.section-sub {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 52px;
}
.section-sub.centered { margin-left: auto; margin-right: auto; }

/* ── Buttons ─────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: .9rem;
  border: 2px solid transparent;
  transition: var(--ease);
  line-height: 1;
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}
.btn-white {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
}
.btn-white:hover {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.6);
}
.btn-outline-white:hover {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
}

/* ── Navbar ──────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--ease);
}
.navbar.scrolled { box-shadow: var(--shadow-md); }
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.navbar-logo {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--primary);
}
.logo-icon { width: 42px; height: 42px; flex-shrink: 0; }
.logo-text-wrap { display: flex; flex-direction: column; line-height: 1.1; }
.logo-name   { font-size: .95rem; font-weight: 700; color: var(--primary); letter-spacing: -.3px; }
.logo-suffix { font-size: .65rem; font-weight: 400; color: var(--text-muted); letter-spacing: .5px; margin-top: 1px; }
.logo-sa     { font-size: .65rem; font-weight: 400; color: var(--text-muted); letter-spacing: .5px; }

.navbar-nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
  padding: 8px 15px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: .85rem;
  color: var(--graphite);
  transition: color var(--ease), background var(--ease);
  position: relative;
}
.nav-link:hover { color: var(--primary); background: var(--bg-light); }
.nav-link.active { color: var(--primary); }
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 3px;
  left: 50%;
  transform: translateX(-50%);
  width: 18px; height: 2px;
  background: var(--primary);
  border-radius: 2px;
}
.nav-cta {
  margin-left: 8px;
  padding: 9px 20px;
  background: var(--primary);
  color: var(--white) !important;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: .85rem;
  transition: background var(--ease), transform var(--ease);
}
.nav-cta:hover { background: var(--primary-dark) !important; transform: translateY(-1px); }
.nav-cta.active::after { display: none; }

.navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 5px;
}
.navbar-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--graphite);
  border-radius: 2px;
  transition: transform var(--ease), opacity var(--ease);
}
.navbar-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.navbar-toggle.open span:nth-child(2) { opacity: 0; }
.navbar-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── Page Hero (inner pages) ─────────────────── */
.page-hero {
  background: linear-gradient(135deg, #0d1f2d 0%, var(--primary) 55%, var(--primary-light) 100%);
  padding: 130px 0 70px;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -40%; right: -15%;
  width: 600px; height: 600px;
  background: rgba(255,255,255,.04);
  border-radius: 50%;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: -35%; left: -10%;
  width: 450px; height: 450px;
  background: rgba(255,255,255,.03);
  border-radius: 50%;
}
.page-hero-content { position: relative; z-index: 1; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .8rem;
  opacity: .65;
  margin-bottom: 14px;
}
.breadcrumb a:hover { opacity: 1; }
.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 10px;
}
.page-hero p { font-size: 1rem; opacity: .8; max-width: 500px; }

/* ── HERO (Home) ─────────────────────────────── */
.hero {
  min-height: 100vh;
  background: linear-gradient(140deg, #0a1929 0%, #112236 35%, var(--primary) 70%, var(--primary-light) 100%);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero-grid-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-diagonal {
  position: absolute;
  top: 0; right: -5%;
  width: 45%; height: 100%;
  background: rgba(255,255,255,.025);
  clip-path: polygon(25% 0, 100% 0, 100% 100%, 0% 100%);
}
.hero-diagonal-2 {
  position: absolute;
  top: 0; right: 10%;
  width: 30%; height: 100%;
  background: rgba(255,255,255,.015);
  clip-path: polygon(50% 0, 100% 0, 100% 100%, 20% 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  color: var(--white);
  max-width: 680px;
  padding-top: 80px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  padding: 7px 16px;
  border-radius: 30px;
  font-size: .8rem;
  font-weight: 700;
  margin-bottom: 24px;
  backdrop-filter: blur(6px);
  letter-spacing: .5px;
}
.hero-badge-dot {
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  animation: glow 2s ease-in-out infinite;
}
@keyframes glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(77,184,232,.4); }
  50%       { box-shadow: 0 0 0 6px rgba(77,184,232,0); }
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.12;
  margin-bottom: 22px;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero-desc {
  font-size: 1.05rem;
  opacity: .82;
  line-height: 1.75;
  margin-bottom: 38px;
  max-width: 520px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 60px; }
.hero-stats {
  display: flex;
  gap: 40px;
  padding-top: 36px;
  border-top: 1px solid rgba(255,255,255,.12);
}
.hero-stat-num {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.hero-stat-lbl {
  font-size: .78rem;
  opacity: .65;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: .5px;
}

/* ── Services ────────────────────────────────── */
.services { background: var(--bg-light); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.service-card {
  background: var(--primary);
  border-radius: var(--radius-lg);
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform var(--ease), box-shadow var(--ease);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(30,61,88,.35);
}
.service-ico {
  width: 72px; height: 72px;
  background: rgba(255,255,255,.12);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  transition: background var(--ease);
}
.service-card:hover .service-ico { background: rgba(255,255,255,.22); }
.service-ico svg { width: 34px; height: 34px; stroke: #fff; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.service-card h3 { font-size: .95rem; font-weight: 700; color: #fff; margin-bottom: 0; }
.service-card p  { display: none; }

/* ── Stats bar ───────────────────────────────── */
.stats-bar { background: var(--primary); padding: 52px 0; }
.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat-item {
  text-align: center;
  padding: 20px;
  border-right: 1px solid rgba(255,255,255,.12);
}
.stat-item:last-child { border-right: none; }
.stat-num  { font-size: 2.4rem; font-weight: 700; color: var(--accent); line-height: 1; }
.stat-sign { font-size: 1.5rem; font-weight: 700; color: var(--accent); }
.stat-lbl  { font-size: .8rem; color: rgba(255,255,255,.65); margin-top: 6px; text-transform: uppercase; letter-spacing: .5px; }

/* ── Clients ─────────────────────────────────── */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.client-chip {
  display: block;
  padding: 0;
  background: transparent;
  border: none;
  min-height: unset;
  box-shadow: none;
}
.client-chip:hover {
  background: transparent;
  border: none;
  box-shadow: none;
  transform: none;
}

/* ── CTA band ────────────────────────────────── */
.cta-band {
  background: linear-gradient(135deg, var(--graphite), #1a1a1a);
  color: var(--white);
  text-align: center;
}
.cta-band h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; margin-bottom: 14px; }
.cta-band p  { font-size: 1rem; opacity: .75; max-width: 480px; margin: 0 auto 36px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── Footer ──────────────────────────────────── */
.footer {
  background: #0b1f30;
  color: rgba(255,255,255,.78);
  padding: 68px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 52px;
}
.footer-brand p { font-size: .88rem; line-height: 1.75; opacity: .65; margin-top: 14px; }
.footer-col-title {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--white);
  margin-bottom: 18px;
}
.footer-links li { margin-bottom: 10px; }
.footer-links a  { font-size: .88rem; opacity: .65; transition: opacity var(--ease), color var(--ease); }
.footer-links a:hover { opacity: 1; color: var(--accent); }
.footer-contact-row { display: flex; gap: 12px; margin-bottom: 14px; align-items: flex-start; }
.footer-contact-row svg { width: 17px; height: 17px; stroke: var(--accent); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; margin-top: 2px; }
.footer-contact-row span, .footer-contact-row a { font-size: .87rem; opacity: .65; }
.footer-contact-row a:hover { opacity: 1; color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom p { font-size: .8rem; opacity: .4; }

/* ── Projects page ───────────────────────────── */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 44px; }
.filter-btn {
  padding: 8px 20px;
  border-radius: 30px;
  border: 2px solid var(--border);
  background: var(--white);
  font-size: .82rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: var(--ease);
}
.filter-btn:hover  { border-color: var(--primary); color: var(--primary); }
.filter-btn.active { background: var(--primary); border-color: var(--primary); color: var(--white); }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.project-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform var(--ease), box-shadow var(--ease);
}
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.project-thumb {
  height: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.project-thumb svg { width: 56px; height: 56px; stroke: rgba(255,255,255,.55); fill: none; stroke-width: 1; stroke-linecap: round; stroke-linejoin: round; }
.project-badge {
  position: absolute;
  top: 14px; left: 14px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .4px;
  color: var(--white);
}
.thumb-institutional { background: linear-gradient(135deg, #0d2035, var(--primary)); }
.thumb-residential   { background: linear-gradient(135deg, #1a4a2e, #2e7d52); }
.thumb-commercial    { background: linear-gradient(135deg, #3d2000, #b85c00); }
.thumb-infrastructure{ background: linear-gradient(135deg, #1a0a3d, #5b2b8a); }
.thumb-maintenance   { background: linear-gradient(135deg, #003545, #006a87); }

.badge-institutional { background: rgba(30,61,88,.85); }
.badge-residential   { background: rgba(29,120,74,.85); }
.badge-commercial    { background: rgba(180,83,0,.85); }
.badge-infrastructure{ background: rgba(90,42,150,.85); }
.badge-maintenance   { background: rgba(0,100,130,.85); }

.project-body { padding: 22px; }
.project-body h3 { font-size: .95rem; font-weight: 700; color: var(--primary); margin-bottom: 7px; }
.project-body p  { font-size: .85rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 16px; }
.project-meta { display: flex; gap: 18px; }
.project-meta span { font-size: .77rem; color: var(--text-muted); display: flex; align-items: center; gap: 5px; }
.project-meta svg  { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }

/* ── About page ──────────────────────────────── */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.about-visual {
  background: linear-gradient(135deg, #0d1f2d, var(--primary));
  border-radius: var(--radius-lg);
  aspect-ratio: 4/3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
}
.about-visual::before {
  content: '';
  position: absolute;
  bottom: -30%; right: -20%;
  width: 300px; height: 300px;
  background: rgba(255,255,255,.04);
  border-radius: 50%;
}
.about-visual-year { font-size: 6rem; font-weight: 700; color: rgba(255,255,255,.12); line-height: 1; position: relative; z-index: 1; }
.about-visual-label { font-size: .9rem; color: rgba(255,255,255,.5); font-weight: 700; text-transform: uppercase; letter-spacing: 2px; position: relative; z-index: 1; }
.about-visual-since { font-size: 1.1rem; color: var(--accent); font-weight: 700; position: relative; z-index: 1; }

.about-text .section-heading { margin-bottom: 18px; }
.about-text p { font-size: .93rem; color: var(--text-muted); line-height: 1.8; margin-bottom: 16px; }
.timeline { margin-top: 28px; display: flex; flex-direction: column; gap: 20px; }
.tl-item { display: flex; gap: 16px; }
.tl-dot {
  position: relative;
  flex-shrink: 0;
  margin-top: 4px;
}
.tl-dot-inner {
  width: 12px; height: 12px;
  background: var(--primary);
  border-radius: 50%;
  border: 2px solid var(--primary);
}
.tl-dot::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 24px; height: 24px;
  border: 1.5px solid var(--primary);
  border-radius: 50%;
  opacity: .25;
}
.tl-content h4 { font-size: .9rem; font-weight: 700; color: var(--primary); margin-bottom: 2px; }
.tl-content p  { font-size: .85rem; color: var(--text-muted); }

.values-section { background: var(--bg-light); }
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.value-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  text-align: center;
  transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease);
}
.value-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); transform: translateY(-4px); }
.value-ico {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
}
.value-ico svg { width: 24px; height: 24px; stroke: #fff; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.value-card h3 { font-size: .95rem; font-weight: 700; color: var(--primary); margin-bottom: 10px; }
.value-card p  { font-size: .86rem; color: var(--text-muted); line-height: 1.65; }

.team-section {}
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.team-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--ease), box-shadow var(--ease);
}
.team-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.team-avatar {
  height: 110px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.4rem; font-weight: 700; color: rgba(255,255,255,.85);
}
.avatar-a { background: linear-gradient(135deg, #0d2035, var(--primary)); }
.avatar-b { background: linear-gradient(135deg, #1a2e1a, #2e6b2e); }
.avatar-c { background: linear-gradient(135deg, #1a0a2e, #4a1a6e); }
.avatar-d { background: linear-gradient(135deg, #2e1a00, #7a4800); }
.avatar-e { background: linear-gradient(135deg, #001a2e, #006a8a); }
.team-info { padding: 20px 22px; }
.team-info h3 { font-size: .95rem; font-weight: 700; color: var(--primary); margin-bottom: 3px; }
.team-role    { font-size: .8rem; color: var(--text-muted); margin-bottom: 12px; font-style: italic; }
.team-email   { font-size: .8rem; color: var(--primary); opacity: .7; transition: opacity var(--ease); }
.team-email:hover { opacity: 1; }

/* ── Contact page ────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 72px;
}
.contact-info-col h2 { font-size: 1.5rem; font-weight: 700; color: var(--primary); margin-bottom: 14px; }
.contact-info-col p  { font-size: .93rem; color: var(--text-muted); line-height: 1.8; margin-bottom: 36px; }
.contact-details { display: flex; flex-direction: column; gap: 22px; }
.c-detail { display: flex; gap: 16px; align-items: flex-start; }
.c-detail-ico {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.c-detail-ico svg { width: 20px; height: 20px; stroke: #fff; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.c-detail-body h4 { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--primary); margin-bottom: 4px; }
.c-detail-body p, .c-detail-body a { font-size: .9rem; color: var(--text-muted); }
.c-detail-body a:hover { color: var(--primary); }

.contact-form-wrap {
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--border);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--graphite);
  margin-bottom: 7px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 15px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: .9rem;
  color: var(--graphite);
  background: var(--white);
  transition: border-color var(--ease);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--primary); }
.form-group textarea { resize: vertical; min-height: 110px; }
.form-group select { cursor: pointer; }

.map-wrap {
  margin-top: 60px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  height: 320px;
  background: var(--bg-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-muted);
  text-align: center;
}
.map-wrap svg { width: 36px; height: 36px; stroke: var(--primary); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; opacity: .5; }
.map-wrap p { font-size: .88rem; }

/* ── Fade-in animation ───────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ── Responsive ──────────────────────────────── */
@media (max-width: 1024px) {
  .services-grid    { grid-template-columns: repeat(2, 1fr); }
  .stats-inner      { grid-template-columns: repeat(2, 1fr); }
  .stat-item        { border-right: none; border-bottom: 1px solid rgba(255,255,255,.12); }
  .stat-item:last-child,
  .stat-item:nth-child(2) { border-bottom: none; }
  .clients-grid     { grid-template-columns: repeat(3, 1fr); }
  .footer-grid      { grid-template-columns: 1fr 1fr; gap: 36px; }
  .projects-grid    { grid-template-columns: repeat(2, 1fr); }
  .about-intro      { gap: 44px; }
  .values-grid      { grid-template-columns: repeat(2, 1fr); }
  .team-grid        { grid-template-columns: repeat(2, 1fr); }
  .contact-layout   { gap: 44px; }
}

/* Navbar colapsa a hamburguesa antes que los ítems se rompan */
@media (max-width: 900px) {
  .navbar-nav {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 68px; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,.98);
    backdrop-filter: blur(12px);
    padding: 28px 24px;
    gap: 4px;
    border-top: 1px solid var(--border);
    overflow-y: auto;
  }
  .navbar-nav.open  { display: flex; }
  .nav-link         { font-size: 1rem; padding: 13px 16px; }
  .nav-cta          { text-align: center; justify-content: center; margin-left: 0; padding: 13px; }
  .navbar-toggle    { display: flex; }
}

@media (max-width: 768px) {
  .section, .section-sm { padding: 60px 0; }
  .hero-stats       { gap: 24px; }
  .hero-actions     { flex-direction: column; }
  .hero-actions .btn{ text-align: center; justify-content: center; }
  .services-grid    { grid-template-columns: 1fr; }
  .clients-grid     { grid-template-columns: repeat(2, 1fr); }
  .projects-grid    { grid-template-columns: 1fr; }
  .about-intro      { grid-template-columns: 1fr; }
  .about-visual     { display: none; }
  .values-grid      { grid-template-columns: 1fr; }
  .team-grid        { grid-template-columns: repeat(2, 1fr); }
  .contact-layout   { grid-template-columns: 1fr; gap: 40px; }
  .form-row         { grid-template-columns: 1fr; }
  .footer-grid      { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom    { flex-direction: column; text-align: center; }
  .cta-actions      { flex-direction: column; align-items: center; }
  .stats-inner      { grid-template-columns: repeat(2, 1fr); }
  .page-hero h1     { font-size: 1.7rem; }
}

@media (max-width: 480px) {
  .stats-inner    { grid-template-columns: 1fr 1fr; }
  .team-grid      { grid-template-columns: 1fr; }
  .clients-grid   { grid-template-columns: repeat(2, 1fr); }
}
