/* ============================================
   SECTIONS - HENAT v2
   Estilos por sección
   ============================================ */

/* ── HERO ── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  background: var(--bg);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 15% 60%, rgba(11, 48, 41, 0.4) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 30%, rgba(11, 48, 41, 0.2) 0%, transparent 50%);
  z-index: 1;
  pointer-events: none;
}

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

.hero-content .badge {
  margin-bottom: var(--space-lg);
}

.hero h1 {
  font-size: clamp(3.6rem, 8.4vw, 6.6rem);
  margin-bottom: var(--space-lg);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.45);
}

.hero-title-line1 {
  display: block;
  font-weight: 400;
  color: #ffffff;
}

.hero-title-line2 {
  display: block;
  font-weight: 900;
  color: var(--gold);
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: var(--space-xl);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}

.hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--bg) 20%, rgba(13, 13, 10, 0.85) 50%, rgba(13, 13, 10, 0.55) 100%);
}

.hero-glow {
  position: absolute;
  left: -15%;
  top: 10%;
  width: 50%;
  height: 90%;
  background: radial-gradient(ellipse, rgba(200, 164, 78, 0.08), transparent 70%);
  z-index: 1;
  pointer-events: none;
}

/* ── TRAYECTORIA ── */
.trayectoria-section {
  background: linear-gradient(135deg, #0c3d30 0%, #0f4e3e 40%, #12604c 100%);
  position: relative;
}

.trayectoria-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(18, 122, 94, 0.25) 0%, transparent 60%);
  pointer-events: none;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  align-items: stretch;
}

.stat-card {
  padding: 40px 32px;
  background: rgba(18, 122, 94, 0.06);
  border: 1px solid rgba(18, 122, 94, 0.25);
  border-radius: var(--radius-lg);
  transition: all var(--transition-slow);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 400px;
}

.stat-icon {
  color: var(--gold);
  margin-bottom: 20px;
  opacity: 1;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(200, 164, 78, 0.1);
  border-radius: var(--radius-md);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0;
  transition: opacity var(--transition-slow);
}

.stat-card:hover {
  transform: translateY(-5px);
  border-color: rgba(11, 48, 41, 0.3);
  background: rgba(11, 48, 41, 0.06);
}

.stat-card:hover::before {
  opacity: 1;
}

.stat-number {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.stat-suffix {
  font-size: 0.7em;
  font-weight: 600;
  color: var(--text-muted);
  margin-left: 2px;
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-md);
}

.stat-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
  flex: 1;
}

/* ── HISTORIA ── */
.history-section {
  background: var(--bg-light);
  color: var(--text-dark);
  position: relative;
  overflow: hidden;
  padding: 100px 0;
}

.history-bg-image {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 50%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.history-bg-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to left, transparent 0%, rgba(247, 243, 236, 0.1) 30%, rgba(247, 243, 236, 0.6) 70%, var(--bg-light) 100%);
  z-index: 1;
}

.history-bg-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
  opacity: 0.5;
  filter: sepia(0.1) saturate(0.9);
  transform: scale(1.25);
}

.history-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: transparent;
  pointer-events: none;
  z-index: 1;
}

.history-section .container {
  position: relative;
  z-index: 2;
}

.history-section .section-header {
  text-align: left;
  margin-bottom: 40px;
}

.history-section .section-header .badge {
  display: inline-block;
  margin-bottom: 16px;
}

.history-section .section-header h2 {
  text-align: left;
  margin-bottom: 16px;
}

.history-section .section-header p {
  text-align: left;
  max-width: 70%;
}

.history-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  max-width: 70%;
}

.history-card {
  padding: 24px 20px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-lg);
  position: relative;
  transition: all var(--transition-slow);
  min-height: 180px;
  display: flex;
  flex-direction: column;
}

.history-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0;
  transition: opacity var(--transition-slow);
}

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

.history-card:hover::before {
  opacity: 1;
}

.history-card h3 {
  font-size: 1.1rem;
  color: var(--text-dark);
  margin-bottom: 12px;
  line-height: 1.3;
}

.history-card p {
  color: var(--text-dark-muted);
  font-size: 0.85rem;
  line-height: 1.6;
  flex: 1;
}

.history-number {
  font-size: 3rem;
  font-weight: 900;
  color: var(--gold-deep);
  opacity: 0.95;
  line-height: 1;
  margin-bottom: 8px;
}

/* ── COBERTURA ── */
.cobertura-section {
  background: var(--bg);
  position: relative;
}

