/* ─── Reset & Variables ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green-dark:   #1e3d20;
  --green-mid:    #2d6a30;
  --green-accent: #4caf50;
  --green-light:  #81c784;
  --green-pale:   #e8f5e9;
  --green-ultra:  #f1f8f1;
  --white:        #ffffff;
  --gray-50:      #fafafa;
  --gray-100:     #f5f5f5;
  --gray-200:     #eeeeee;
  --gray-400:     #bdbdbd;
  --gray-600:     #757575;
  --gray-800:     #424242;
  --gray-900:     #212121;
  --nav-bg:       #1a2e1b;
  --shadow-sm:    0 1px 4px rgba(0,0,0,.10);
  --shadow-md:    0 4px 20px rgba(0,0,0,.13);
  --shadow-lg:    0 12px 40px rgba(0,0,0,.18);
  --radius:       8px;
  --radius-lg:    16px;
  --transition:   .3s ease;
  --max-width:    1240px;
}

html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Inter', 'Segoe UI', Arial, sans-serif; color: var(--gray-800); background: var(--white); line-height: 1.7; }
h1,h2,h3,h4,h5 { font-family: 'Space Grotesk', 'Inter', sans-serif; line-height: 1.15; color: var(--gray-900); font-weight: 600; letter-spacing: -.02em; }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; height: auto; }
ul { list-style: none; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 32px; }

/* ─── UTILITIES ─── */
.tag {
  display: inline-block; font-size: .72rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--green-mid); background: var(--green-pale);
  padding: 5px 14px; border-radius: 999px; margin-bottom: 12px;
}
.section-title { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 14px; }
.section-lead { font-size: 1rem; color: var(--gray-600); max-width: 600px; line-height: 1.8; }
.text-center { text-align: center; }
.text-center .section-lead { margin: 0 auto; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 30px; border-radius: 4px;
  font-weight: 600; font-size: .9rem; cursor: pointer;
  transition: var(--transition); border: none; font-family: inherit;
  letter-spacing: .04em;
}
.btn-primary { background: var(--green-mid); color: var(--white); }
.btn-primary:hover { background: var(--green-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.6); }
.btn-outline:hover { background: rgba(255,255,255,.1); border-color: var(--white); }
.btn-dark { background: var(--gray-900); color: var(--white); }
.btn-dark:hover { background: var(--gray-800); }

/* ─── NAVBAR ─── */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--nav-bg);
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: var(--transition);
}
#navbar.scrolled { box-shadow: var(--shadow-md); }
.nav-inner {
  max-width: 1400px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 16px; height: 72px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-logo img { height: 46px; width: auto; }
.nav-links {
  display: flex; align-items: center; gap: 0; flex: 1;
  justify-content: center; flex-wrap: nowrap; white-space: nowrap;
}
.nav-links a {
  padding: 6px 10px; font-size: .73rem; font-weight: 600;
  color: rgba(255,255,255,.75); letter-spacing: .05em; text-transform: uppercase;
  border-bottom: 2px solid transparent; white-space: nowrap;
  transition: var(--transition);
}
.nav-links a:hover { color: var(--white); }
.nav-links a.active { color: var(--white); }
.nav-flags { display: flex; gap: 5px; align-items: center; flex-shrink: 0; }
.nav-flags-mobile { display: none; }
.lang-btn {
  background: rgba(255,255,255,.07);
  border: 1.5px solid rgba(255,255,255,.18);
  border-radius: 999px;
  color: rgba(255,255,255,.75);
  font-size: .7rem; font-weight: 700;
  letter-spacing: .04em;
  padding: 4px 10px 4px 5px;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex; align-items: center; gap: 7px;
  font-family: inherit;
  line-height: 1;
}
.lang-btn img {
  width: 20px; height: 14px;
  object-fit: cover;
  border-radius: 3px;
  display: block;
  box-shadow: 0 0 0 1px rgba(255,255,255,.18);
}
.lang-btn:hover {
  background: rgba(255,255,255,.15);
  border-color: rgba(255,255,255,.4);
  color: var(--white);
  transform: translateY(-1px);
}
.lang-btn.active {
  background: var(--green-mid);
  border-color: var(--green-accent);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(76,175,80,.35);
}
.nav-cta { background: var(--green-mid) !important; color: var(--white) !important; border-radius: 4px; padding: 6px 14px !important; }
.nav-cta:hover { background: var(--green-accent) !important; border-bottom-color: transparent !important; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 6px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--white); border-radius: 2px; transition: var(--transition); }

/* ─── PAGE HERO (inner pages) ─── */
.page-hero {
  margin-top: 72px; height: 340px; position: relative;
  overflow: hidden; display: flex; align-items: flex-end;
}
.page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.65) 0%, rgba(0,0,0,.2) 60%, transparent 100%); }
.page-hero-content {
  position: relative; z-index: 1;
  padding: 32px; width: 100%;
  max-width: var(--max-width); margin: 0 auto;
}
.breadcrumb { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.breadcrumb a, .breadcrumb span { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; }
.breadcrumb a { color: var(--green-accent); }
.breadcrumb .sep, .breadcrumb span:last-child { color: rgba(255,255,255,.6); }
.page-hero h1 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); color: var(--white); }

