/* =======================================================
* AMC Consultora Tecnológica - Modern Design System 2026
* Built with Bootstrap 5.3+ & Modern CSS Architecture
* ======================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* --- Root Color System & Variables --- */
:root {
  --font-default: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-heading: 'Outfit', sans-serif;

  /* Primary Palette */
  --color-primary: #0b172a;
  --color-primary-light: #1e293b;
  --color-accent-blue: #2563eb;
  --color-accent-cyan: #06b6d4;
  --color-accent-neon: #00f2fe;
  --color-accent-emerald: #10b981;
  --color-text-dark: #0f172a;
  --color-text-muted: #64748b;
  --color-bg-light: #f8fafc;
  --color-bg-card: #ffffff;
  --color-border: #e2e8f0;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
  --gradient-dark: linear-gradient(135deg, #0b172a 0%, #1e293b 100%);
  --gradient-glow: linear-gradient(135deg, rgba(6, 182, 212, 0.15) 0%, rgba(59, 130, 246, 0.15) 100%);

  /* Shadows */
  --shadow-sm: 0 4px 6px -1px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 40px -15px rgba(15, 23, 42, 0.12);
  --shadow-glow: 0 0 30px rgba(6, 182, 212, 0.25);

  scroll-behavior: smooth;
}

/* --- Ensure AOS never hides content on page load --- */
[data-aos] {
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
}

/* --- Base & Reset --- */
body {
  font-family: var(--font-default);
  color: var(--color-text-dark);
  background-color: var(--color-bg-light);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: -0.02em;
}

a {
  color: var(--color-accent-blue);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--color-accent-cyan);
}

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.badge-tech {
  display: inline-block;
  padding: 0.35em 0.75em;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 50rem;
  background: rgba(6, 182, 212, 0.1);
  color: #0284c7;
  border: 1px solid rgba(6, 182, 212, 0.2);
  margin-right: 0.35rem;
  margin-bottom: 0.35rem;
}

/* --- Floating WhatsApp Button --- */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 30px;
  right: 30px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50px;
  text-align: center;
  font-size: 32px;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  color: #fff;
  box-shadow: 0 15px 30px rgba(37, 211, 102, 0.6);
}

/* --- Header / Navigation --- */
.header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  padding: 15px 0;
  transition: all 0.3s ease;
  z-index: 999;
}

.header .logo img {
  max-height: 46px;
  transition: transform 0.3s ease;
}

.header .logo:hover img {
  transform: scale(1.03);
}

.navmenu ul {
  margin: 0;
  padding: 0;
  display: flex;
  list-style: none;
  align-items: center;
  gap: 8px;
}

.navmenu a {
  color: var(--color-text-dark);
  padding: 8px 16px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.25s ease;
}

.navmenu a:hover,
.navmenu a.active {
  color: var(--color-accent-blue);
  background: rgba(37, 99, 235, 0.06);
}

.btn-whatsapp-nav {
  background: #25d366;
  color: #ffffff !important;
  border-radius: 50rem;
  padding: 8px 20px !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-whatsapp-nav:hover {
  background: #20ba5a !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  padding: 80px 0 60px;
  background: radial-gradient(circle at 50% 0%, rgba(6, 182, 212, 0.08) 0%, rgba(248, 250, 252, 1) 70%);
  overflow: hidden;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.25);
  border-radius: 50rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #0284c7;
  margin-bottom: 25px;
}

.hero-pill .pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #06b6d4;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.7);
  animation: pulse-ring 1.8s infinite;
}

@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(6, 182, 212, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(6, 182, 212, 0);
  }
}

.hero h1 {
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--color-primary);
  margin-bottom: 20px;
}

.hero p.lead {
  font-size: 1.2rem;
  color: var(--color-text-muted);
  max-width: 780px;
  margin: 0 auto 35px;
}

.hero-graphics-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 25px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.hero-graphics-row img {
  height: 48px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.06));
  transition: transform 0.3s ease;
}

.hero-graphics-row img:hover {
  transform: translateY(-3px) scale(1.05);
}

.hero-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 35px;
}

