/* ================================================================
   DEL ROSARIO SRL — División Ingeniería y Servicios
   Hoja de estilos principal | DDWEB Argentina
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@600;700;800&display=swap');

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

:root {
  --g900: #1b5e20;
  --g800: #2e7d32;
  --g700: #388e3c;
  --g600: #43a047;
  --g100: #f1f8e9;
  --g50:  #f9fbe7;
  --a600: #ffb300;
  --a500: #ffc107;
  --a100: #fff8e1;
  --d900: #1a1a2e;
  --d700: #212121;
  --d500: #424242;
  --d400: #616161;
  --d300: #9e9e9e;
  --d200: #e0e0e0;
  --d100: #f5f5f5;
  --white: #ffffff;
  --shadow-sm: 0 2px 8px rgba(0,0,0,.07);
  --shadow-md: 0 4px 20px rgba(0,0,0,.11);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.16);
  --radius: 10px;
  --radius-lg: 18px;
  --radius-xl: 28px;
  --ease: .3s ease;
  --container: 1240px;
}

html { scroll-behavior: smooth; }

html, body { overflow-x: hidden; }

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--d700);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img  { max-width: 100%; height: auto; display: block; }
a    { color: inherit; text-decoration: none; transition: var(--ease); }
ul   { list-style: none; }
input, textarea, select, button { font-family: inherit; }

/* Container */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

/* ── Typography ───────────────────────────────────────────────── */
h1, h2, h3, h4 { font-family: 'Poppins', 'Inter', 'Segoe UI', system-ui, sans-serif; }
h1 { font-size: clamp(2.2rem, 4.5vw, 3.8rem); line-height: 1.1; font-weight: 800; letter-spacing: -.03em; }
h2 { font-size: clamp(1.75rem, 3vw, 2.6rem); line-height: 1.2; font-weight: 700; letter-spacing: -.02em; }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); line-height: 1.25; font-weight: 700; }
h4 { font-size: 1.15rem; font-weight: 700; }

.lead { font-size: 1.1rem; color: var(--d500); line-height: 1.85; }
.text-center { text-align: center; }

/* Section labels */
.section-label {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .75rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--g700);
  background: var(--g100); padding: 6px 16px;
  border-radius: 100px; margin-bottom: 1rem;
  border: 1px solid rgba(56,142,60,.2);
}

.section-title { margin-bottom: .75rem; }
.section-title span { color: var(--g700); }

.section-desc {
  max-width: 580px; margin: 0 auto;
  color: var(--d500); font-size: 1.05rem; line-height: 1.85;
}

.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header .section-desc { margin-top: .75rem; }

.divider {
  width: 52px; height: 4px;
  background: linear-gradient(90deg, var(--g700), var(--a500));
  margin: 1rem auto 0; border-radius: 2px;
}

/* ── Sections ─────────────────────────────────────────────────── */
.section      { padding: 100px 0; }
.section-alt  { background: var(--d100); }
.section-dark { background: var(--g900); color: var(--white); }
.section-sm   { padding: 60px 0; }

/* ── Buttons ──────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; font-size: .95rem; font-weight: 700;
  border-radius: 100px; border: 2px solid transparent;
  cursor: pointer; transition: var(--ease); white-space: nowrap;
  line-height: 1;
}

.btn-primary  { background: var(--a500); color: var(--d900); border-color: var(--a500); }
.btn-primary:hover { background: var(--a600); border-color: var(--a600); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,193,7,.4); }

.btn-outline  { background: transparent; color: var(--white); border-color: rgba(255,255,255,.55); }
.btn-outline:hover { background: rgba(255,255,255,.12); border-color: var(--white); }

.btn-green    { background: var(--g700); color: var(--white); border-color: var(--g700); }
.btn-green:hover { background: var(--g800); border-color: var(--g800); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(46,125,50,.3); }

.btn-ghost    { background: transparent; color: var(--g700); border-color: var(--g700); }
.btn-ghost:hover { background: var(--g100); }

.btn-sm  { padding: 10px 22px; font-size: .875rem; }
.btn-lg  { padding: 17px 36px; font-size: 1.05rem; }

/* ── Navigation ───────────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1002;
  transition: background var(--ease), box-shadow var(--ease), backdrop-filter var(--ease);
  padding: 0;
  background: #007135;
}

.navbar.transparent { background: #007135; }

.navbar.scrolled {
  background: #007135;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md);
}

.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 5px 28px; max-width: var(--container); margin: 0 auto;
}

/* Logo */
.nav-logo { display: flex; align-items: center; gap: 12px; }

.nav-logo-img {
  height: 58px; width: auto; border-radius: 0;
  flex-shrink: 0; object-fit: contain;
  transition: opacity var(--ease);
}

.nav-logo:hover .nav-logo-img { opacity: .85; }

.nav-logo-text-wrap {}

.nav-logo-name {
  font-size: 1.1rem; font-weight: 800; line-height: 1.1;
  color: var(--white); letter-spacing: -.02em;
  transition: color var(--ease);
}

.navbar.scrolled .nav-logo-name { color: var(--white); }

.nav-logo-sub {
  font-size: .62rem; font-weight: 600; letter-spacing: .09em;
  text-transform: uppercase; color: rgba(255,255,255,.7);
  display: block; margin-top: 1px;
  transition: color var(--ease);
}

.navbar.scrolled .nav-logo-sub { color: rgba(255,255,255,.7); }

/* Nav links */
.nav-menu { display: flex; align-items: center; gap: 2px; align-self: center; }

.nav-item { position: relative; }

.nav-link {
  display: flex; align-items: center; gap: 4px;
  padding: 9px 14px; font-size: .875rem; font-weight: 500;
  color: rgba(255,255,255,.9); border-radius: var(--radius);
  transition: var(--ease);
}