/* ─── HOME HERO ─── */
#home-hero {
  margin-top: 72px; min-height: calc(100vh - 80px);
  position: relative; display: flex; align-items: center;
}
.home-hero-bg { position: absolute; inset: 0; }
.home-hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.home-hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, rgba(15,35,16,.85) 0%, rgba(15,35,16,.55) 55%, rgba(0,0,0,.2) 100%); }
.home-hero-content { position: relative; z-index: 1; padding: 80px 32px; max-width: var(--max-width); margin: 0 auto; width: 100%; }
.hero-eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; }
.hero-eyebrow span { font-size: clamp(1.6rem, 3vw, 2.5rem); font-weight: 700; letter-spacing: .01em; color: #fff; }
.hero-eyebrow::before { content: ''; display: block; width: 32px; height: 2px; background: var(--green-accent); }
.home-hero-content h1 { font-size: clamp(2.4rem, 5vw, 4rem); color: var(--white); max-width: 680px; margin-bottom: 20px; }
.home-hero-content h1 em { color: var(--green-light); font-style: normal; }
.home-hero-content p { font-size: 1.05rem; color: rgba(255,255,255,.8); max-width: 520px; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 60px; }
.hero-stats { display: flex; gap: 0; border-top: 1px solid rgba(255,255,255,.15); padding-top: 36px; flex-wrap: wrap; }
.hero-stat { padding: 0 40px 0 0; }
.hero-stat:first-child { padding-left: 0; }
.stat-num { font-family: 'Space Grotesk', sans-serif; font-size: 2.4rem; color: var(--white); font-weight: 700; line-height: 1; }
.stat-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.5); margin-top: 4px; }

/* ─── HOME SERVICES CAROUSEL ─── */
#services { padding: 88px 0 24px; }
.services-carousel {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 6px;
  overflow: hidden;
}
.carousel-track {
  display: flex;
  transition: transform .7s cubic-bezier(.2,.8,.2,1);
  will-change: transform;
  align-items: stretch;
}
.carousel-track .service-card {
  flex: 0 0 84%;
  min-width: 84%;
  height: 520px;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  transform: scale(.88);
  opacity: .55;
  transition: transform .7s cubic-bezier(.2,.8,.2,1), opacity .7s ease;
}
.carousel-track .service-card.is-active {
  transform: scale(1);
  opacity: 1;
}
.carousel-track .service-card img {
  width: 100%; height: 100%; object-fit: cover;
}

/* progress bar — centered pill at the top with a soft glow */
.carousel-progress {
  position: absolute;
  top: 18px; left: 50%;
  transform: translateX(-50%);
  width: min(320px, 55%);
  height: 5px;
  background: rgba(255,255,255,.22);
  z-index: 4;
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,.18), inset 0 0 0 1px rgba(255,255,255,.12);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.carousel-progress-bar {
  height: 100%; width: 0%;
  background: linear-gradient(90deg,
    rgba(165,214,167,.95) 0%,
    var(--green-accent) 55%,
    #66bb6a 100%);
  border-radius: 999px;
  box-shadow: 0 0 12px rgba(76,175,80,.65), 0 0 4px rgba(255,255,255,.4);
  position: relative;
}
.carousel-progress-bar::after {
  content: '';
  position: absolute; top: 0; right: 0; bottom: 0;
  width: 28px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.85));
  border-radius: 999px;
  filter: blur(2px);
  opacity: .9;
}
@keyframes svcProgress {
  from { width: 0%; }
  to   { width: 100%; }
}
.carousel-progress-bar.run {
  animation: svcProgress 6s linear forwards;
}
.carousel-track .service-card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.78) 0%, rgba(0,0,0,.25) 60%, transparent 100%);
}
.carousel-track .service-content {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 1;
  padding: 44px 56px; max-width: 720px;
}
.carousel-track .service-line {
  width: 38px; height: 2px; background: var(--green-accent); margin-bottom: 14px;
}
.carousel-track .service-content h3 {
  font-size: 1.85rem; color: var(--white); margin-bottom: 10px;
}
.carousel-track .service-content p {
  font-size: 1rem; color: rgba(255,255,255,.85); line-height: 1.7; max-width: 560px;
}

/* arrows */
.carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 3;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,.95);
  color: var(--green-dark);
  border: none; cursor: pointer;
  font-size: 1.6rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  transition: transform .3s ease, background .3s ease, color .3s ease;
  font-family: inherit;
  line-height: 1; padding: 0 0 4px;
}
.carousel-prev { left: 22px; }
.carousel-next { right: 22px; }
.carousel-arrow:hover {
  background: var(--green-mid); color: var(--white);
  transform: translateY(-50%) scale(1.08);
}
.carousel-arrow:active { transform: translateY(-50%) scale(.95); }

/* dots */
.carousel-dots {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  z-index: 3;
  display: flex; gap: 8px;
}
.carousel-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,.4);
  border: none; cursor: pointer;
  transition: background .3s ease, width .3s ease;
  padding: 0;
}
.carousel-dot:hover { background: rgba(255,255,255,.7); }
.carousel-dot.is-active {
  background: var(--green-accent);
  width: 28px; border-radius: 999px;
}

/* ─── SECTION PADDING ─── */
.section { padding: 88px 0; }
.section-alt { background: var(--gray-50); }
.section-dark { background: var(--nav-bg); }
.section-green { background: var(--green-ultra); }