.cobertura-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

.cobertura-map-container {
  position: relative;
}

.cobertura-map {
  position: relative;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.cobertura-map object {
  width: 100%;
  height: auto;
  display: block;
}

.map-tooltip {
  position: absolute;
  background: rgba(11, 48, 41, 0.95);
  border: 1px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  color: var(--text);
  font-family: var(--font);
  font-size: 13px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 100;
  min-width: 150px;
}

.map-tooltip.visible {
  opacity: 1;
}

/* ── MAP LABELS (Líneas + Tags) ── */
.map-label {
  position: absolute;
  display: flex;
  z-index: 10;
  pointer-events: none;
  animation: labelFloat 3s ease-in-out infinite;
  animation-delay: var(--float-delay, 0s);
}

.map-label-line {
  display: block;
  position: relative;
  background: linear-gradient(rgba(200, 164, 78, 0.05), rgba(200, 164, 78, 0.6));
}

.map-label-line::after {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 6px rgba(200, 164, 78, 0.6);
}

.map-label-tag {
  display: inline-block;
  padding: 5px 12px;
  background: rgba(11, 48, 41, 0.95);
  border: 1px solid rgba(200, 164, 78, 0.4);
  border-radius: 4px;
  font-family: var(--font);
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--gold);
  white-space: nowrap;
  letter-spacing: 0.06em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

/* ── Direction: TOP (tag above, line goes down) ── */
.map-label--top {
  flex-direction: column;
  align-items: center;
  transform: translate(-50%, -100%);
}

.map-label--top .map-label-line {
  width: 1px;
  height: 70px;
  order: 1;
  background: linear-gradient(to bottom, rgba(200, 164, 78, 0.05), rgba(200, 164, 78, 0.6));
}

.map-label--top .map-label-line::after {
  bottom: -3px;
  left: 50%;
  transform: translateX(-50%);
}

.map-label--top .map-label-tag {
  order: 0;
}

/* ── Direction: RIGHT (tag to the right, line goes left) ── */
.map-label--right {
  flex-direction: row;
  align-items: center;
  transform: translate(0, -50%);
}

.map-label--right .map-label-line {
  width: 70px;
  height: 1px;
  order: 0;
  background: linear-gradient(to right, rgba(200, 164, 78, 0.6), rgba(200, 164, 78, 0.05));
}

.map-label--right .map-label-line::after {
  left: -3px;
  top: 50%;
  transform: translateY(-50%);
}

.map-label--right .map-label-tag {
  order: 1;
}

/* ── Direction: LEFT (tag to the left, line goes right) ── */
.map-label--left {
  flex-direction: row-reverse;
  align-items: center;
  transform: translate(-100%, -50%);
}

.map-label--left .map-label-line {
  width: 70px;
  height: 1px;
  order: 0;
  background: linear-gradient(to left, rgba(200, 164, 78, 0.6), rgba(200, 164, 78, 0.05));
}

.map-label--left .map-label-line::after {
  right: -3px;
  top: 50%;
  transform: translateY(-50%);
}

.map-label--left .map-label-tag {
  order: 1;
}

/* ── Direction: BOTTOM (tag below, line goes up) ── */
.map-label--bottom {
  flex-direction: column;
  align-items: center;
  transform: translate(-50%, 0);
}

.map-label--bottom .map-label-line {
  width: 1px;
  height: 70px;
  order: 0;
  background: linear-gradient(to top, rgba(200, 164, 78, 0.6), rgba(200, 164, 78, 0.05));
}

.map-label--bottom .map-label-line::after {
  top: -3px;
  left: 50%;
  transform: translateX(-50%);
}

.map-label--bottom .map-label-tag {
  order: 1;
}

/* ── Direction: BOTTOM-LEFT (tag down-left, diagonal) ── */
.map-label--bottom-left {
  display: block;
  width: 0;
  height: 0;
}

.map-label--bottom-left .map-label-line {
  display: none;
}

.map-label--bottom-left::before {
  content: '';
  position: absolute;
  width: 1px;
  height: 124px;
  background: linear-gradient(to bottom, rgba(200, 164, 78, 0.08), rgba(200, 164, 78, 0.6));
  top: 0;
  left: 0;
  transform-origin: top center;
  transform: rotate(104deg);
}

.map-label--bottom-left::after {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 6px rgba(200, 164, 78, 0.6);
  top: -3px;
  left: -3px;
}

.map-label--bottom-left .map-label-tag {
  position: absolute;
  top: -30px;
  left: -120px;
}

/* ── Direction: BOTTOM-RIGHT (tag down-right, diagonal) ── */
.map-label--bottom-right {
  display: block;
  width: 0;
  height: 0;
}

.map-label--bottom-right .map-label-line {
  display: none;
}

.map-label--bottom-right::before {
  content: '';
  position: absolute;
  width: 1px;
  height: 100px;
  background: linear-gradient(to bottom, rgba(200, 164, 78, 0.08), rgba(200, 164, 78, 0.6));
  top: 0;
  left: 0;
  transform-origin: top center;
  transform: rotate(-35deg);
}

.map-label--bottom-right::after {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 6px rgba(200, 164, 78, 0.6);
  top: -3px;
  left: -3px;
}

.map-label--bottom-right .map-label-tag {
  position: absolute;
  top: 82px;
  left: -10px;
}

/* ── Animations per direction ── */
@keyframes labelFloat {

  0%,
  100% {
    transform: translate(var(--tx, -50%), var(--ty, -100%)) translateY(0);
  }

  50% {
    transform: translate(var(--tx, -50%), var(--ty, -100%)) translateY(-5px);
  }
}

.map-label--top {
  --tx: -50%;
  --ty: -100%;
}

.map-label--right {
  --tx: 0;
  --ty: -50%;
}

.map-label--left {
  --tx: -100%;
  --ty: -50%;
}

.map-label--bottom {
  --tx: -50%;
  --ty: 0;
}

.map-label--bottom-left {
  --tx: 0;
  --ty: 0;
}

.map-label--bottom-right {
  --tx: -100%;
  --ty: 0;
}

.tooltip-title {
  display: block;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 4px;
}

.tooltip-projects {
  color: var(--text-muted);
  font-size: 12px;
}

/* Estilos para pins antiguos (mantener compatibilidad) */
.map-pin {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transform: translate(-50%, -50%);
}

.pin-dot {
  width: 12px;
  height: 12px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(200, 164, 78, 0.3);
  animation: pinPulse 2s infinite;
}

.pin-dot::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

@keyframes pinPulse {

  0%,
  100% {
    box-shadow: 0 0 0 4px rgba(200, 164, 78, 0.3);
  }

  50% {
    box-shadow: 0 0 0 8px rgba(200, 164, 78, 0.15);
  }
}

.pin-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 6px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
}