button.nav-link {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.navbar.scrolled .nav-link { color: rgba(255,255,255,.9); }

.nav-link:hover,
.nav-link.active {
  background: rgba(255,255,255,.15);
  color: var(--a500);
}

.navbar.scrolled .nav-link:hover,
.navbar.scrolled .nav-link.active {
  background: rgba(255,255,255,.15); color: var(--a500);
}

.nav-arrow {
  width: 14px; height: 14px;
  transition: transform var(--ease);
  flex-shrink: 0;
}

.nav-item:hover .nav-arrow { transform: rotate(180deg); }

/* Dropdown */
.nav-dropdown {
  position: absolute; top: calc(100% + 10px); left: 0;
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); min-width: 270px;
  padding: 8px; opacity: 0; visibility: hidden;
  transform: translateY(-10px); transition: var(--ease);
  border: 1px solid var(--d200);
}

.nav-item:hover .nav-dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}

.dd-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; border-radius: var(--radius);
  color: var(--d500); font-size: .88rem; font-weight: 500;
  transition: var(--ease);
}

.dd-item:hover { background: var(--g100); color: var(--g700); }

.dd-icon {
  width: 34px; height: 34px; background: var(--g100);
  border-radius: 8px; display: flex; align-items: center;
  justify-content: center; color: var(--g700); flex-shrink: 0;
  transition: var(--ease);
}

.dd-item:hover .dd-icon { background: var(--g700); color: var(--white); }

.dd-text {}
.dd-text strong { display: block; font-weight: 600; color: var(--d700); font-size: .9rem; }
.dd-text span   { font-size: .78rem; color: var(--d400); }

/* CTA button in nav */
.nav-cta-btn {
  background: var(--a500) !important; color: var(--d900) !important;
  padding: 10px 20px !important; font-weight: 700 !important;
  border-radius: 100px !important; margin-left: 8px;
}

.nav-cta-btn:hover { background: var(--a600) !important; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(255,193,7,.45); }

/* Hamburger */
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 8px; background: none; border: none;
  position: relative; z-index: 1001; align-self: center;
}

.nav-hamburger span {
  display: block; width: 23px; height: 2px;
  background: var(--white); border-radius: 2px; transition: var(--ease);
}

.navbar.scrolled .nav-hamburger span { background: var(--white); }

.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Nav social icons */
.nav-social { display: flex; align-items: center; gap: 6px; margin-left: 10px; }

.nav-social-btn {
  width: 34px; height: 34px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.85); transition: var(--ease);
  background: rgba(255,255,255,.12); flex-shrink: 0;
}

.nav-social-btn:hover { background: rgba(255,255,255,.28); color: var(--white); }

@media (max-width: 768px) { .nav-social { display: none; } }

/* ── Hero ─────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  position: relative; overflow: hidden; padding: 90px 0 80px;
}

.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(140deg, var(--g900) 0%, #0f4019 40%, #1e3a14 100%);
}

.hero-bg-pattern {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 15% 85%, rgba(255,193,7,.08) 0%, transparent 55%),
                    radial-gradient(circle at 85% 15%, rgba(255,255,255,.04) 0%, transparent 55%);
}

/* Decorative grid */
.hero-grid-deco {
  position: absolute; inset: 0; overflow: hidden;
}

.hero-grid-deco::before {
  content: '';
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px;
}

.hero-content {
  position: relative; z-index: 2; max-width: 680px;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
  color: var(--a500); font-size: .75rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 7px 18px; border-radius: 100px; margin-bottom: 1.75rem;
}

.hero-badge-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--a500);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .6; transform: scale(.75); }
}

.hero-title { color: var(--white); margin-bottom: 1.5rem; }
.hero-title span { color: var(--a500); }

.hero-desc {
  font-size: 1.1rem; color: rgba(255,255,255,.82);
  line-height: 1.85; margin-bottom: 2.5rem; max-width: 560px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-stats {
  display: flex; gap: 40px; margin-top: 56px;
  padding-top: 40px; border-top: 1px solid rgba(255,255,255,.12);
  flex-wrap: wrap; width: fit-content;
}

.hero-stat-number {
  font-size: 2.2rem; font-weight: 800; color: var(--a500); line-height: 1;
}

.hero-stat-label {
  font-size: .8rem; color: rgba(255,255,255,.65);
  text-transform: uppercase; letter-spacing: .07em; margin-top: 3px;
}

/* Hero image side */
.hero-visual {
  position: absolute; right: 0; top: 0; bottom: 0; width: 50%;
  overflow: hidden; z-index: 1;
}

.hero-visual img {
  width: 100%; height: 100%; object-fit: cover; opacity: .28;
}

.hero-visual::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, var(--g900) 0%, rgba(27,94,32,.6) 50%, transparent 100%);
}

/* ── Page Hero (inner pages) ──────────────────────────────────── */
.page-hero {
  padding: 100px 0 90px;
  background: linear-gradient(140deg, var(--g900) 0%, var(--g700) 100%);
  position: relative; overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute; inset: 0; z-index: 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: 40px 40px;
}

.page-hero-inner { position: relative; z-index: 1; }

.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: .85rem; color: rgba(255,255,255,.65); margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.breadcrumb a { color: rgba(255,255,255,.65); }
.breadcrumb a:hover { color: var(--a500); }
.breadcrumb-sep { color: rgba(255,255,255,.35); }

.page-hero-title { color: var(--white); margin-bottom: 1rem; }
.page-hero-desc  { color: rgba(255,255,255,.8); font-size: 1.05rem; line-height: 1.85; max-width: 560px; }

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

.service-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 38px 32px; box-shadow: var(--shadow-sm);
  border: 1px solid var(--d200); transition: var(--ease);
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
}

.service-card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--g700), var(--a500));
  transform: scaleX(0); transform-origin: left; transition: transform var(--ease);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.service-card:hover::after { transform: scaleX(1); }

.service-icon {
  width: 62px; height: 62px; border-radius: 14px;
  background: var(--g100); display: flex; align-items: center; justify-content: center;
  color: var(--g700); margin-bottom: 1.5rem; transition: var(--ease);
  flex-shrink: 0;
}