/* ─── SPLIT LAYOUT ─── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split-img { position: relative; border-radius: var(--radius-lg); overflow: hidden; }
.split-img img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.split-img-badge {
  position: absolute; bottom: -16px; right: -16px;
  background: var(--white); border-radius: var(--radius); padding: 18px 22px;
  box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 14px;
}
.badge-icon { font-size: 2rem; }
.badge-body strong { display: block; font-size: 1.1rem; color: var(--green-dark); }
.badge-body span { font-size: .78rem; color: var(--gray-600); }
.split-text blockquote {
  border-left: 3px solid var(--green-mid); padding: 16px 20px;
  background: var(--green-ultra); border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic; color: var(--gray-600); margin-bottom: 20px; font-size: .95rem;
}
.feature-list { display: flex; flex-direction: column; gap: 14px; margin: 24px 0; }
.feature-item { display: flex; align-items: flex-start; gap: 12px; }
.feature-check { width: 22px; height: 22px; border-radius: 50%; background: var(--green-pale); display: flex; align-items: center; justify-content: center; font-size: .7rem; flex-shrink: 0; margin-top: 2px; color: var(--green-dark); }
.feature-item p { font-size: .9rem; color: var(--gray-600); }
.feature-item strong { color: var(--gray-800); }

/* ─── PROJECT CARDS ─── */
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 28px; }
.project-card { border-radius: var(--radius-lg); overflow: hidden; background: var(--white); box-shadow: var(--shadow-sm); transition: var(--transition); border: 1px solid var(--gray-200); }
.project-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.project-card-img { position: relative; overflow: hidden; }
.project-card-img img { width: 100%; aspect-ratio: 16/10; object-fit: cover; transition: transform .5s ease; }
.project-card:hover .project-card-img img { transform: scale(1.04); }
.project-card-img .card-badge {
  position: absolute; top: 14px; left: 14px;
  background: var(--white); color: var(--green-dark); font-size: .7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em; padding: 4px 12px; border-radius: 999px;
}
.project-card-body { padding: 22px 24px; }
.card-category { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--green-mid); margin-bottom: 6px; }
.card-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.card-desc { font-size: .85rem; color: var(--gray-600); margin-bottom: 16px; line-height: 1.6; }
.card-meta { display: flex; gap: 14px; border-top: 1px solid var(--gray-200); padding-top: 14px; flex-wrap: wrap; }
.card-meta-item { font-size: .78rem; color: var(--gray-600); display: flex; align-items: center; gap: 4px; }
.card-meta-item strong { color: var(--gray-800); }

/* ─── LICENSE CARDS ─── */
.license-card { border-radius: var(--radius-lg); overflow: hidden; background: var(--white); box-shadow: var(--shadow-sm); border: 1px solid var(--gray-200); transition: var(--transition); }
.license-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.license-card-img img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.license-card-body { padding: 24px 28px; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 4px 12px; border-radius: 999px; margin-bottom: 12px; }
.status-pill .dot { width: 7px; height: 7px; border-radius: 50%; }
.status-approved { background: #e8f5e9; color: #1b5e20; }
.status-approved .dot { background: #4caf50; }
.status-progress { background: #fff8e1; color: #e65100; }
.status-progress .dot { background: #ff9800; }
.license-name { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.license-desc { font-size: .88rem; color: var(--gray-600); margin-bottom: 20px; line-height: 1.6; }
.license-specs { display: grid; grid-template-columns: repeat(3,1fr); background: var(--green-ultra); border-radius: var(--radius); padding: 14px; gap: 8px; }
.spec { text-align: center; }
.spec-val { font-weight: 700; color: var(--green-dark); font-size: .85rem; white-space: nowrap; }
.spec-key { font-size: .68rem; color: var(--gray-600); text-transform: uppercase; letter-spacing: .06em; }

/* ─── MATERIAL CARDS ─── */
.material-card {
  background: var(--white); border-radius: var(--radius-lg); padding: 28px;
  text-align: center; box-shadow: var(--shadow-sm); border: 1px solid var(--gray-200);
  transition: var(--transition);
}
.material-card:hover { border-color: var(--green-light); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.material-card img { width: 100%; aspect-ratio: 3/2; object-fit: cover; border-radius: var(--radius); margin-bottom: 18px; }
.material-icon { font-size: 2.2rem; margin-bottom: 12px; }
.material-name { font-weight: 700; font-size: .95rem; margin-bottom: 8px; }
.material-desc { font-size: .82rem; color: var(--gray-600); line-height: 1.6; }
.material-tag { display: inline-block; margin-top: 12px; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; background: var(--green-pale); color: var(--green-dark); padding: 3px 10px; border-radius: 999px; }

/* ─── CONTACT ─── */
.contact-wrapper { display: grid; grid-template-columns: 1fr 1.5fr; gap: 56px; align-items: start; }
.contact-offices { display: flex; flex-direction: column; gap: 16px; margin-top: 28px; }
.office-card { background: var(--white); border-left: 3px solid var(--green-mid); border-radius: 0 var(--radius) var(--radius) 0; padding: 18px 20px; box-shadow: var(--shadow-sm); }
.office-name { font-weight: 700; color: var(--green-dark); font-size: .9rem; margin-bottom: 4px; }
.office-addr { font-size: .82rem; color: var(--gray-600); line-height: 1.6; }
.contact-detail-row { display: flex; align-items: flex-start; gap: 10px; font-size: .88rem; color: var(--gray-600); margin-bottom: 8px; }
.contact-detail-row .icon { font-size: 1rem; flex-shrink: 0; margin-top: 2px; }
.contact-form-box { background: var(--white); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-md); border: 1px solid var(--gray-200); }
.form-title { font-size: 1.35rem; margin-bottom: 6px; }
.form-sub { font-size: .85rem; color: var(--gray-600); margin-bottom: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--gray-700, var(--gray-800)); margin-bottom: 6px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--gray-200); border-radius: var(--radius);
  font-size: .9rem; font-family: inherit; background: var(--gray-50);
  color: var(--gray-800); outline: none; transition: var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--green-mid); background: var(--white); box-shadow: 0 0 0 3px rgba(45,106,48,.1); }
.form-group textarea { resize: vertical; min-height: 110px; }
.form-success { display: none; background: #e8f5e9; border: 1px solid #a5d6a7; border-radius: var(--radius); padding: 14px 16px; color: #1b5e20; font-size: .88rem; margin-top: 12px; }

/* ─── JOBS ─── */
.jobs-filter { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 32px; }
.filter-btn { padding: 8px 18px; border-radius: 999px; border: 1.5px solid var(--gray-200); background: var(--white); color: var(--gray-600); font-size: .82rem; font-weight: 600; cursor: pointer; transition: var(--transition); font-family: inherit; }
.filter-btn.active, .filter-btn:hover { border-color: var(--green-mid); background: var(--green-pale); color: var(--green-dark); }
.jobs-list { display: flex; flex-direction: column; gap: 16px; }
.job-card { background: var(--white); border: 1.5px solid var(--gray-200); border-radius: var(--radius-lg); padding: 26px 30px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; transition: var(--transition); }
.job-card:hover { border-color: var(--green-light); box-shadow: var(--shadow-md); }
.job-left { flex: 1; min-width: 260px; }
.job-dept { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--green-mid); margin-bottom: 6px; }
.job-title { font-size: 1.1rem; font-weight: 700; color: var(--gray-900); margin-bottom: 10px; }
.job-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.job-tag { font-size: .74rem; padding: 3px 10px; border-radius: 999px; background: var(--green-pale); color: var(--green-dark); font-weight: 500; }
.job-tag.neutral { background: var(--gray-100); color: var(--gray-600); }
.job-right { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.job-date { font-size: .78rem; color: var(--gray-600); }

/* ─── MODAL ─── */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.55); display: flex; align-items: center; justify-content: center; z-index: 2000; padding: 24px; opacity: 0; pointer-events: none; transition: opacity var(--transition); }
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal { background: var(--white); border-radius: var(--radius-lg); width: 100%; max-width: 600px; max-height: 90vh; overflow-y: auto; padding: 40px; transform: translateY(16px); transition: transform var(--transition); }
.modal-overlay.open .modal { transform: translateY(0); }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 24px; gap: 12px; }
.modal-close { background: var(--gray-100); border: none; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 1rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: var(--transition); }
.modal-close:hover { background: var(--gray-200); }