.map-pin:hover .pin-dot {
  animation: none;
  transform: scale(1.3);
  box-shadow: 0 0 0 6px rgba(200, 164, 78, 0.5);
}

.map-pin:hover .pin-label {
  color: var(--gold);
}

.cobertura-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(11, 48, 41, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

.cobertura-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-2xl);
  align-items: center;
}

.cobertura-map-container {
  position: relative;
}

.cobertura-map {
  position: relative;
  background: var(--bg-card);
  border: 2px solid rgba(11, 48, 41, 0.3);
  border-radius: var(--radius-xl);
  padding: 32px;
  overflow: hidden;
}

.cobertura-map img {
  width: 100%;
  height: auto;
  display: block;
}

.map-pin {
  position: absolute;
  cursor: pointer;
  z-index: 10;
}

.pin-dot {
  display: block;
  width: 12px;
  height: 12px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
  box-shadow: 0 0 0 4px rgba(11, 48, 41, 0.3);
}

.pin-label {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.map-pin:hover .pin-label {
  opacity: 1;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.2);
    opacity: 0.7;
  }
}

.cobertura-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.cobertura-main-card {
  padding: 24px;
  background: rgba(168, 136, 46, 0.1);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
}

.cobertura-zone-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.cobertura-main-card strong {
  display: block;
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 4px;
}

.cobertura-main-card span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.cobertura-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.cobertura-stat-box {
  padding: 20px 16px;
  background: rgba(168, 136, 46, 0.1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
}

.cobertura-stat-num {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 4px;
}

.cobertura-stat-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.cobertura-consult {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: transparent;
  border: 1px solid var(--text);
  border-radius: var(--radius-lg);
  color: var(--text);
  text-decoration: none;
  transition: all var(--transition-normal);
}

.cobertura-consult:hover {
  background: var(--text);
  color: var(--bg);
}

.cobertura-consult span:first-child {
  font-size: 0.85rem;
}

.cobertura-consult span:last-child {
  font-size: 1.2rem;
}

/* ── PORTFOLIO ── */
.portfolio-section {
  background: var(--bg-light);
  position: relative;
}

.portfolio-section .section-header h2 {
  color: var(--text-dark);
}

.portfolio-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to bottom, rgba(11, 48, 41, 0.03), transparent);
  pointer-events: none;
}