.service-card:hover .service-icon { background: var(--g700); color: var(--white); }

.service-title { font-size: 1.15rem; font-weight: 700; margin-bottom: .6rem; }

.service-desc { color: var(--d500); font-size: .9rem; line-height: 1.75; flex-grow: 1; }

.service-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--g700); font-weight: 700; font-size: .88rem;
  margin-top: 1.5rem; transition: var(--ease);
}

.service-link:hover { gap: 10px; color: var(--g800); }

/* ── Stats ────────────────────────────────────────────────────── */
.stats-band {
  background: var(--g800);
  padding: 60px 0;
}

.stats-flex {
  display: flex; align-items: center; justify-content: center;
  gap: 0; flex-wrap: wrap;
}

.stat-cell {
  flex: 1 1 200px; text-align: center; padding: 32px 24px;
  position: relative;
}

.stat-cell:not(:last-child)::after {
  content: ''; position: absolute; right: 0; top: 20%; bottom: 20%;
  width: 1px; background: rgba(255,255,255,.15);
}

.stat-num {
  font-size: 3.2rem; font-weight: 800; color: var(--a500);
  line-height: 1; letter-spacing: -.04em;
}

.stat-suffix { font-size: 2rem; color: var(--a500); font-weight: 800; }

.stat-lbl {
  font-size: .8rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .08em; color: rgba(255,255,255,.7); margin-top: .5rem;
}

/* ── About Section ────────────────────────────────────────────── */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
}

.about-img-wrap { position: relative; }

.about-img {
  width: 100%; height: 520px; object-fit: cover;
  border-radius: var(--radius-xl); box-shadow: var(--shadow-lg);
}

.about-img-placeholder {
  width: 100%; height: 520px; border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--g800), var(--g600));
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.4); font-size: 5rem;
  box-shadow: var(--shadow-lg);
}

.about-badge-card {
  position: absolute; bottom: -28px; right: -28px;
  background: var(--a500); color: var(--d900);
  border-radius: var(--radius-lg); padding: 22px 24px;
  text-align: center; box-shadow: var(--shadow-md);
}

.about-badge-num  { font-size: 2.6rem; font-weight: 800; line-height: 1; }
.about-badge-text { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-top: 2px; }

.about-features {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 14px; margin-top: 2rem;
}

.about-feat {
  display: flex; align-items: flex-start; gap: 10px;
}

.about-feat-icon {
  width: 34px; height: 34px; background: var(--g100);
  border-radius: 8px; display: flex; align-items: center;
  justify-content: center; color: var(--g700); flex-shrink: 0; margin-top: 1px;
}

.about-feat-text { font-size: .88rem; font-weight: 600; color: var(--d500); line-height: 1.4; }

/* ── Feature list ─────────────────────────────────────────────── */
.feat-list { display: flex; flex-direction: column; gap: 14px; margin: 2rem 0; }

.feat-item { display: flex; gap: 12px; align-items: flex-start; }

.feat-check {
  width: 22px; height: 22px; background: var(--g700); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white); flex-shrink: 0; margin-top: 2px;
}

.feat-text { color: var(--d500); line-height: 1.65; }
.feat-text strong { color: var(--d700); }

/* ── Projects Grid ────────────────────────────────────────────── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
}

.project-card {
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid var(--d200);
  transition: var(--ease); background: var(--white);
}

.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }

.project-img {
  width: 100%; height: 230px; object-fit: cover;
  background: linear-gradient(135deg, var(--g800), var(--g600));
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.4); font-size: 3rem;
}

.project-body { padding: 28px; }

.project-tag {
  display: inline-block; font-size: .72rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--g700); background: var(--g100);
  padding: 4px 12px; border-radius: 100px; margin-bottom: 12px;
}

.project-title { font-size: 1.1rem; font-weight: 700; margin-bottom: .6rem; }
.project-desc  { font-size: .88rem; color: var(--d500); line-height: 1.7; }

/* ── Clients images ───────────────────────────────────────────── */
.clients-img-wrap {
  display: flex; flex-direction: column; gap: 32px; margin-top: 3rem;
}
.clients-img {
  width: 100%; border-radius: var(--radius-lg);
  border: 1px solid var(--d200); background: #fafafa;
}

/* ── Clients ──────────────────────────────────────────────────── */
.clients-wrap {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 16px; margin-top: 3rem;
}

.client-box {
  background: var(--white); border: 1px solid var(--d200);
  border-radius: var(--radius-lg);
  aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  transition: var(--ease); user-select: none;
  text-decoration: none;
}

.client-box:hover {
  border-color: var(--g600); box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

/* Logo <img> real */
.client-logo {
  width: 75%; max-width: 100%; max-height: 65%;
  object-fit: contain;
  filter: grayscale(100%) opacity(.6);
  transition: filter var(--ease);
}

.client-box:hover .client-logo { filter: grayscale(0%) opacity(1); }

/* Logo SVG/div cuando no hay imagen */
.client-logo-badge {
  width: 60px; height: 44px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: .82rem; font-weight: 800; letter-spacing: -.01em;
  color: var(--white); flex-shrink: 0;
  filter: grayscale(80%) opacity(.7);
  transition: filter var(--ease);
}

.client-box:hover .client-logo-badge { filter: grayscale(0%) opacity(1); }

/* Nombre debajo */
.client-name {
  font-size: .78rem; font-weight: 700; color: var(--d400);
  line-height: 1.35; letter-spacing: .02em;
  transition: color var(--ease);
}

.client-box:hover .client-name { color: var(--g700); }

/* ── Testimonials ─────────────────────────────────────────────── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px; margin-top: 3rem;
}

.testi-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 32px; box-shadow: var(--shadow-sm); border: 1px solid var(--d200);
}

.testi-stars { color: var(--a500); display: flex; gap: 3px; margin-bottom: 1rem; }

.testi-text  { font-size: .92rem; color: var(--d500); line-height: 1.8; font-style: italic; margin-bottom: 1.5rem; }

.testi-author { display: flex; align-items: center; gap: 12px; }

.testi-avatar {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--g700); display: flex; align-items: center;
  justify-content: center; color: var(--white); font-weight: 700;
  font-size: 1.1rem; flex-shrink: 0;
}

.testi-name { font-weight: 700; font-size: .92rem; }
.testi-role { font-size: .78rem; color: var(--d400); }

/* ── Process Steps ────────────────────────────────────────────── */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0; position: relative;
}