/* ─── CERTIFICATIONS STRIP ─── */
.cert-strip { display: flex; gap: 0; background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--gray-200); }
.cert-item { flex: 1; padding: 24px 20px; text-align: center; border-right: 1px solid var(--gray-200); }
.cert-item:last-child { border-right: none; }
.cert-item .icon { font-size: 1.8rem; margin-bottom: 8px; }
.cert-item strong { display: block; font-size: .85rem; color: var(--gray-900); margin-bottom: 4px; }
.cert-item span { font-size: .75rem; color: var(--gray-600); }

/* ─── FOOTER ─── */
footer { background: var(--nav-bg); color: rgba(255,255,255,.65); padding: 72px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.6fr; gap: 48px; margin-bottom: 56px; }
.footer-brand { }
.footer-brand img { height: 52px; width: auto; margin-bottom: 16px; filter: brightness(0) invert(1); opacity: .85; }
.footer-brand p { font-size: .85rem; line-height: 1.8; max-width: 260px; }
.footer-col h2 { color: var(--white); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 18px; font-family: inherit; }
/* Texto solo para lectores de pantalla (accesibilidad: encabezados de sección sin impacto visual) */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: .85rem; transition: color var(--transition); display: flex; align-items: center; gap: 6px; }
.footer-col ul li a::before { content: '›'; color: var(--green-accent); font-size: 1rem; }
.footer-col ul li a:hover { color: var(--white); }
.footer-contact-row { display: flex; align-items: flex-start; gap: 10px; font-size: .82rem; margin-bottom: 10px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; font-size: .78rem; flex-wrap: wrap; gap: 8px; }

/* ─── SCROLL TOP ─── */
#scrollTop { position: fixed; bottom: 24px; right: 24px; z-index: 999; width: 44px; height: 44px; border-radius: var(--radius); background: var(--green-mid); color: var(--white); border: none; cursor: pointer; font-size: 1rem; box-shadow: var(--shadow-md); transition: var(--transition); opacity: 0; pointer-events: none; display: flex; align-items: center; justify-content: center; }
#scrollTop.visible { opacity: 1; pointer-events: all; }
#scrollTop:hover { background: var(--green-dark); transform: translateY(-2px); }

/* ─── ABOUT PAGE TEAM ─── */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.team-card { text-align: center; }
.team-card img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: top; border-radius: var(--radius-lg); margin-bottom: 16px; }
.team-name { font-size: 1.05rem; font-weight: 700; margin-bottom: 4px; }
.team-role { font-size: .82rem; color: var(--green-mid); font-weight: 600; }

/* ─── NUMBERS BAR ─── */
.numbers-bar { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; background: var(--green-dark); border-radius: var(--radius-lg); overflow: hidden; }
.number-item { padding: 36px 28px; text-align: center; border-right: 1px solid rgba(255,255,255,.1); }
.number-item:last-child { border-right: none; }
.number-val { font-family: 'Space Grotesk', sans-serif; font-size: 2.4rem; color: var(--white); font-weight: 700; }
.number-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.5); margin-top: 6px; }

/* ════════════════════════════════════════════
   RESPONSIVE — TABLET & MOBILE
   ════════════════════════════════════════════ */

/* ─── TABLET LANDSCAPE / SMALL DESKTOP (≤1200px) ─── */
@media (max-width: 1200px) {
  .nav-inner { padding: 0 18px; gap: 10px; }
  .nav-links a { padding: 6px 8px; font-size: .68rem; letter-spacing: .04em; }
  .nav-cta { padding: 6px 12px !important; }
  .lang-btn { padding: 4px 9px; font-size: .65rem; }
  .nav-logo img { height: 40px; }
}