.portfolio-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: var(--space-lg);
}

.filter-btn {
  padding: 8px 20px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dark-muted);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-normal);
  background: transparent;
}

.filter-btn:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.filter-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  cursor: pointer;
  border: 1px solid var(--border-light);
  transition: all var(--transition-normal);
  aspect-ratio: 4/3;
  display: block;
  text-decoration: none;
}

.portfolio-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11, 48, 41, 0.1) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition-normal);
  pointer-events: none;
}

.portfolio-item:hover {
  border-color: rgba(11, 48, 41, 0.3);
  transform: scale(1.02);
}

.portfolio-item:hover::after {
  opacity: 1;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s ease;
}

.portfolio-item:hover img {
  transform: scale(1.08);
}

.portfolio-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 16px 16px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
  color: #fff;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.portfolio-item:hover .portfolio-info {
  transform: translateY(0);
}

.portfolio-info h4 {
  font-size: 0.9rem;
  margin-bottom: 4px;
  color: #fff;
}

.portfolio-info span {
  font-size: 0.75rem;
  color: var(--gold);
  font-weight: 600;
}

/* ── VER TODAS ── */
.portfolio-see-all {
  text-align: center;
  margin-top: var(--space-lg);
  display: none;
}

.btn-see-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  background: transparent;
  border: 2px solid var(--primary);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-normal);
}

.btn-see-all:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(11, 48, 41, 0.25);
}

/* ── SISTEMAS ── */
.sistemas-section {
  background: var(--bg-light);
  position: relative;
}

.sistemas-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11, 48, 41, 0.02) 0%, transparent 50%);
  pointer-events: none;
}

.sistemas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.sistema-card {
  background: var(--bg-card-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-slow);
}

.sistema-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.sistema-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--gold));
}