.process-item {
  text-align: center; padding: 32px 20px; position: relative;
}

.process-item:not(:last-child)::after {
  content: ''; position: absolute; top: 46px; right: -14px;
  width: 28px; height: 2px; background: var(--g600); z-index: 1;
}

.process-num {
  width: 60px; height: 60px; background: var(--g700); color: var(--white);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; font-weight: 800; margin: 0 auto 1.25rem;
  box-shadow: 0 4px 16px rgba(56,142,60,.3);
}

.process-title { font-size: 1rem; font-weight: 700; margin-bottom: .5rem; }
.process-desc  { font-size: .87rem; color: var(--d500); line-height: 1.65; }

/* ── Contact ──────────────────────────────────────────────────── */
.contact-grid {
  display: grid; grid-template-columns: 2fr 3fr;
  gap: 60px; align-items: start;
}

.contact-info-list { display: flex; flex-direction: column; gap: 24px; margin-top: 1.5rem; }

.contact-info-item { display: flex; gap: 16px; align-items: flex-start; }

.contact-info-icon {
  width: 48px; height: 48px; background: var(--g100);
  border-radius: 12px; display: flex; align-items: center;
  justify-content: center; color: var(--g700); flex-shrink: 0;
}

.contact-info-lbl  { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--d400); margin-bottom: 4px; }
.contact-info-val  { color: var(--d700); font-weight: 500; line-height: 1.5; }
.contact-info-val a { color: var(--g700); }
.contact-info-val a:hover { text-decoration: underline; }

/* Form */
.contact-form-wrap {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 48px; box-shadow: var(--shadow-md); border: 1px solid var(--d200);
}

.form-group  { margin-bottom: 22px; }
.form-row    { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-label  { display: block; font-size: .85rem; font-weight: 600; color: var(--d500); margin-bottom: 7px; }

.form-control {
  width: 100%; padding: 13px 16px; border: 2px solid var(--d200);
  border-radius: var(--radius); font-size: .95rem; color: var(--d700);
  background: var(--white); transition: border-color var(--ease); outline: none;
}

.form-control:focus { border-color: var(--g600); }
.form-control::placeholder { color: var(--d300); }
textarea.form-control { min-height: 130px; resize: vertical; }

select.form-control {
  cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23757575' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 38px;
}

/* ── CTA Banner ───────────────────────────────────────────────── */
.cta-band {
  background: linear-gradient(135deg, var(--g900), var(--g800));
  padding: 96px 0; text-align: center; position: relative; overflow: hidden;
}

.cta-band::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 50%, rgba(255,193,7,.08) 0%, transparent 60%),
              radial-gradient(circle at 80% 50%, rgba(255,255,255,.04) 0%, transparent 60%);
}

.cta-content { position: relative; z-index: 1; }
.cta-title   { color: var(--white); margin-bottom: 1rem; }
.cta-title span { color: var(--a500); }
.cta-desc    { color: rgba(255,255,255,.8); font-size: 1.05rem; max-width: 520px; margin: 0 auto 2.5rem; line-height: 1.85; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── Accordion ────────────────────────────────────────────────── */
.accordion { display: flex; flex-direction: column; gap: 10px; margin-top: 2rem; }

.accordion-item { border: 1px solid var(--d200); border-radius: var(--radius); overflow: hidden; }

.accordion-trigger {
  width: 100%; background: none; border: none; padding: 20px 24px;
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer; font-size: 1rem; font-weight: 600; color: var(--d700);
  font-family: inherit; text-align: left; transition: background var(--ease);
}

.accordion-trigger:hover   { background: var(--d100); }
.accordion-trigger.active  { background: var(--g100); color: var(--g800); }

.acc-icon {
  width: 26px; height: 26px; border-radius: 50%; background: var(--d200);
  display: flex; align-items: center; justify-content: center;
  color: var(--d500); transition: var(--ease); flex-shrink: 0;
}

.accordion-trigger.active .acc-icon { background: var(--g700); color: var(--white); transform: rotate(45deg); }

.accordion-body {
  max-height: 0; overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
  padding: 0 24px;
}

.accordion-body.open { max-height: 600px; padding: 4px 24px 22px; }
.accordion-body p  { color: var(--d500); line-height: 1.8; font-size: .95rem; }
.accordion-body ul { margin-top: 8px; padding-left: 16px; list-style: disc; }
.accordion-body ul li { color: var(--d500); line-height: 1.8; font-size: .92rem; margin-bottom: 4px; }

/* ── Callout Box ──────────────────────────────────────────────── */
.callout {
  background: var(--g50); border: 1px solid rgba(56,142,60,.25);
  border-left: 4px solid var(--g700); border-radius: var(--radius);
  padding: 20px 24px; margin: 2rem 0;
}

.callout p { color: var(--d500); font-size: .95rem; line-height: 1.75; }
.callout strong { color: var(--g800); }

/* ── Two column content ───────────────────────────────────────── */
.two-col {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
}

.two-col-img {
  width: 100%; height: 440px; object-fit: cover;
  border-radius: var(--radius-xl); box-shadow: var(--shadow-lg);
}

.two-col-img-placeholder {
  width: 100%; height: 440px; border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--g800), var(--g600));
  box-shadow: var(--shadow-lg); display: flex; align-items: center;
  justify-content: center; color: rgba(255,255,255,.3); font-size: 4rem;
}

/* ── Icon with text row ───────────────────────────────────────── */
.icon-rows { display: flex; flex-direction: column; gap: 20px; }