/* ─── TABLET (≤1024px) — layout shifts, nav stays full ─── */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .numbers-bar { grid-template-columns: 1fr 1fr; }
  .number-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.1); }
  .number-item:last-child { border-bottom: none; }
  .split { gap: 48px; }
  .section { padding: 64px 0; }
  .home-hero-content { padding: 60px 24px; }
  .home-hero-content h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
  .home-hero-content p { font-size: 1rem; }
  .hero-stats { padding-top: 28px; }
  .stat-num { font-size: 2rem; }
  .hero-stat { padding-right: 28px; }
  /* compact nav so flags + links fit at ~1024px */
  .nav-inner { padding: 0 14px; gap: 6px; }
  .nav-links a { padding: 6px 6px; font-size: .62rem; }
  .nav-cta { padding: 6px 10px !important; }
  .lang-btn { padding: 3px 8px 3px 4px; font-size: .6rem; gap: 5px; }
  .lang-btn img { width: 18px; height: 12px; }
  .nav-flags { gap: 3px; }
}

/* ─── NAV → HAMBURGER (≤920px) ─── */
@media (max-width: 920px) {
  /* Hide desktop language flags from navbar — they move into the menu */
  .nav-flags { display: none; }
  /* Hamburger pushed fully right */
  .hamburger { display: flex; margin-left: auto; }

  /* Slide-down menu */
  .nav-links {
    display: none; flex-direction: column;
    position: fixed; top: 72px; left: 0; right: 0;
    background: var(--nav-bg); padding: 12px 16px; gap: 0;
    border-top: 1px solid rgba(255,255,255,.08);
    max-height: calc(100vh - 72px); overflow-y: auto;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 14px 14px; font-size: .82rem;
    border-bottom: 1px solid rgba(255,255,255,.06) !important;
  }
  .nav-links a.active { border-bottom-color: rgba(255,255,255,.06) !important; }
  .nav-cta { border-radius: 4px; margin-top: 6px; text-align: center; }

  /* Mobile language flags inside the open menu */
  .nav-flags-mobile {
    display: flex; gap: 8px; justify-content: center;
    padding: 18px 8px 6px;
    border-top: 1px solid rgba(255,255,255,.08);
    margin-top: 8px;
  }
  .nav-flags-mobile .lang-btn {
    padding: 8px 16px; font-size: .8rem; letter-spacing: .04em;
  }
  .nav-flags-mobile .lang-btn img { width: 22px; height: 15px; }
}