.btn-primary-custom {
  background: var(--gradient-primary);
  color: #ffffff;
  font-weight: 700;
  padding: 12px 30px;
  border-radius: 12px;
  border: none;
  box-shadow: 0 10px 25px rgba(6, 182, 212, 0.3);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-primary-custom:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(6, 182, 212, 0.45);
  color: #fff;
}

.btn-secondary-custom {
  background: #ffffff;
  color: var(--color-primary);
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-secondary-custom:hover {
  background: var(--color-bg-light);
  border-color: #cbd5e1;
  transform: translateY(-3px);
  color: var(--color-accent-blue);
}

.btn-whatsapp-custom {
  background: #25d366;
  color: #ffffff !important;
  font-weight: 700;
  padding: 12px 30px;
  border-radius: 12px;
  border: none;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-whatsapp-custom:hover {
  background: #20ba5a;
  color: #ffffff !important;
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(37, 211, 102, 0.45);
}

.hero-badges-wrapper {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 15px;
}

.hero-badge-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  padding: 12px 22px;
  border-radius: 14px;
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: var(--shadow-md);
  font-weight: 600;
  font-size: 0.95rem;
}

.hero-badge-item i {
  font-size: 1.4rem;
  color: var(--color-accent-cyan);
}

/* --- Stats / Metrics Bar --- */
.stats-bar {
  background: var(--gradient-dark);
  color: #ffffff;
  padding: 40px 0;
  margin-top: 20px;
  position: relative;
  z-index: 10;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
}

.stat-item {
  text-align: center;
  padding: 10px;
}

.stat-item .number {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-item .label {
  font-size: 0.95rem;
  color: #94a3b8;
  font-weight: 500;
}

/* --- Section Formatting --- */
.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.section-title p {
  color: var(--color-text-muted);
  font-size: 1.1rem;
  margin-top: 15px;
}

/* --- Featured Services Section --- */
.service-card {
  background: var(--color-bg-card);
  border-radius: 18px;
  padding: 35px 28px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: all 0.35s ease;
  height: 100%;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(6, 182, 212, 0.3);
}

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

.service-card .icon-box {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: var(--gradient-glow);
  color: var(--color-accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 22px;
  transition: all 0.3s ease;
}

.service-card:hover .icon-box {
  background: var(--gradient-primary);
  color: #ffffff;
  transform: scale(1.08);
}

.service-card h3 {
  font-size: 1.35rem;
  margin-bottom: 14px;
  font-weight: 700;
}

.service-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

.service-card .tech-list {
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px dashed var(--color-border);
}

/* --- Remote Assistant Banner Section --- */
.remote-banner {
  background: var(--gradient-dark);
  border-radius: 24px;
  padding: 50px;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.remote-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.25) 0%, rgba(0,0,0,0) 70%);
  pointer-events: none;
}

.remote-banner h3 {
  color: #ffffff;
  font-size: 2.25rem;
  margin-bottom: 18px;
}

.remote-banner p {
  color: #94a3b8;
  font-size: 1.1rem;
  margin-bottom: 25px;
}

.remote-features {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.remote-feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: #cbd5e1;
}

.remote-feature-item i {
  color: var(--color-accent-neon);
}

/* --- Municipal Solutions Tabs --- */
.municipal-tabs .nav-tabs {
  border-bottom: none;
  gap: 12px;
  justify-content: center;
  margin-bottom: 45px;
}

.municipal-tabs .nav-link {
  border: 1px solid var(--color-border);
  background: #ffffff;
  color: var(--color-text-dark);
  border-radius: 14px;
  padding: 14px 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.municipal-tabs .nav-link i {
  font-size: 1.25rem;
}

.municipal-tabs .nav-link:hover {
  border-color: var(--color-accent-blue);
  color: var(--color-accent-blue);
  transform: translateY(-2px);
}

.municipal-tabs .nav-link.active {
  background: var(--gradient-primary);
  color: #ffffff !important;
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(6, 182, 212, 0.3);
}

.tab-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 40px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
}

.tab-card h3 {
  font-size: 1.75rem;
  margin-bottom: 15px;
}

.tab-card ul {
  list-style: none;
  padding: 0;
  margin: 25px 0;
}

.tab-card ul li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  color: var(--color-text-dark);
  font-size: 0.98rem;
}