.icon-row  { display: flex; gap: 16px; align-items: flex-start; }

.icon-row-icon {
  width: 48px; height: 48px; background: var(--g100); border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--g700); flex-shrink: 0;
}

.icon-row-title { font-weight: 700; font-size: .95rem; margin-bottom: 4px; }
.icon-row-desc  { font-size: .88rem; color: var(--d500); line-height: 1.65; }

/* ── Alert / notice ───────────────────────────────────────────── */
.notice {
  background: var(--a100); border: 1px solid rgba(255,193,7,.4);
  border-radius: var(--radius); padding: 18px 22px;
  display: flex; gap: 14px; align-items: flex-start;
}

.notice-icon { color: var(--a600); flex-shrink: 0; margin-top: 1px; }
.notice p    { color: var(--d700); font-size: .9rem; line-height: 1.7; }

/* ── Scroll animations ────────────────────────────────────────── */
.fade-in {
  opacity: 0; transform: translateY(28px);
  transition: opacity .65s ease, transform .65s ease;
}

.fade-in.visible { opacity: 1; transform: translateY(0); }

.fade-in-d1 { transition-delay: .1s; }
.fade-in-d2 { transition-delay: .2s; }
.fade-in-d3 { transition-delay: .3s; }
.fade-in-d4 { transition-delay: .4s; }

/* ── Back to top ──────────────────────────────────────────────── */
.back-top {
  position: fixed; bottom: 30px; right: 30px; z-index: 990;
  width: 42px; height: 42px; background: var(--g700); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white); box-shadow: var(--shadow-md);
  transition: var(--ease); opacity: 0; pointer-events: none;
}

.back-top.show { opacity: 1; pointer-events: all; }
.back-top:hover { background: var(--g800); transform: translateY(-3px); }

/* ── Footer ───────────────────────────────────────────────────── */
.footer {
  background: var(--d900); color: rgba(255,255,255,.75);
  padding: 80px 0 0;
}

.footer-grid {
  display: grid; grid-template-columns: 2.2fr 1fr 1fr 1.3fr;
  gap: 48px; padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.footer-brand-name {
  font-size: 1.2rem; font-weight: 800; color: var(--white);
  margin-bottom: .4rem;
}

.footer-brand-div {
  font-size: .75rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--a500); margin-bottom: 1rem;
}

.footer-brand-desc {
  font-size: .88rem; line-height: 1.75; color: var(--a500);
  margin-bottom: 1.5rem;
}

.footer-brand-logos {
  margin-bottom: 1.5rem;
}

.footer-logo-full {
  height: 60px;
  width: auto;
}

.footer-social { display: flex; gap: 10px; }

.social-btn {
  width: 38px; height: 38px; background: rgba(255,255,255,.07);
  border-radius: 8px; display: flex; align-items: center;
  justify-content: center; color: rgba(255,255,255,.65); transition: var(--ease);
}

.social-btn:hover { background: var(--g700); color: var(--white); }

.footer-col-title {
  font-size: .78rem; font-weight: 700; color: var(--white);
  text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1.25rem;
}

.footer-links { display: flex; flex-direction: column; gap: 10px; }

.footer-link {
  font-size: .88rem; color: rgba(255,255,255,.55); transition: var(--ease);
  display: flex; align-items: center; gap: 6px;
}

.footer-link:hover { color: var(--a500); padding-left: 4px; }

.footer-contact-item {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: .85rem; color: rgba(255,255,255,.55);
  margin-bottom: 12px; line-height: 1.55;
}

.footer-contact-item svg { flex-shrink: 0; margin-top: 2px; opacity: .7; }

.footer-contact-item a { color: rgba(255,255,255,.75); }
.footer-contact-item a:hover { color: var(--a500); }

.footer-bottom {
  padding: 24px 0; display: flex; align-items: center;
  justify-content: space-between; font-size: .82rem;
  color: rgba(255,255,255,.35); flex-wrap: wrap; gap: 12px;
}

.footer-bottom a { color: rgba(255,255,255,.5); }
.footer-bottom a:hover { color: var(--a500); }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .about-grid, .two-col   { grid-template-columns: 1fr; gap: 48px; }
  .contact-grid           { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid            { grid-template-columns: 1fr 1fr; gap: 36px; }
  .about-img-wrap         { display: none; }
  .about-badge-card       { display: none; }
}