/* ─── MOBILE LARGE (≤768px) ─── */
@media (max-width: 768px) {
  html { font-size: 15px; }
  .container { padding: 0 18px; }
  .section { padding: 48px 0; }

  /* navbar */
  .nav-inner { padding: 0 16px; height: 64px; gap: 6px; }
  .nav-logo img { height: 36px; }
  .nav-links { top: 64px; }

  /* page hero */
  .page-hero { margin-top: 64px; height: 220px; }
  .page-hero-content { padding: 24px 18px; }
  .breadcrumb a, .breadcrumb span { font-size: .68rem; }

  /* home hero */
  #home-hero { margin-top: 64px; min-height: auto; padding: 72px 0 56px; }
  .home-hero-content { padding: 40px 18px; }
  .home-hero-content h1 { font-size: clamp(1.85rem, 7vw, 2.4rem); margin-bottom: 16px; }
  .home-hero-content p { font-size: .95rem; margin-bottom: 28px; }
  .hero-actions { gap: 10px; margin-bottom: 40px; }
  .hero-actions .btn { padding: 11px 22px; font-size: .82rem; flex: 1 1 auto; justify-content: center; }
  .hero-stats {
    display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
    border-top: 1px solid rgba(255,255,255,.15); padding-top: 24px;
  }
  .hero-stat { padding: 0; }
  .stat-num { font-size: 1.65rem; }
  .stat-label { font-size: .65rem; }

  /* layout */
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split-img-badge {
    position: static; margin: 16px auto 0; display: inline-flex;
    border-radius: var(--radius);
  }
  .grid-2, .grid-3 { grid-template-columns: 1fr; gap: 18px; }
  #services { padding: 56px 0 18px; }
  .carousel-track .service-card { height: 380px; }
  .carousel-track .service-content { padding: 26px 26px; }
  .carousel-track .service-content h3 { font-size: 1.35rem; }
  .carousel-track .service-content p { font-size: .9rem; }
  .carousel-arrow { width: 42px; height: 42px; font-size: 1.3rem; }
  .carousel-prev { left: 8px; }
  .carousel-next { right: 8px; }
  .carousel-dots { bottom: 14px; }
  .carousel-progress { top: 12px; height: 4px; width: min(220px, 55%); }
  .contact-wrapper { grid-template-columns: 1fr; gap: 32px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; text-align: left; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .team-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
  .numbers-bar { grid-template-columns: 1fr 1fr; }
  .number-item { padding: 24px 16px; }
  .number-val { font-size: 1.85rem; }
  .cert-strip { flex-wrap: wrap; }
  .cert-item { flex: 0 0 50%; border-bottom: 1px solid var(--gray-200); padding: 18px 12px; }
  .cert-item:nth-last-child(-n+2) { border-bottom: none; }
  .cert-item:nth-child(2n) { border-right: none; }

  /* jobs */
  .job-card { flex-direction: column; align-items: flex-start; padding: 20px 22px; }
  .job-right { align-items: flex-start; width: 100%; }
  .job-right .btn { width: 100%; justify-content: center; }

  /* modal */
  .modal { padding: 28px 22px; max-height: 92vh; }
  .modal-overlay { padding: 14px; }
  .form-title { font-size: 1.2rem; }

  /* contact */
  .contact-form-box { padding: 28px 22px; }

  /* sections / typography */
  .section-title { font-size: clamp(1.45rem, 5.5vw, 1.95rem); }
  .section-lead { font-size: .92rem; }
  .tag { font-size: .68rem; padding: 4px 12px; }

  /* CTA banner shrink */
  section[style*="height:400px"] { height: 320px !important; }

  /* bottom CTA stacks */
  .grid-3 + div[style*="display:flex"] .btn { width: 100%; }
}

/* ─── MOBILE SMALL (≤480px) ─── */
@media (max-width: 480px) {
  .container { padding: 0 14px; }
  .nav-inner { padding: 0 12px; gap: 4px; }
  .nav-logo img { height: 32px; }
  .nav-flags-mobile .lang-btn { padding: 7px 14px; font-size: .76rem; }

  .grid-2 { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .numbers-bar { grid-template-columns: 1fr; }
  .number-item { border-bottom: 1px solid rgba(255,255,255,.1) !important; }
  .number-item:last-child { border-bottom: none !important; }
  .cert-item { flex: 0 0 100%; border-right: none !important; }
  .cert-item:not(:last-child) { border-bottom: 1px solid var(--gray-200); }

  .home-hero-content h1 { font-size: 1.7rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 14px; }

  .page-hero h1 { font-size: 1.6rem; }
  .page-hero { height: 200px; }

  .split-img-badge { padding: 14px 18px; }
  .badge-icon { font-size: 1.6rem; }

  .form-group input, .form-group select, .form-group textarea { padding: 10px 12px; }

  .btn { padding: 11px 22px; font-size: .85rem; }
  #scrollTop { width: 40px; height: 40px; bottom: 18px; right: 18px; }

  .jobs-filter { gap: 6px; }
  .filter-btn { padding: 6px 14px; font-size: .76rem; }

  /* tighter carousel on small phones — keep a small peek but more room for active card */
  .carousel-track .service-card { height: 340px; }
  .carousel-track .service-content { padding: 22px 22px; }
  .carousel-track .service-content h3 { font-size: 1.2rem; }
  .carousel-track .service-content p { font-size: .85rem; }
  .carousel-arrow { width: 38px; height: 38px; font-size: 1.2rem; }
  .carousel-progress { top: 10px; height: 3px; width: min(180px, 60%); }
  .carousel-dots { bottom: 12px; }
  .carousel-dot { width: 8px; height: 8px; }
  .carousel-dot.is-active { width: 22px; }
}

/* ════════════════════════════════════════════
   SCROLL REVEAL ANIMATIONS
   ════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* stagger children in grids */
.grid-3 > .reveal:nth-child(2),
.grid-2 > .reveal:nth-child(2),
.team-grid > .reveal:nth-child(2),
.services-grid > .reveal:nth-child(2),
.feature-list > .reveal:nth-child(2),
.cert-strip > .reveal:nth-child(2) { transition-delay: .08s; }

.grid-3 > .reveal:nth-child(3),
.grid-2 > .reveal:nth-child(3),
.team-grid > .reveal:nth-child(3),
.services-grid > .reveal:nth-child(3),
.feature-list > .reveal:nth-child(3),
.cert-strip > .reveal:nth-child(3) { transition-delay: .16s; }

.grid-3 > .reveal:nth-child(4),
.services-grid > .reveal:nth-child(4),
.feature-list > .reveal:nth-child(4),
.cert-strip > .reveal:nth-child(4) { transition-delay: .24s; }

.grid-3 > .reveal:nth-child(5) { transition-delay: .32s; }
.grid-3 > .reveal:nth-child(6) { transition-delay: .4s; }

/* ════════════════════════════════════════════
   HERO ENTRANCE ANIMATION
   ════════════════════════════════════════════ */
@keyframes heroIn {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.home-hero-content > * {
  animation: heroIn .9s cubic-bezier(.2,.8,.2,1) both;
}
.home-hero-content > *:nth-child(1) { animation-delay: .1s; }
.home-hero-content > *:nth-child(2) { animation-delay: .25s; }
.home-hero-content > *:nth-child(3) { animation-delay: .4s; }
.home-hero-content > *:nth-child(4) { animation-delay: .55s; }
.home-hero-content > *:nth-child(5) { animation-delay: .7s; }

@keyframes heroFadeBg {
  from { opacity: 0; transform: scale(1.05); }
  to   { opacity: 1; transform: scale(1); }
}
.home-hero-bg img { animation: heroFadeBg 1.4s ease both; }

@keyframes pageHeroIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.page-hero-content > * { animation: pageHeroIn .8s cubic-bezier(.2,.8,.2,1) both; }
.page-hero-content > *:nth-child(1) { animation-delay: .15s; }
.page-hero-content > *:nth-child(2) { animation-delay: .3s; }

/* ════════════════════════════════════════════
   ENHANCED HOVERS
   ════════════════════════════════════════════ */
.btn { position: relative; overflow: hidden; }
.btn::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(255,255,255,.12);
  transform: translateX(-100%) skewX(-15deg);
  transition: transform .55s cubic-bezier(.4,0,.2,1);
}
.btn:hover::after { transform: translateX(120%) skewX(-15deg); }
.btn-primary:hover { box-shadow: 0 8px 24px rgba(45,106,48,.4); }

/* nav links — animated underline */
.nav-links a:not(.nav-cta) { position: relative; }
.nav-links a:not(.nav-cta)::after {
  content: ''; position: absolute; bottom: 0; left: 50%;
  width: 0; height: 2px; background: var(--green-accent);
  transition: width .35s ease, left .35s ease;
}
.nav-links a:not(.nav-cta):hover::after { width: 70%; left: 15%; }
@media (max-width: 1024px) {
  .nav-links a:not(.nav-cta)::after { display: none; }
}

/* service cards — only an animated underline appears under the title on hover */
.carousel-track .service-content h3 {
  display: inline-block;
  position: relative;
}
.carousel-track .service-content h3::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--white);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .4s cubic-bezier(.2,.8,.2,1);
  border-radius: 2px;
}
.carousel-track .service-card:hover .service-content h3::after {
  transform: scaleX(1);
}