.sistema-visual {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.sistema-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.sistema-card:hover .sistema-visual img {
  transform: scale(1.1);
}

.sistema-body {
  padding: 28px;
}

.system-num {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--gold);
  background: rgba(200, 164, 78, 0.12);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.sistema-body h3 {
  font-size: 1.4rem;
  color: var(--text-dark);
  margin-bottom: 12px;
  line-height: 1.2;
}

.sistema-body p {
  color: var(--text-dark-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.sistema-body ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sistema-body li {
  position: relative;
  padding-left: 16px;
  font-size: 0.85rem;
  color: var(--text-dark-muted);
  line-height: 1.6;
  margin-bottom: 6px;
}

.sistema-body li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* ── CAPAS (Cross-section) ── */
.capas-section {
  padding: 0;
  background: var(--bg);
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.capas-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(11, 48, 41, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.capas-split {
  display: grid;
  grid-template-columns: 400px 1fr;
  min-height: 100vh;
}

.capas-left {
  background: var(--bg);
  padding: 60px 40px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border);
  position: relative;
  z-index: 2;
}

.capas-intro {
  margin-bottom: 40px;
}

.capas-intro .badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(200, 164, 78, 0.15);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.capas-intro h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.15;
}

.capas-intro p {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.7;
}

.cross-diagram {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.cross-layer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.cross-layer:hover {
  background: rgba(11, 48, 41, 0.05);
}

.cross-layer.active {
  background: var(--primary);
  border-color: var(--primary);
}

.cross-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.cross-layer.active .cross-label {
  color: #fff;
}

.cross-num {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cross-layer.active .cross-num {
  color: rgba(255,255,255,0.7);
}

.cross-active-marker {
  display: none;
}

.capas-right {
  position: relative;
  min-height: 100vh;
}

.layer-section {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.layer-section.active {
  opacity: 1;
  visibility: visible;
}

.layer-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.layer-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.layer-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(13,13,10,0.85) 0%, rgba(13,13,10,0.5) 50%, rgba(13,13,10,0.3) 100%);
  z-index: 1;
}

.layer-content {
  position: relative;
  z-index: 2;
  padding: 80px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.layer-mobile-img {
  display: none;
}

.layer-tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  display: block;
}

.layer-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 20px;
  line-height: 1.15;
}

.layer-desc {
  font-size: 1rem;
  color: #e0d8cc;
  line-height: 1.7;
  max-width: 550px;
  margin-bottom: 30px;
}

.layer-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: transparent;
  border: 1px solid rgba(200, 164, 78, 0.4);
  border-radius: var(--radius-full);
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  align-self: flex-start;
}

.layer-toggle-btn:hover {
  background: rgba(200, 164, 78, 0.15);
  border-color: var(--gold);
}

.layer-expandable {
  display: none;
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid rgba(200, 164, 78, 0.2);
}

.layer-expandable.open {
  display: block;
}

.layer-features {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.layer-features li {
  font-size: 0.9rem;
  color: #d0c8bc;
  line-height: 1.6;
  padding-left: 24px;
  position: relative;
}

.layer-features li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}

.layer-value {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: rgba(200, 164, 78, 0.08);
  border: 1px solid rgba(200, 164, 78, 0.2);
  border-radius: var(--radius-lg);
}

.value-badge {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--primary);
  background: var(--gold);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

.layer-value p {
  font-size: 0.85rem;
  color: #d0c8bc;
  line-height: 1.6;
  margin: 0;
}

/* ── INNOVACIÓN ── */
.innovacion-section {
  background: var(--bg);
  position: relative;
}

.innovacion-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11, 48, 41, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.innovacion-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.innovacion-layout .frame {
  min-height: 500px;
  height: 100%;
}

.innovacion-layout .frame img {
  aspect-ratio: unset;
  height: 100%;
  object-fit: cover;
}

.innovacion-content {
  max-width: 100%;
}

.innovacion-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.innovacion-feature {
  display: flex;
  gap: 20px;
  padding: 20px;
  background: rgba(11, 48, 41, 0.05);
  border: 1px solid rgba(11, 48, 41, 0.15);
  border-radius: var(--radius-lg);
  transition: all var(--transition-normal);
}

.innovacion-feature:hover {
  border-color: rgba(11, 48, 41, 0.3);
  background: rgba(11, 48, 41, 0.08);
  transform: translateX(4px);
}

.innovacion-feature>span {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold);
  background: rgba(200, 164, 78, 0.15);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

.innovacion-feature h4 {
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.3;
}

.innovacion-feature p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* ── BENEFICIOS ── */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.benefit-card {
  padding: 32px;
  background: var(--bg-card-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  position: relative;
  transition: all var(--transition-slow);
}

.benefit-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0;
  transition: opacity var(--transition-slow);
}

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

.benefit-card:hover::before {
  opacity: 1;
}

.benefit-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(11, 48, 41, 0.12);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  color: var(--primary);
}

.benefit-card h3 {
  font-size: 1.15rem;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.benefit-card p {
  color: var(--text-dark-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ── CONTACTO ── */
.contacto-section {
  background: var(--bg);
  position: relative;
}

.contacto-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(11, 48, 41, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
}

.contact-sidebar {
  padding-top: 20px;
}

.contact-sidebar .badge {
  margin-bottom: var(--space-md);
}

.contact-sidebar h2 {
  font-size: 2rem;
  margin-bottom: 16px;
  line-height: 1.2;
}

.contact-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 32px;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-info-link {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 20px;
  background: rgba(200, 164, 78, 0.04);
  border: 1px solid rgba(200, 164, 78, 0.15);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition: all var(--transition-normal);
}

.contact-info-link:hover {
  border-color: var(--gold);
  background: rgba(200, 164, 78, 0.08);
  transform: translateX(4px);
}

.contact-info-link .icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(200, 164, 78, 0.12);
  border: 1px solid rgba(200, 164, 78, 0.2);
  border-radius: var(--radius-md);
  color: var(--gold);
}

.contact-info-link div {
  flex: 1;
}

.contact-info-link strong {
  display: block;
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 2px;
}

.contact-info-link span {
  display: block;
  font-size: 0.95rem;
  color: var(--gold);
  font-weight: 500;
}

.contact-info-link small {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.contact-arrow {
  font-size: 1.2rem;
  color: var(--gold);
  transition: all var(--transition-normal);
}

.contact-info-link:hover .contact-arrow {
  color: var(--gold-light);
  transform: translateX(4px);
}

.contact-form-card {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.contact-form-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-xl));
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group--full {
  width: 100%;
}

.form-submit {
  width: 100%;
}

.form-note {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-align: center;
  margin: 0;
}

/* ── CTA ── */
.cta-section {
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(11, 48, 41, 0.15), transparent 60%);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--gold);
  border: 1px solid var(--border-gold);
  padding: 6px 20px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  margin-bottom: 24px;
}

.cta-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 16px;
  color: var(--text);
}