@media (max-width: 768px) {
  .section   { padding: 68px 0; }
  .section-sm { padding: 44px 0; }

  /* Mobile nav */
  .nav-inner {
    width: 100%;
    padding: 5px 18px;
  }

  .nav-logo-img {
    max-width: calc(100vw - 110px);
  }

  .nav-menu {
    display: none;
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    bottom: auto;
    width: 100vw;
    height: calc(100vh - 68px);
    height: calc(100dvh - 68px);
    background: #007135; flex-direction: column;
    align-items: flex-start; padding: 28px 22px 24px;
    overflow-y: auto; z-index: 1001; gap: 2px;
  }

  .nav-menu.open  { display: flex; }
  .nav-item       { width: 100%; }

  body.mobile-menu-open .back-top {
    display: none;
  }

  .nav-link {
    font-size: 1.05rem; padding: 12px 16px;
    color: var(--white) !important; width: 100%;
  }

  .nav-link:hover, .nav-link.active {
    background: rgba(255,255,255,.1) !important; color: var(--a500) !important;
  }

  .nav-dropdown {
    position: static; opacity: 1; visibility: visible;
    transform: none; box-shadow: none; background: rgba(255,255,255,.04);
    border: none; padding: 4px; margin-top: 4px;
    display: none; border-radius: var(--radius);
  }

  .nav-item.open .nav-dropdown { display: block; }

  .dd-item { color: rgba(255,255,255,.75); }
  .dd-item:hover { background: rgba(255,255,255,.1); color: var(--a500); }
  .dd-text strong { color: rgba(255,255,255,.9); }
  .dd-text span { color: rgba(255,255,255,.68); }

  .nav-cta-btn { margin: 16px 0 0; width: 100%; justify-content: center; }
  .nav-hamburger { display: flex; }

  /* Hero */
  .hero        { padding: 120px 0 64px; min-height: auto; }
  .hero-visual { display: none; }
  .hero-content { max-width: 100%; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { justify-content: center; }
  .hero-stats  {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 24px 20px;
  }

  /* Stats band */
  .stats-flex { flex-direction: column; }
  .stat-cell  { width: 100%; }
  .stat-cell:not(:last-child)::after { display: none; }

  /* About */
  .about-features { grid-template-columns: 1fr; }

  /* Cards */
  .cards-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }

  /* Process */
  .process-grid { grid-template-columns: 1fr 1fr; }
  .process-item:not(:last-child)::after { display: none; }

  /* Form */
  .form-row { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 28px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  /* Two col */
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .two-col-img, .two-col-img-placeholder { display: none; }

  /* Page hero */
  .page-hero { padding: 130px 0 60px; }

  .clients-wrap { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 480px) {
  .process-grid { grid-template-columns: 1fr; }
  .clients-wrap { grid-template-columns: repeat(3, 1fr); }
  .hero-stats   { gap: 20px; }
  .hero-stat-number { font-size: 1.8rem; }
}

/* ── Trust Band ───────────────────────────────────────────────── */
.trust-band {
  background: var(--white);
  border-top: 1px solid var(--d200);
  border-bottom: 1px solid var(--d200);
  padding: 20px 0;
}

.trust-inner {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}

.trust-label {
  font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: var(--d400); white-space: nowrap;
  flex-shrink: 0;
}

.trust-items {
  display: flex; align-items: center; gap: 0; flex-wrap: wrap; flex: 1;
}

.trust-item {
  display: flex; align-items: center; gap: 8px;
  font-size: .82rem; font-weight: 600; color: var(--d500);
  padding: 8px 20px; white-space: nowrap;
}

.trust-item svg { color: var(--g700); flex-shrink: 0; }

.trust-sep {
  width: 1px; height: 24px; background: var(--d200); flex-shrink: 0;
}

@media (max-width: 768px) {
  .trust-band { display: none; }
}

/* ── Focus states (keyboard nav) ──────────────────────────────── */
:focus-visible {
  outline: 3px solid var(--a500);
  outline-offset: 3px;
  border-radius: 4px;
}

.btn:focus-visible,
.nav-link:focus-visible,
.dd-item:focus-visible,
.footer-link:focus-visible,
.social-btn:focus-visible,
.client-box:focus-visible {
  outline: 3px solid var(--a500);
  outline-offset: 2px;
}

/* ── Cursor pointer en elementos clicables ────────────────────── */
.service-card[onclick],
.project-card,
.client-box,
.accordion-trigger,
.back-top,
.social-btn {
  cursor: pointer;
}

/* ── Prefers reduced motion ───────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .fade-in { opacity: 1; transform: none; }
  .hero-badge-dot { animation: none; }
}

/* ══════════════════════════════════════════════════════════════
   PROYECTO DETALLE
══════════════════════════════════════════════════════════════ */

/* ── Hero del proyecto ─────────────────────── */
.pd-hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.pd-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.pd-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.72) 0%, rgba(0,0,0,.25) 55%, rgba(0,0,0,.35) 100%);
}

.pd-hero-content {
  position: relative;
  z-index: 1;
  padding-top: 110px;
  padding-bottom: 3.5rem;
}

.pd-client-badge {
  display: inline-block;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.25);
  color: white;
  padding: 5px 16px;
  border-radius: 20px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.pd-hero-title {
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  color: white;
  font-weight: 800;
  line-height: 1.2;
  max-width: 800px;
}

/* ── Info card ─────────────────────── */
.pd-desc-grid { align-items: flex-start; }

.pd-info-card {
  background: var(--g100);
  border: 1px solid rgba(56,142,60,.18);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.pd-info-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  color: var(--g700);
}

.pd-info-label {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--d400);
  margin-bottom: 2px;
}

.pd-info-val {
  font-size: .95rem;
  font-weight: 600;
  color: var(--d700);
}

/* ── Galería ─────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-top: .5rem;
}

.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  position: relative;
  background: var(--d200);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s var(--ease);
  display: block;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: background .3s;
  opacity: 0;
}

.gallery-item:hover .gallery-item-overlay {
  background: rgba(0,0,0,.35);
  opacity: 1;
}

/* ── Lightbox ─────────────────────── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.93);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.lightbox.active { display: flex; }

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius-md);
  object-fit: contain;
  box-shadow: 0 8px 40px rgba(0,0,0,.5);
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,.15);
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}

.lightbox-close:hover { background: rgba(255,255,255,.3); }

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  background: rgba(255,255,255,.15);
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}

.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255,255,255,.3); }

.lightbox-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.7);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .05em;
}

@media (max-width: 600px) {
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .pd-hero { min-height: 340px; }
}

/* ── Project card clickeable ─────────────────────── */
a.project-card {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* ── Proyecto detalle: layout descripción + mapa ─── */
.pd-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 860px) {
  .pd-layout { grid-template-columns: 1fr; gap: 32px; }
}

/* ── Fila superior: info + imagen principal ─────── */
.pd-top-row {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 3.5rem;
}

/* ── Imagen principal del proyecto ──────────────── */
.pd-main-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 10;
  background: var(--d200);
}

.pd-main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Fila inferior: mapa + galería ──────────────── */
.pd-bottom-row {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 48px;
  align-items: start;
}

.pd-bottom-row.no-map {
  grid-template-columns: 1fr;
}

@media (max-width: 860px) {
  .pd-top-row,
  .pd-bottom-row {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .pd-top-row { margin-bottom: 2rem; }
}

/* ── Más proyectos: carrusel horizontal ─────────── */
.more-proj-slider {
  display: flex;
  align-items: center;
  gap: 12px;
}

.more-proj-arrow {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--d200);
  background: var(--white);
  color: var(--d700);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--ease), border-color var(--ease), color var(--ease), box-shadow var(--ease);
  box-shadow: var(--shadow-sm);
}