.tab-card ul li i {
  position: absolute;
  left: 0;
  top: 3px;
  color: var(--color-accent-emerald);
  font-size: 1.1rem;
}

.tab-card img {
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}

/* --- Municipal App Cards Grid --- */
.municipal-app-card {
  background: var(--color-bg-card);
  border-radius: 18px;
  padding: 32px 26px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: all 0.35s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.municipal-app-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.municipal-app-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(6, 182, 212, 0.3);
}

.municipal-app-card:hover::before {
  opacity: 1;
}

.municipal-app-card .icon-box {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: var(--gradient-glow);
  color: var(--color-accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.municipal-app-card:hover .icon-box {
  background: var(--gradient-primary);
  color: #ffffff;
  transform: scale(1.08);
}

.municipal-app-card h4 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--color-primary);
}

.municipal-app-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.55;
}

/* --- Municipal Custom Development Banner --- */
.municipal-custom-banner {
  background: var(--gradient-dark);
  border-radius: 20px;
  padding: 40px 45px;
  color: #ffffff;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(6, 182, 212, 0.25);
}

.municipal-custom-banner::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.2) 0%, rgba(0,0,0,0) 70%);
  pointer-events: none;
}

.municipal-custom-banner h3 {
  color: #ffffff;
  font-size: 1.65rem;
  margin-bottom: 12px;
}

.municipal-custom-banner p {
  color: #94a3b8;
  font-size: 1rem;
  margin: 0;
  line-height: 1.6;
}

.badge-custom-tag {
  background: rgba(6, 182, 212, 0.15);
  color: #00f2fe;
  border: 1px solid rgba(6, 182, 212, 0.3);
  padding: 4px 14px;
  border-radius: 50rem;
  font-size: 0.8rem;
  font-weight: 700;
}

.badge-custom-tag-sub {
  color: #64748b;
  font-size: 0.85rem;
  font-weight: 600;
}

/* --- Portfolio Grid --- */
.portfolio-filters {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
}

.portfolio-filters button {
  background: #ffffff;
  border: 1px solid var(--color-border);
  color: var(--color-text-dark);
  padding: 8px 22px;
  border-radius: 50rem;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.portfolio-filters button:hover,
.portfolio-filters button.active {
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
}

.portfolio-card {
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: all 0.35s ease;
  position: relative;
}

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

.portfolio-img-wrapper {
  position: relative;
  overflow: hidden;
}

.portfolio-img-wrapper img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.5s ease;
  cursor: pointer;
}

.portfolio-card:hover .portfolio-img-wrapper img {
  transform: scale(1.06);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(11, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.portfolio-card:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-overlay a {
  width: 44px;
  height: 44px;
  background: #ffffff;
  color: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.25s ease;
}

.portfolio-overlay a:hover {
  background: var(--color-accent-cyan);
  color: #ffffff;
  transform: scale(1.1);
}

.portfolio-info-box {
  padding: 20px;
}

.portfolio-info-box h4 {
  font-size: 1.15rem;
  margin-bottom: 4px;
}

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

/* --- Contact Section --- */
.contact-item-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 30px 24px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: all 0.3s ease;
  height: 100%;
}

.contact-item-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent-cyan);
}

.contact-item-card .icon-box {
  width: 56px;
  height: 56px;
  background: var(--gradient-glow);
  color: var(--color-accent-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 18px;
}

.contact-item-card h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.contact-item-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin: 0;
}

/* --- Footer --- */
.footer {
  background: var(--color-primary);
  color: #94a3b8;
  padding: 40px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer strong {
  color: #ffffff;
}

.footer .social-links a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.footer .social-links a:hover {
  background: var(--gradient-primary);
  transform: translateY(-3px);
}

/* --- Responsive Adjustments --- */
@media (max-width: 991px) {
  .hero h1 {
    font-size: 2.35rem;
  }
  .remote-banner {
    padding: 35px 25px;
  }
  .municipal-tabs .nav-tabs {
    flex-wrap: wrap;
  }
}
