/* ==========================================================================
   CONSTRUCTORA INTUPET, C.A. - ESTILOS CORPORATIVOS
   RIF: J-30851421-7
   Paleta: Blanco Puro / Verde Pino / Esmeralda Industrial
   ========================================================================== */

:root {
  --primary: #064e3b;
  --primary-light: #047857;
  --primary-dark: #022c22;
  --accent: #10b981;
  --accent-hover: #059669;
  --accent-light: #d1fae5;
  --accent-subtle: #ecfdf5;
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-light: #f8fafc;
  --bg-body: #ffffff;
  --bg-card: #ffffff;
  --bg-alt: #f0fdf4;
  --border-color: #e2e8f0;
  --border-focus: #10b981;
  --sidebar-width: 290px;
  --sidebar-width-collapsed: 80px;
  --navbar-height: 70px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(6, 78, 59, 0.06);
  --shadow-md: 0 4px 12px rgba(6, 78, 59, 0.08);
  --shadow-lg: 0 10px 25px rgba(6, 78, 59, 0.12);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset y base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-body);
  line-height: 1.6;
}

body {
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

/* Layout con Sidebar */
.app-container {
  display: flex;
  min-height: 100vh;
  position: relative;
}

/* Overlay interactivo para cerrar menú en móviles */
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(6, 14, 26, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ==========================================================================
   SIDEBAR CORPORATIVO
   ========================================================================== */
.sidebar {
  width: var(--sidebar-width);
  background: linear-gradient(180deg, #06261d 0%, #031b14 100%);
  color: var(--text-light);
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  overflow-y: auto;
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.sidebar::-webkit-scrollbar {
  width: 6px;
}
.sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}

.sidebar-header {
  padding: 20px 16px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(0, 0, 0, 0.2);
}

.sidebar-brand {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.sidebar-logo {
  max-height: 40px;
  max-width: 175px;
  width: auto;
  object-fit: contain;
}

.sidebar-tagline {
  font-size: 0.70rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 700;
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-sidebar-close {
  display: flex !important;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--accent);
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  font-size: 1.15rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.btn-sidebar-close:hover {
  background: var(--accent);
  color: #0b1a30;
  transform: scale(1.05);
}

.sidebar-nav {
  padding: 20px 14px;
  flex: 1;
}

.sidebar-section-title {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #94a3b8;
  font-weight: 700;
  padding: 12px 10px 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 20px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: #cbd5e1;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.sidebar-link i {
  font-size: 1.1rem;
  width: 22px;
  text-align: center;
  color: var(--accent);
  transition: var(--transition);
}

.sidebar-link:hover,
.sidebar-link.active {
  background: rgba(16, 185, 129, 0.15);
  color: #ffffff;
}

.sidebar-link.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 15%;
  height: 70%;
  width: 4px;
  background: var(--accent);
  border-radius: 0 4px 4px 0;
}

.sidebar-link .badge-indicator {
  margin-left: auto;
  font-size: 0.65rem;
  background: rgba(16, 185, 129, 0.25);
  color: #ffffff;
  padding: 2px 7px;
  border-radius: 10px;
  font-weight: 600;
}

.sidebar-footer {
  padding: 16px;
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-badges {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.cert-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  color: #e2e8f0;
}

.cert-pill i {
  color: var(--accent);
}

.sidebar-btn-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
}

.sidebar-btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(16, 185, 129, 0.45);
}

/* ==========================================================================
   MAIN CONTENT AREA
   ========================================================================== */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Estado de Sidebar Colapsado en Desktop */
html.sidebar-collapsed .sidebar,
body.sidebar-collapsed .sidebar {
  transform: translateX(-100%);
}

html.sidebar-collapsed .main-content,
body.sidebar-collapsed .main-content {
  margin-left: 0;
}

/* Topbar */
.topbar {
  height: var(--navbar-height);
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  box-shadow: var(--shadow-sm);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-sidebar-toggle {
  background: none;
  border: 1px solid var(--border-color);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text-main);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.btn-sidebar-toggle:hover {
  background: var(--bg-surface);
  color: var(--accent);
  border-color: var(--accent);
}

.topbar-quick-info {
  display: flex;
  align-items: center;
  gap: 24px;
}

.quick-info-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.quick-info-item i {
  color: var(--accent);
}

.quick-info-item strong {
  color: var(--text-main);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn-sitemap-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  color: var(--primary);
  font-weight: 600;
  font-size: 0.85rem;
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: var(--transition);
}

.btn-sitemap-trigger:hover {
  background: #e2e8f0;
  color: #000;
}

.btn-whatsapp-direct {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  background: #25d366;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.85rem;
  transition: var(--transition);
}

.btn-whatsapp-direct:hover {
  background: #1eb956;
  transform: translateY(-1px);
}

/* ==========================================================================
   HERO BANNER
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  padding: 80px 48px;
  background: linear-gradient(135deg, rgba(6, 78, 59, 0.94) 0%, rgba(2, 44, 34, 0.90) 100%),
              url('../img/hero-bg.jpg') center/cover no-repeat;
  color: #ffffff;
}

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

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid var(--accent);
  border-radius: 50px;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.hero-title span {
  color: var(--accent);
}

.hero-description {
  font-size: 1.15rem;
  color: #cbd5e1;
  margin-bottom: 34px;
  max-width: 720px;
  line-height: 1.6;
}

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

.btn-primary-custom {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  color: #ffffff;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}

.btn-primary-custom:hover {
  background: linear-gradient(135deg, var(--accent-hover) 0%, var(--primary-light) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.5);
}

.btn-secondary-custom {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-secondary-custom:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Hero Stats */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 28px;
}

.stat-card {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.8rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

/* ==========================================================================
   SECCIONES COMUNES
   ========================================================================== */
.section {
  padding: 70px 48px;
}

.section-alt {
  background-color: var(--bg-alt);
}

.section-header {
  margin-bottom: 44px;
}

.section-subtitle {
  color: var(--accent-hover);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 6px;
}

.section-title {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.25;
}

.section-description {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 680px;
  margin-top: 8px;
}

/* ==========================================================================
   SECCIÓN SOBRE NOSOTROS
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.about-text p {
  margin-bottom: 18px;
  color: #334155;
  font-size: 1.02rem;
}

.about-highlights {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 24px 0;
}

.highlight-box {
  background: #ffffff;
  padding: 16px;
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--accent);
  box-shadow: var(--shadow-sm);
}

.highlight-box h4 {
  font-size: 0.95rem;
  color: var(--primary);
  margin-bottom: 4px;
}

.highlight-box p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

.about-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.about-img-wrap {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3;
}

.about-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.about-img-wrap:hover img {
  transform: scale(1.05);
}

/* Misión, Visión, Valores */
.mvv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.mvv-card {
  background: #ffffff;
  padding: 28px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.mvv-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.mvv-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
}

.mvv-card h3 {
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 12px;
}

.mvv-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* ==========================================================================
   SEGMENTOS DE NEGOCIO (CARDS & DETALLES)
   ========================================================================== */
.segments-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.segment-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

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

.segment-img {
  height: 190px;
  position: relative;
  overflow: hidden;
}

.segment-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.segment-card:hover .segment-img img {
  transform: scale(1.08);
}

.segment-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(10, 25, 47, 0.85);
  backdrop-filter: blur(4px);
  color: var(--accent);
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.segment-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.segment-body h3 {
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 10px;
}

.segment-body p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 18px;
  flex: 1;
}

.segment-features {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.segment-features li {
  font-size: 0.85rem;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 8px;
}

.segment-features li i {
  color: var(--accent-hover);
  font-size: 0.75rem;
}

.btn-segment-cta {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-segment-cta:hover {
  color: var(--accent-hover);
  gap: 10px;
}

/* ==========================================================================
   FLOTA DE EQUIPOS (DISPONIBILIDAD INMEDIATA)
   ========================================================================== */
.fleet-stats-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 32px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
  box-shadow: var(--shadow-md);
}

.fleet-stats-text h3 {
  font-size: 1.6rem;
  color: var(--accent);
  margin-bottom: 6px;
}

.fleet-stats-text p {
  color: #cbd5e1;
  font-size: 0.98rem;
  max-width: 650px;
}

.fleet-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.fleet-item {
  background: #ffffff;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.fleet-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.fleet-img-wrap {
  height: 180px;
  background: #f1f5f9;
  overflow: hidden;
}

.fleet-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

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

.fleet-details {
  padding: 16px;
}

.fleet-details h4 {
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 4px;
}

.fleet-details span {
  font-size: 0.8rem;
  color: var(--accent-hover);
  font-weight: 600;
  text-transform: uppercase;
}

/* ==========================================================================
   PROYECTOS Y EXPERIENCIA
   ========================================================================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.project-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.project-media {
  height: 220px;
  position: relative;
  overflow: hidden;
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--accent);
  color: #0b1a30;
  font-weight: 700;
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 4px;
}

.project-content {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-client {
  font-size: 0.8rem;
  color: var(--accent-hover);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.project-title {
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 10px;
}

.project-description {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 16px;
  flex: 1;
}

.project-meta-list {
  border-top: 1px solid var(--border-color);
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: #475569;
}

/* ==========================================================================
   RACDA & CERTIFICACIONES
   ========================================================================== */
.compliance-box {
  background: linear-gradient(135deg, #06261d 0%, #0d4233 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(16, 185, 129, 0.35);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.compliance-info h3 {
  font-size: 1.8rem;
  color: var(--accent);
  margin-bottom: 14px;
}

.compliance-info p {
  color: #cbd5e1;
  font-size: 0.98rem;
  margin-bottom: 20px;
  line-height: 1.6;
}

.compliance-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.compliance-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: #e2e8f0;
}

.compliance-list li i {
  color: var(--accent);
}

.compliance-doc-preview {
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed rgba(16, 185, 129, 0.4);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
}

.compliance-doc-preview img {
  max-height: 240px;
  margin: 0 auto 16px;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.compliance-code {
  display: inline-block;
  background: var(--accent);
  color: #0b1a30;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  letter-spacing: 1px;
}

/* ==========================================================================
   MODAL DE MAPA DEL SITIO (SITEMAP MODAL)
   ========================================================================== */
.sitemap-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(10, 25, 47, 0.8);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.sitemap-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.sitemap-modal-container {
  background: #ffffff;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 980px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  transform: translateY(20px);
  transition: var(--transition);
}

.sitemap-modal-overlay.active .sitemap-modal-container {
  transform: translateY(0);
}

.sitemap-modal-header {
  padding: 24px 32px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-alt);
}

.sitemap-modal-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sitemap-modal-title i {
  color: var(--accent-hover);
  font-size: 1.5rem;
}

.sitemap-modal-title h2 {
  font-size: 1.4rem;
  color: var(--primary);
}

.btn-close-modal {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.btn-close-modal:hover {
  background: #e2e8f0;
  color: var(--primary);
}

.sitemap-modal-body {
  padding: 32px;
}

.sitemap-tree {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.sitemap-branch h4 {
  font-size: 1.05rem;
  color: var(--primary);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 8px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sitemap-branch ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sitemap-branch a {
  color: #475569;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
}

.sitemap-branch a:hover {
  color: var(--accent-hover);
  transform: translateX(4px);
}

.sitemap-branch a i {
  font-size: 0.75rem;
  color: var(--accent);
}

/* ==========================================================================
   CONTACTO Y SEDES
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  padding: 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 16px;
}

.contact-card-icon {
  width: 48px;
  height: 48px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.contact-card-content h4 {
  font-size: 1.05rem;
  color: var(--primary);
  margin-bottom: 6px;
}

.contact-card-content p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 4px;
}

/* Formulario */
.contact-form-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  padding: 36px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.form-group-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.form-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: var(--text-main);
  background: #fdfdfd;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
  background: #ffffff;
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.form-status-alert {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-bottom: 18px;
  display: none;
}

.form-status-alert.success {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
  display: block;
}

.form-status-alert.error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
  display: block;
}

.btn-submit-form {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  color: #ffffff;
  border: none;
  padding: 14px 28px;
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  transition: var(--transition);
}

.btn-submit-form:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.35);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background: #022017;
  color: #94a3b8;
  padding: 60px 48px 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: auto;
}

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

.footer-brand p {
  color: #64748b;
  font-size: 0.9rem;
  margin-top: 14px;
  line-height: 1.55;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1rem;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 8px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 32px;
  height: 2px;
  background: var(--accent);
}

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

.footer-col a {
  color: #94a3b8;
  font-size: 0.88rem;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 14px;
}

/* ==========================================================================
   RESPONSIVE DESIGN (TABLETS & MOBILE)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .segments-grid,
  .mvv-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .fleet-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .compliance-box {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==========================================================================
   PAGE HERO (CABECERAS DE PÁGINAS INTERNAS)
   ========================================================================== */
.page-hero {
  background: linear-gradient(135deg, rgba(10, 25, 47, 0.96) 0%, rgba(15, 36, 68, 0.90) 100%),
              url('../img/hero-bg.jpg') center/cover no-repeat;
  color: #ffffff;
  padding: 50px 48px;
  border-bottom: 3px solid var(--accent);
}

.page-hero-content {
  max-width: 860px;
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  font-weight: 600;
}

.breadcrumb-nav a {
  color: #94a3b8;
}

.breadcrumb-nav a:hover {
  color: #ffffff;
}

.page-hero-title {
  font-size: 2.3rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 10px;
}

.page-hero-desc {
  font-size: 1.05rem;
  color: #cbd5e1;
  max-width: 720px;
  line-height: 1.55;
}

/* ==========================================================================
   BOTONES DE REDES SOCIALES DINÁMICAS (NO-CODE)
   ========================================================================== */
.footer-social-links {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.social-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  font-size: 1.15rem;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.social-icon-btn:hover {
  transform: translateY(-3px);
  color: #ffffff;
}

.social-icon-btn.youtube:hover {
  background: #dc2626;
  border-color: #ef4444;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}

.social-icon-btn.tiktok:hover {
  background: #000000;
  border-color: #38bdf8;
  color: #38bdf8;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.social-icon-btn.linkedin:hover {
  background: #0284c7;
  border-color: #38bdf8;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.4);
}

.social-icon-btn.instagram:hover {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(220, 39, 67, 0.4);
}

.social-icon-btn.facebook:hover {
  background: #1877f2;
  border-color: #3b82f6;
  box-shadow: 0 4px 12px rgba(24, 119, 242, 0.4);
}

.social-icon-btn.x-twitter:hover {
  background: #000000;
  border-color: #ffffff;
  color: #ffffff;
}

.social-icon-btn.whatsapp:hover {
  background: #25d366;
  border-color: #4ade80;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

@media (max-width: 868px) {
  .page-hero {
    padding: 40px 20px;
  }
  .page-hero-title {
    font-size: 1.8rem;
  }
  .btn-sidebar-close {
    display: flex;
  }
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.mobile-open {
    transform: translateX(0);
  }
  .main-content {
    margin-left: 0;
  }
  .btn-sidebar-toggle {
    display: block;
  }
  .topbar-quick-info {
    display: none;
  }
  .section {
    padding: 50px 20px;
  }
  .hero-section {
    padding: 60px 20px;
  }
  .hero-title {
    font-size: 2.1rem;
  }
  .about-grid,
  .projects-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .form-group-grid {
    grid-template-columns: 1fr;
  }
  .segments-grid,
  .mvv-grid,
  .fleet-grid,
  .sitemap-tree {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
  .fleet-stats-banner {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
}

/* ==========================================================================
   ENLACES DISCRETOS AL PANEL ADMINISTRATIVO (/admin)
   ========================================================================== */
.footer-admin-link {
  color: #94a3b8;
  margin-right: 16px;
  font-size: 0.85rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.footer-admin-link:hover {
  color: var(--accent);
}

.sidebar-admin-access {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-admin-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.76rem;
  color: #94a3b8;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: var(--transition);
  text-decoration: none;
  font-weight: 500;
}

.sidebar-admin-link:hover {
  color: var(--accent);
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.08);
}