.more-proj-arrow:hover {
  background: #007135;
  border-color: #007135;
  color: white;
  box-shadow: var(--shadow-md);
}

.more-projects-track-wrap {
  flex: 1;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 8px 0 16px;
}

.more-projects-track-wrap::-webkit-scrollbar { display: none; }

.more-projects-track-wrap::-webkit-scrollbar { height: 4px; }
.more-projects-track-wrap::-webkit-scrollbar-track { background: transparent; }
.more-projects-track-wrap::-webkit-scrollbar-thumb { background: var(--d200); border-radius: 2px; }

.more-projects-track {
  display: flex;
  gap: 20px;
  width: max-content;
}

.more-proj-card {
  width: 280px;
  flex-shrink: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--d200);
  text-decoration: none;
  color: inherit;
  transition: box-shadow var(--ease), transform var(--ease);
}

.more-proj-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.more-proj-img {
  width: 100%;
  height: 170px;
  overflow: hidden;
  background: var(--d200);
}

.more-proj-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s var(--ease);
  display: block;
}

.more-proj-card:hover .more-proj-img img { transform: scale(1.05); }

.more-proj-body {
  padding: 16px 18px 18px;
}

.more-proj-client {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--g700);
  margin-bottom: 5px;
}

.more-proj-title {
  font-size: .9rem;
  font-weight: 700;
  color: var(--d700);
  line-height: 1.3;
}

/* ── Asistente de contacto (lead bot) ─────────────────────────── */
.lead-bot {
  max-width: 620px; margin: 0 auto;
  background: var(--white); border: 1px solid var(--d200);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
  overflow: hidden;
}

.lead-bot-head {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 22px; background: var(--g700); color: var(--white);
}

.lead-bot-avatar {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  background: rgba(255,255,255,.18);
  display: flex; align-items: center; justify-content: center;
}

.lead-bot-name   { font-weight: 700; font-size: .95rem; line-height: 1.2; }
.lead-bot-status { font-size: .78rem; opacity: .85; display: flex; align-items: center; gap: 6px; }
.lead-bot-status::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: #7bed9f; flex-shrink: 0;
}

.lead-bot-thread {
  padding: 24px 22px 8px; display: flex; flex-direction: column; gap: 12px;
  max-height: 320px; overflow-y: auto; background: var(--d100);
}

.lead-bot-bubble {
  max-width: 85%; flex: 0 0 auto; padding: 12px 16px; font-size: .92rem; line-height: 1.55;
  border-radius: var(--radius); animation: leadBotIn .25s ease;
}

.lead-bot-bubble-bot {
  align-self: flex-start; background: var(--white); color: var(--d700);
  border-bottom-left-radius: 3px; box-shadow: var(--shadow-sm);
}

.lead-bot-bubble-bot a { color: var(--g700); font-weight: 600; text-decoration: underline; }

.lead-bot-bubble-user {
  align-self: flex-end; background: var(--g700); color: var(--white);
  border-bottom-right-radius: 3px; font-weight: 500;
}

@keyframes leadBotIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

.lead-bot-actions {
  padding: 18px 22px 22px; display: flex; flex-direction: column; gap: 9px;
  border-top: 1px solid var(--d200);
}

.lead-bot-opt {
  width: 100%; text-align: left; padding: 13px 16px; font-size: .9rem;
  font-weight: 600; color: var(--d700); background: var(--white);
  border: 2px solid var(--d200); border-radius: var(--radius);
  transition: var(--ease);
}

.lead-bot-opt:hover {
  border-color: var(--g700); background: var(--g100); color: var(--g900);
  transform: translateX(3px);
}

.lead-bot-form { display: flex; flex-direction: column; gap: 10px; }

.lead-bot-input {
  width: 100%; padding: 13px 16px; font-size: .92rem; color: var(--d700);
  background: var(--white); border: 2px solid var(--d200);
  border-radius: var(--radius); outline: none;
  transition: border-color var(--ease);
}

.lead-bot-input:focus { border-color: var(--g700); }