/* feature checks animate on hover of parent */
.feature-check { transition: transform .4s cubic-bezier(.34,1.56,.64,1), background .3s ease, color .3s ease; }
.feature-item:hover .feature-check {
  transform: scale(1.15) rotate(360deg);
  background: var(--green-mid); color: var(--white);
}

/* card images zoom on hover */
.material-card img,
.team-card img { transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.material-card:hover img { transform: scale(1.06); }
.team-card:hover img { transform: scale(1.04); }
.team-card { transition: transform .35s ease; }
.team-card:hover { transform: translateY(-4px); }

/* cert items */
.cert-item { transition: background .35s ease, transform .35s ease; }
.cert-item:hover { background: var(--green-ultra); }
.cert-item .icon { transition: transform .4s cubic-bezier(.34,1.56,.64,1); display: inline-block; }
.cert-item:hover .icon { transform: scale(1.2) rotate(-8deg); }

/* office cards */
.office-card { transition: transform .35s ease, border-left-width .35s ease, box-shadow .35s ease; }
.office-card:hover {
  transform: translateX(6px);
  border-left-width: 5px;
  box-shadow: var(--shadow-md);
}

/* contact rows */
.contact-detail-row { transition: transform .3s ease; }
.contact-detail-row:hover { transform: translateX(4px); }
.contact-detail-row .icon { transition: transform .3s cubic-bezier(.34,1.56,.64,1); }
.contact-detail-row:hover .icon { transform: scale(1.25); }

/* footer links — slide right on hover */
.footer-col ul li a { transition: color .3s ease, padding-left .3s ease; }
.footer-col ul li a:hover { padding-left: 6px; color: var(--green-accent); }

/* number bar items */
.number-item { transition: background .35s ease; }
.number-item:hover { background: rgba(255,255,255,.04); }

/* badge icons */
.badge-icon { transition: transform .4s cubic-bezier(.34,1.56,.64,1); display: inline-block; }
.split-img:hover .badge-icon { transform: scale(1.15) rotate(-10deg); }

/* scroll-top button bounce */
@keyframes scrollTopIn {
  from { opacity: 0; transform: translateY(20px) scale(.8); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
#scrollTop.visible { animation: scrollTopIn .35s cubic-bezier(.34,1.56,.64,1) both; }

/* hamburger smooth toggle */
.hamburger { transition: transform .3s ease; }
.hamburger:hover { transform: scale(1.08); }
.hamburger span { transition: transform .35s ease, opacity .25s ease; }

/* respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal, .home-hero-content > *, .page-hero-content > *,
  .home-hero-bg img, #scrollTop.visible {
    animation: none !important; opacity: 1 !important; transform: none !important;
    transition: none !important;
  }
}

/* ── FORM HINT ────────────────────────────── */
.form-hint {
  display: block;
  margin-top: 6px;
  font-size: .78rem;
  color: var(--gray-600, #666);
}
.form-group input[type="file"] {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--gray-200, #e5e5e5);
  border-radius: 8px;
  background: #fff;
  font-size: .88rem;
  cursor: pointer;
}
.form-group input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 8px 14px;
  border: 0;
  border-radius: 6px;
  background: var(--green-mid, #2e5e30);
  color: #fff;
  font-size: .82rem;
  font-weight: 500;
  cursor: pointer;
}
.form-group input[type="file"]::file-selector-button:hover {
  background: var(--green-dark, #1e3d20);
}

/* ── COOKIE BANNER ────────────────────────── */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 9999;
  background: #fff;
  color: var(--gray-800, #2a2a2a);
  border: 1px solid var(--gray-200, #e5e5e5);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,.18);
  padding: 18px 22px;
  font-size: .9rem;
  line-height: 1.55;
}
.cookie-banner[hidden] { display: none !important; }
.cookie-banner-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.cookie-banner p { margin: 0; color: var(--gray-700, #444); flex: 1 1 320px; min-width: 280px; }
.cookie-banner a { color: var(--green-mid, #1e3d20); text-decoration: underline; }
.cookie-banner-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-banner-actions .btn { padding: 10px 20px; font-size: .85rem; }
@media (max-width: 600px) {
  .cookie-banner { left: 8px; right: 8px; bottom: 8px; padding: 14px 16px; }
  .cookie-banner-actions { width: 100%; }
  .cookie-banner-actions .btn { flex: 1 1 auto; justify-content: center; }
}

/* ── TITULARES: peticiones del cliente ──────── */
/* Hero portada: título principal SIEMPRE en una sola línea; en pantallas pequeñas
   se reduce el tamaño de fuente (clamp) en lugar de partir el texto en dos. */
.home-hero-content h1.title-1line {
  white-space: nowrap;
  max-width: none;
  font-size: clamp(0.95rem, 4.5vw, 3.2rem);
}
/* Hero portada: subtítulo en una sola línea SOLO en escritorio grande;
   en móvil/tablet fluye con normalidad en varias líneas (legible). */
@media (min-width: 1200px) {
  .home-hero-content p.subtitle-1line { max-width: none; white-space: nowrap; font-size: .95rem; }
}
/* Titulares en columna estrecha (Sobre Nosotros / Contacto): reparto equilibrado, sin cortes feos */
.section-title.title-balance { text-wrap: balance; }
/* Footer: nombre del grupo (debajo de la marca, pequeño y discreto) */
.footer-group { font-size: .78rem; font-weight: 600; letter-spacing: .04em; color: rgba(255,255,255,.5); margin: -8px 0 14px; }
/* Equipo (Home) — avatares circulares. Blindado: el círculo mantiene su tamaño
   y recorta el contenido aunque una foto tarde o falle (no descuadra el bloque). */
.team-card { text-align: center; }
.team-photo { width: 118px; height: 118px; border-radius: 50%; margin: 0 auto 14px; background: var(--green-pale); display: flex; align-items: center; justify-content: center; font-size: 2.6rem; color: var(--green-mid); overflow: hidden; flex-shrink: 0; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; aspect-ratio: auto; margin: 0; border-radius: 0; display: block; font-size: 0; color: transparent; }
.team-photo.sm { width: 84px; height: 84px; font-size: 1.9rem; flex-shrink: 0; }
.team-name { font-weight: 700; color: var(--gray-800); }
.team-role { font-size: .85rem; color: var(--green-mid); font-weight: 600; margin-top: 2px; }
.team-collab { display: flex; flex-wrap: wrap; gap: 26px 40px; justify-content: center; }
.team-collab-item { text-align: center; width: 140px; display: flex; flex-direction: column; align-items: center; }
/* Equipo (Sobre Nosotros) — 4 tarjetas verticales con foto-retrato, nombre y cargo */
.team4-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; max-width: 920px; margin: 0 auto; }
.team4-card { text-align: center; }
.team4-photo { aspect-ratio: 3 / 4; border-radius: var(--radius-lg); overflow: hidden; background: var(--green-pale); border: 1px solid var(--green-pale); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; transition: transform .35s ease; }
.team4-card:hover .team4-photo { transform: translateY(-4px); }
.team4-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.team4-initials { font-family: 'Space Grotesk', sans-serif; font-size: 2.3rem; font-weight: 700; color: var(--green-mid); letter-spacing: .03em; }
.team4-name { font-size: 1.02rem; font-weight: 700; color: var(--gray-800); line-height: 1.25; }
.team4-role { font-size: .85rem; color: var(--green-mid); font-weight: 600; margin-top: 4px; }
.team4-note { font-size: .76rem; color: var(--gray-600); margin-top: 2px; }
@media (max-width: 760px) { .team4-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; max-width: 440px; } }
/* Titular en UNA sola línea (escritorio) para bloques a ancho completo */
@media (min-width: 768px) {
  .section-title.one-line { white-space: nowrap; font-size: clamp(1.6rem, 3vw, 2.2rem); }
  /* Variante para titulares en columna estrecha (Contacto): tamaño menor para caber en una línea */
  .section-title.one-line-sm { white-space: nowrap; font-size: clamp(1.35rem, 2.4vw, 1.75rem); }
}

/* ── GALERÍA DE FOTOS DE VILLAS — cuadrícula de miniaturas dentro del modal ── */
.villa-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 20px; }
.vt-thumb { padding: 0; border: none; border-radius: 8px; overflow: hidden; cursor: pointer; background: var(--gray-100); aspect-ratio: 4/3; }
.vt-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.vt-thumb:hover img, .vt-thumb:focus-visible img { transform: scale(1.06); }
.vt-thumb:focus-visible { outline: 2px solid var(--green-mid); outline-offset: 2px; }
@media (max-width: 600px) { .villa-thumbs { grid-template-columns: repeat(3, 1fr); gap: 6px; } }

/* Distintivo "ver galería" sobre las fotos clicables de villas (cartas) */
.has-gallery { position: relative; cursor: pointer; }
.has-gallery::after { content: '📷 ' attr(data-count) ' fotos'; position: absolute; bottom: 12px; left: 12px; background: rgba(0,0,0,.62); color: #fff; font-size: .78rem; font-weight: 600; padding: 5px 12px; border-radius: 20px; pointer-events: none; transition: background .2s; z-index: 2; }
.has-gallery:hover::after { background: var(--green-mid); }

/* ── LIGHTBOX (visor de fotos a pantalla completa) ── */
.lightbox { position: fixed; inset: 0; z-index: 3000; display: none; flex-direction: column; align-items: center; justify-content: center; padding: 16px; background: rgba(0,0,0,.92); }
.lightbox.open { display: flex; }
.lb-stage { position: relative; margin: 0; max-width: 100%; max-height: 78vh; display: flex; align-items: center; justify-content: center; }
.lb-img { max-width: 92vw; max-height: 78vh; object-fit: contain; border-radius: 6px; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.lb-count { position: absolute; bottom: -30px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.85); font-size: .85rem; font-weight: 600; white-space: nowrap; }
.lb-close, .lb-prev, .lb-next { position: absolute; border: none; background: rgba(255,255,255,.14); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: background .2s; z-index: 2; }
.lb-close { top: 16px; right: 16px; width: 46px; height: 46px; font-size: 1.3rem; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; font-size: 2rem; line-height: 1; }
.lb-prev { left: 16px; } .lb-next { right: 16px; }
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,.3); }
.lb-thumbs { display: flex; gap: 8px; overflow-x: auto; max-width: 96vw; padding: 8px 4px 2px; margin-top: 18px; scrollbar-width: thin; }
.lb-thumb { flex: 0 0 auto; width: 70px; height: 52px; border: 2px solid transparent; border-radius: 6px; overflow: hidden; padding: 0; cursor: pointer; background: none; opacity: .5; transition: opacity .2s, border-color .2s; }
.lb-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lb-thumb.active { opacity: 1; border-color: #fff; }
@media (max-width: 600px) {
  .lb-prev, .lb-next { width: 42px; height: 42px; font-size: 1.6rem; }
  .lb-close { width: 40px; height: 40px; }
  .lb-thumb { width: 56px; height: 42px; }
  .lb-img { max-height: 70vh; }
}