.cta-sub {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.cta-text {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto 16px;
  line-height: 1.6;
}

.cta-location {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 32px;
  letter-spacing: 0.05em;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.cta-contact {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-contact a {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-normal);
}

.cta-contact a:hover {
  color: var(--gold);
}

/* ── FOOTER ── */
.footer {
  padding: 64px 0 32px;
  background-color: #0a0a08;
  background-image:
    repeating-linear-gradient(0deg,
      transparent,
      transparent 2px,
      rgba(255, 255, 255, 0.015) 2px,
      rgba(255, 255, 255, 0.015) 4px),
    repeating-linear-gradient(90deg,
      transparent,
      transparent 2px,
      rgba(255, 255, 255, 0.015) 2px,
      rgba(255, 255, 255, 0.015) 4px);
  border-top: 1px solid rgba(200, 164, 78, 0.15);
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-top: 16px;
  max-width: 300px;
}

.footer h4 {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #7ab89a;
  margin-bottom: 20px;
}

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

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color var(--transition-normal);
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(11, 48, 41, 0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ── LIGHTBOX ── */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  position: relative;
  width: 90vw;
  max-width: 1000px;
  max-height: 92vh;
  transform: scale(0.95);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  padding: 40px 20px 16px;
}

.lightbox.active .lightbox-content {
  transform: scale(1);
}

.lightbox-header {
  text-align: center;
  margin-bottom: 12px;
  flex-shrink: 0;
}

.lightbox-header h3 {
  font-size: 1.2rem;
  margin-bottom: 2px;
  color: #fff;
}

.lightbox-header span {
  font-size: 0.85rem;
  color: var(--gold);
}

.lightbox-close {
  position: absolute;
  top: 8px;
  right: 12px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  transition: color 0.2s;
  padding: 8px;
  line-height: 1;
  z-index: 10;
}

.lightbox-close:hover {
  color: var(--gold);
}

/* Imagem principal */
.lightbox-main {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  overflow: hidden;
}

.lightbox-main img {
  max-width: 100%;
  max-height: 60vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  user-select: none;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.4rem;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  backdrop-filter: blur(4px);
}

.lightbox-nav:hover {
  background: rgba(200, 164, 78, 0.35);
  color: var(--gold);
}

.lightbox-prev {
  left: 12px;
}

.lightbox-next {
  right: 12px;
}

.lightbox-counter {
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
  padding: 8px 0 4px;
  flex-shrink: 0;
}

/* Thumbnails strip */
.lightbox-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 8px 4px 4px;
  flex-shrink: 0;
  scroll-behavior: smooth;
  justify-content: center;
}

.lightbox-thumbs::-webkit-scrollbar {
  height: 4px;
}

.lightbox-thumbs::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
}

.lightbox-thumbs::-webkit-scrollbar-thumb {
  background: rgba(200, 164, 78, 0.35);
  border-radius: 2px;
}

.lightbox-thumb {
  flex-shrink: 0;
  width: 72px;
  height: 54px;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.25s ease;
  opacity: 0.5;
}

.lightbox-thumb:hover {
  opacity: 0.85;
  border-color: rgba(255, 255, 255, 0.3);
}

.lightbox-thumb.active {
  opacity: 1;
  border-color: var(--gold);
  box-shadow: 0 0 8px rgba(200, 164, 78, 0.4);
}

.lightbox-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── LIGHTBOX RESPONSIVE ── */
@media (max-width: 1100px) {
  .lightbox-nav {
    width: 38px;
    height: 38px;
    font-size: 1.2rem;
  }

  .lightbox-prev {
    left: 6px;
  }

  .lightbox-next {
    right: 6px;
  }
}

@media (max-width: 768px) {
  .lightbox-content {
    width: 98vw;
    padding: 32px 8px 10px;
  }

  .lightbox-main img {
    max-height: 50vh;
  }

  .lightbox-thumb {
    width: 60px;
    height: 45px;
  }

  .lightbox-nav {
    width: 34px;
    height: 34px;
    font-size: 1rem;
  }
}

.footer-bottom p {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.footer-bottom a {
  color: var(--text-muted);
  font-size: 0.75rem;
}

/* ── BRAND PATTERN ── */
.brand-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(11, 48, 41, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(200, 164, 78, 0.05) 0%, transparent 50%);
  pointer-events: none;
}