.lead-bot-error { font-size: .82rem; color: #c62828; margin: -2px 0 0; min-height: 1em; }

.lead-bot-cta { width: 100%; justify-content: center; padding: 15px 24px; }

.lead-bot-send {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 16px 24px; font-size: 1rem; font-weight: 700;
  color: var(--white); background: var(--g600); border-radius: var(--radius);
  box-shadow: 0 4px 18px rgba(56,142,60,.4); transition: var(--ease);
}

.lead-bot-send:hover { background: var(--g700); transform: translateY(-2px); box-shadow: 0 8px 26px rgba(56,142,60,.5); }

.lead-bot-back {
  align-self: center; background: none; border: none; padding: 6px;
  font-size: .84rem; font-weight: 600; color: var(--d400);
  transition: color var(--ease);
}

.lead-bot-back:hover { color: var(--g700); text-decoration: underline; }

.lead-bot.is-unlocked .lead-bot-head { background: var(--g600); }

.lead-bot-opt,
.lead-bot-back,
.lead-bot-send { cursor: pointer; }

@media (max-width: 768px) {
  .lead-bot-thread  { max-height: 260px; padding: 18px 16px 6px; }
  .lead-bot-actions { padding: 14px 16px 18px; }
  .lead-bot-head    { padding: 14px 16px; }
  .lead-bot-bubble  { max-width: 92%; }
}

/* ── Asistente: campo de texto libre y cierre por correo ──────── */
.lead-bot-textarea {
  resize: vertical; min-height: 84px; font-family: inherit; line-height: 1.55;
}

.lead-bot-mail {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 20px; text-align: center;
  background: var(--d100); border: 2px dashed var(--d200);
  border-radius: var(--radius);
}

.lead-bot-mail-lbl {
  font-size: .75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .09em; color: var(--d400);
}

.lead-bot-mail-addr {
  font-size: 1.02rem; font-weight: 700; color: var(--d900);
  word-break: break-all; user-select: all;
}

.lead-bot-mail-copy {
  margin-top: 6px; padding: 8px 18px; font-size: .84rem; font-weight: 600;
  color: var(--g700); background: var(--white);
  border: 2px solid var(--d200); border-radius: var(--radius);
  cursor: pointer; transition: var(--ease);
}

.lead-bot-mail-copy:hover { border-color: var(--g700); background: var(--g100); }

.lead-bot.is-closed .lead-bot-head { background: var(--d500); }
.lead-bot.is-closed .lead-bot-status::before { background: var(--d300); }

/* ── Asistente flotante ───────────────────────────────────────── */
.lead-bot-fab {
  position: fixed; bottom: 30px; right: 30px; z-index: 995;
  width: 60px; height: 60px; border: none; border-radius: 50%;
  background: var(--g700); color: var(--white); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 24px rgba(56,142,60,.45);
  transition: var(--ease);
}

.lead-bot-fab:hover { background: var(--g800); transform: scale(1.07); box-shadow: 0 10px 32px rgba(56,142,60,.55); }

.lead-bot-fab-ico { position: absolute; transition: opacity .2s ease, transform .2s ease; }
.lead-bot-fab-x            { opacity: 0; transform: rotate(-90deg) scale(.6); }
.lead-bot-fab.is-open .lead-bot-fab-chat { opacity: 0; transform: rotate(90deg) scale(.6); }
.lead-bot-fab.is-open .lead-bot-fab-x    { opacity: 1; transform: none; }

.lead-bot-panel {
  position: fixed; bottom: 104px; right: 30px; z-index: 996;
  width: 380px; height: min(560px, calc(100vh - 160px));
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(14px) scale(.97); transform-origin: bottom right;
  transition: opacity .22s ease, transform .22s ease, visibility .22s;
}

/* al retomar entre paginas aparece ya abierto, sin animacion */
.lead-bot-panel.is-instant { transition: none; }

.lead-bot-panel.is-open {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: none;
}

.lead-bot-panel .lead-bot {
  max-width: none; height: 100%;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-lg);
}

/* las burbujas se apoyan abajo, como en cualquier chat.
   El empuje va por margen automatico y no por justify-content: flex-end,
   que en un contenedor con scroll deja las primeras burbujas fuera de alcance. */
.lead-bot-panel .lead-bot-thread {
  max-height: none; flex: 1 1 auto; min-height: 90px;
}

.lead-bot-panel .lead-bot-bubble:first-child { margin-top: auto; }

.lead-bot-panel .lead-bot-actions { flex: 0 0 auto; max-height: 60%; overflow-y: auto; }

/* el boton de volver arriba sube para no pisar el lanzador,
   y se esconde mientras el panel esta abierto */
.has-bot-fab .back-top { bottom: 104px; right: 39px; }
.bot-open .back-top    { opacity: 0; pointer-events: none; }

@media (max-width: 768px) {
  .lead-bot-fab   { bottom: 20px; right: 20px; width: 54px; height: 54px; }
  .lead-bot-panel {
    bottom: 86px; right: 16px; left: 16px;
    width: auto; height: min(520px, calc(100vh - 130px));
  }
  .has-bot-fab .back-top { bottom: 86px; right: 28px; }

  body.mobile-menu-open .lead-bot-fab,
  body.mobile-menu-open .lead-bot-panel { display: none; }
}

/* ── Asistente incrustado: layout de dos columnas en desktop ───── */
.lead-bot-layout {
  display: grid;
  grid-template-columns: 1fr 480px;
  grid-template-areas: "intro card" "note card";
  grid-template-rows: auto auto;
  column-gap: 64px; row-gap: 0;
  align-items: center;
}

.lead-bot-intro      { grid-area: intro; align-self: end; }
.lead-bot-intro-note { grid-area: note;  align-self: start; }

.lead-bot-intro .divider { margin-left: 0; }

.lead-bot-intro-desc {
  color: var(--d500); font-size: 1.05rem; line-height: 1.85; margin-top: 1.25rem;
}

.lead-bot-points {
  list-style: none; margin: 2rem 0 0; padding: 0;
  display: flex; flex-direction: column; gap: 16px;
}

.lead-bot-points li {
  display: flex; gap: 12px; align-items: flex-start;
  color: var(--d500); font-size: .95rem; line-height: 1.65;
}

.lead-bot-points svg {
  flex-shrink: 0; margin-top: 3px;
  color: var(--g700);
}

.lead-bot-points strong { color: var(--d700); font-weight: 700; }

.lead-bot-intro-note {
  margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--d200);
  color: var(--d400); font-size: .88rem; line-height: 1.6;
}

/* la tarjeta ocupa la columna entera y ya no se centra sola */
.lead-bot-layout .lead-bot { grid-area: card; max-width: none; margin: 0; }

@media (max-width: 1080px) {
  .lead-bot-layout { grid-template-columns: 1fr 420px; column-gap: 44px; }
}

@media (max-width: 940px) {
  .lead-bot-layout {
    grid-template-columns: 1fr;
    grid-template-areas: "intro" "card" "note";
    grid-template-rows: auto auto auto;
    row-gap: 40px;
  }
  .lead-bot-intro, .lead-bot-intro-note { align-self: auto; }
  .lead-bot-intro-note { margin-top: 0; padding-top: 0; border-top: none; text-align: center; }
  .lead-bot-intro  { text-align: center; max-width: 620px; margin: 0 auto; }
  .lead-bot-intro .divider { margin-left: auto; }
  .lead-bot-points { text-align: left; max-width: 480px; margin-inline: auto; }
  .lead-bot-intro-note { max-width: 480px; margin-inline: auto; }
  .lead-bot-layout .lead-bot { max-width: 620px; margin: 0 auto; }
}
