/* =============================================
   G2 MC CONSULTING - Main Stylesheet
   Ingeniería, Gestión y Construcción
   Versión 2.0 - Estilo Profesional
   ============================================= */

/* ========== Root Variables ========== */
:root {
  /* Brand Colors - Sin degradados */
  --primary-color: #c41e3a;
  /* Rojo corporativo */
  --secondary-color: #0b3a58;
  /* Azul corporativo */
  --accent-color: #2c5f7f;
  /* Azul acento */

  /* Neutral Colors */
  --dark-color: #1a1a1a;
  --gray-dark: #4a4a4a;
  --gray-medium: #7a7a7a;
  --gray-light: #e5e5e5;
  --white: white;
  --bg-light: #f8f9fa;
  --bg-section: #fafbfc;

  /* Typography */
  --font-primary: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  --font-size-base: 16px;
  --line-height-base: 1.6;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-xxl: 5rem;

  /* Transitions */
  --transition-base: all 0.3s ease;
  --transition-slow: all 0.5s ease;

  /* Shadows - Suaves y profesionales */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.15);

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 50%;

  /* Header Height */
  --header-height: 80px;
}

/* ========== Global Styles ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: var(--font-size-base);
  overflow-x: hidden;
}

body {
  font-family: var(--font-primary);
  line-height: var(--line-height-base);
  color: var(--gray-dark);
  background-color: var(--white);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--dark-color);
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.25rem;
}

h3 {
  font-size: 1.75rem;
}

h4 {
  font-size: 1.5rem;
}

h5 {
  font-size: 1.25rem;
}

h6 {
  font-size: 1rem;
}

p {
  margin-bottom: 1rem;
  color: var(--gray-dark);
}

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

a:hover {
  color: var(--secondary-color);
}

/* Utility Classes */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

main .container {
  overflow-x: hidden;
}

.text-primary {
  color: var(--primary-color) !important;
}

.text-secondary {
  color: var(--secondary-color) !important;
}

.bg-light {
  background-color: var(--bg-light) !important;
}

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

.section {
  padding: var(--spacing-xxl) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.section-title {
  font-size: 2.25rem;
  margin-bottom: var(--spacing-sm);
  position: relative;
  color: var(--secondary-color);
}

.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: var(--primary-color);
  margin: var(--spacing-md) auto 0;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--dark-color);
  max-width: 700px;
  margin: 0 auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: 12px 28px;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-base);
  text-decoration: none;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: #a01729;
  border-color: #a01729;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: var(--white);
  border-color: var(--secondary-color);
}

.btn-secondary:hover {
  background-color: #142847;
  border-color: #142847;
}

.btn-outline {
  background-color: transparent;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
}

.btn-outline:hover {
  background-color: var(--secondary-color);
  color: var(--white);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.125rem;
}

/* Grid System */
.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.col-md-3,
.col-md-4,
.col-md-6,
.col-lg-3,
.col-lg-4,
.col-lg-6 {
  padding: 0 15px;
  flex: 0 0 100%;
}

@media (min-width: 768px) {
  .col-md-3 {
    flex: 0 0 25%;
  }

  .col-md-4 {
    flex: 0 0 33.333%;
  }

  .col-md-6 {
    flex: 0 0 50%;
  }
}

@media (min-width: 992px) {
  .col-lg-3 {
    flex: 0 0 25%;
  }

  .col-lg-4 {
    flex: 0 0 33.333%;
  }

  .col-lg-6 {
    flex: 0 0 50%;
  }
}

/* ========== Preloader ========== */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--white);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s;
}

#preloader.hide {
  opacity: 0;
  pointer-events: none;
}

.loader {
  text-align: center;
}

.loader-logo {
  width: 150px;
  margin-bottom: var(--spacing-md);
  animation: pulse 2s infinite;
}

.loader-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid var(--gray-light);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  margin: 0 auto;
  animation: spin 1s linear infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.7;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ========== Header Navigation - FIJO ========== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  background: var(--white);
  box-shadow: var(--shadow-md);
  transition: var(--transition-base);
}

/* Estado scrolled para agregar más sombra */
.header.scrolled {
  box-shadow: var(--shadow-lg);
}

.navbar {
  height: 100%;
  display: flex;
  align-items: center;
}

.navbar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
}

.navbar-brand {
  display: flex;
  align-items: center;
}

.navbar-brand .logo {
  height: 50px;
  width: auto;
}

.navbar-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  gap: var(--spacing-lg);
}

.navbar-menu li {
  position: relative;
}

.nav-link {
  color: var(--dark-color);
  font-weight: 500;
  font-size: 0.95rem;
  padding: var(--spacing-xs) 0;
  position: relative;
  transition: var(--transition-base);
  display: inline-block;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Dropdown Menu */
.has-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
  padding: var(--spacing-sm) 0;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: var(--transition-base);
  list-style: none;
  margin-top: var(--spacing-sm);
}

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

.dropdown-menu li {
  margin: 0;
}

.dropdown-menu a {
  display: block;
  padding: var(--spacing-xs) var(--spacing-md);
  color: var(--dark-color);
  transition: var(--transition-base);
  font-size: 0.9rem;
}

.dropdown-menu a:hover {
  background: var(--bg-light);
  color: var(--primary-color);
}

/* Botón Geoportal en Header - ÚNICO */
.navbar-cta {
  margin-left: var(--spacing-md);
}

/* Mobile Menu Toggle */
.navbar-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  width: 35px;
  height: 35px;
  position: relative;
  z-index: 1001;
}

.navbar-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--dark-color);
  margin: 5px 0;
  transition: var(--transition-base);
  border-radius: 2px;
}

.navbar-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.navbar-toggle.active span:nth-child(2) {
  opacity: 0;
}

.navbar-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* ========== Hero Section ========== */
.hero-section {
  margin-top: var(--header-height);
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

/* Patrón de fondo profesional */
.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: linear-gradient(
      30deg,
      rgba(196, 30, 58, 0.1) 12%,
      transparent 12.5%,
      transparent 87%,
      rgba(196, 30, 58, 0.1) 87.5%,
      rgba(196, 30, 58, 0.1)
    ),
    linear-gradient(
      150deg,
      rgba(196, 30, 58, 0.1) 12%,
      transparent 12.5%,
      transparent 87%,
      rgba(196, 30, 58, 0.1) 87.5%,
      rgba(196, 30, 58, 0.1)
    ),
    linear-gradient(
      30deg,
      rgba(196, 30, 58, 0.1) 12%,
      transparent 12.5%,
      transparent 87%,
      rgba(196, 30, 58, 0.1) 87.5%,
      rgba(196, 30, 58, 0.1)
    ),
    linear-gradient(
      150deg,
      rgba(196, 30, 58, 0.1) 12%,
      transparent 12.5%,
      transparent 87%,
      rgba(196, 30, 58, 0.1) 87.5%,
      rgba(196, 30, 58, 0.1)
    ),
    linear-gradient(
      60deg,
      rgba(255, 255, 255, 0.05) 25%,
      transparent 25.5%,
      transparent 75%,
      rgba(255, 255, 255, 0.05) 75%,
      rgba(255, 255, 255, 0.05)
    ),
    linear-gradient(
      60deg,
      rgba(255, 255, 255, 0.05) 25%,
      transparent 25.5%,
      transparent 75%,
      rgba(255, 255, 255, 0.05) 75%,
      rgba(255, 255, 255, 0.05)
    );
  background-size: 80px 140px;
  background-position: 0 0, 0 0, 40px 70px, 40px 70px, 0 0, 40px 70px;
  opacity: 0.3;
}

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

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: var(--spacing-md);
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 300;
  margin-bottom: var(--spacing-xl);
  opacity: 0.95;
}

.hero-buttons {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

.hero-buttons .btn-outline {
  background-color: transparent;
  color: var(--white);
  border-color: var(--white);
}

.hero-buttons .btn-outline:hover {
  background-color: var(--white);
  color: var(--secondary-color);
}

/* Hero Stats */
.hero-stats {
  display: flex;
  gap: var(--spacing-xl);
  margin-top: var(--spacing-xxl);
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: var(--spacing-xs);
}

.stat-label {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.9;
  color: var(--white);
}

/* ========== Hero Slideshow ========== */
.hero-slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(27, 54, 93, 0.45) 0%,
    rgba(196, 30, 58, 0.4) 100%
  );
  z-index: 1;
}

/* ========== About Section ========== */
.about-section {
  background: var(--white);
}

.about-content {
  margin-top: var(--spacing-xl);
}

.about-text {
  padding-right: var(--spacing-lg);
}

.about-text h3 {
  color: var(--secondary-color);
  margin-bottom: var(--spacing-md);
}

.about-text .lead {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--gray-dark);
  margin-bottom: var(--spacing-lg);
}

.about-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.feature-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm);
  background: var(--bg-light);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--primary-color);
}

.feature-item i {
  color: var(--primary-color);
  font-size: 1.25rem;
}

.feature-item span {
  font-weight: 500;
  color: var(--gray-dark);
}

.about-image {
  position: relative;
  min-height: 400px;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transition: transform 0.5s ease;
}

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

/* ========== Vision & Mission Section ========== */
.vision-mission-section {
  background: var(--bg-section);
}

.vision-box,
.mission-box {
  padding: var(--spacing-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  background: var(--white);
  margin-bottom: var(--spacing-lg);
  border-left: 4px solid var(--primary-color);
}

.mission-box {
  border-left-color: var(--secondary-color);
}

.icon-box {
  width: 70px;
  height: 70px;
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-md);
}

.vision-box .icon-box i {
  font-size: 2.5rem;
  color: var(--primary-color);
}

.mission-box .icon-box i {
  font-size: 2rem;
  color: var(--secondary-color);
}

.vision-box h3,
.mission-box h3 {
  color: var(--secondary-color);
  margin-bottom: var(--spacing-md);
}

/* ========== Values Section ========== */
.values-section {
  background: var(--white);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
}

.value-card {
  background: var(--white);
  padding: var(--spacing-xl);
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: var(--transition-base);
  border-top: 4px solid var(--primary-color);
}

.value-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.value-card .icon {
  width: 70px;
  height: 70px;
  background: var(--bg-light);
  color: var(--primary-color);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin: 0 auto var(--spacing-md);
}

.value-card h4 {
  color: var(--secondary-color);
  margin-bottom: var(--spacing-sm);
}

.value-card p {
  color: var(--gray-dark);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ========== Services Section ========== */
.services-section {
  background: var(--bg-section);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition-base);
  border-top: 4px solid var(--primary-color);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
}

.service-card-header {
  height: 200px;
  background: var(--secondary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.service-icon {
  font-size: 4rem;
  color: var(--white);
  position: relative;
  z-index: 1;
}

.service-card-body {
  padding: var(--spacing-xl);
}

.service-card-body h3 {
  color: var(--secondary-color);
  margin-bottom: var(--spacing-md);
}

.service-features {
  list-style: none;
  margin: var(--spacing-md) 0;
}

.service-features li {
  padding: var(--spacing-xs) 0;
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
  color: var(--gray-dark);
}

.service-features li i {
  color: var(--primary-color);
  font-size: 0.875rem;
  margin-top: 3px;
}

/* ========== Products Section ========== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition-base);
  border-top: 4px solid var(--accent-color);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
}

.product-card-header {
  height: 180px;
  background: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.product-icon {
  font-size: 3.5rem;
  color: var(--white);
  position: relative;
  z-index: 1;
}

.product-card-body {
  padding: var(--spacing-xl);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card-body h3 {
  color: var(--secondary-color);
  margin-bottom: var(--spacing-md);
  font-size: 1.4rem;
}

.product-card-body p {
  color: var(--gray-dark);
  margin-bottom: var(--spacing-lg);
  line-height: 1.7;
}

.product-specs {
  background: var(--bg-light);
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  margin-top: auto;
}

.product-specs h4 {
  font-size: 1rem;
  color: var(--secondary-color);
  margin-bottom: var(--spacing-sm);
  font-weight: 600;
}

.product-features {
  list-style: none;
  padding: 0;
  margin: var(--spacing-sm) 0 0;
}

.product-features li {
  padding: var(--spacing-xs) 0;
  color: var(--gray-dark);
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
  font-size: 0.9rem;
  line-height: 1.5;
}

.product-features li i {
  color: var(--accent-color);
  margin-top: 2px;
  flex-shrink: 0;
  font-size: 0.875rem;
}

.product-features li strong {
  color: var(--secondary-color);
  font-weight: 600;
}

/* ========== Team Section ========== */
.team-section {
  background: var(--white);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
}

.team-member {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition-base);
}

.team-member:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.team-member-image {
  height: 320px;
  background: var(--secondary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.team-member-image i {
  font-size: 6rem;
  color: rgba(255, 255, 255, 0.8);
}

.team-member-info {
  padding: var(--spacing-lg);
  text-align: center;
}

.team-member-info h4 {
  color: var(--secondary-color);
  margin-bottom: var(--spacing-xs);
}

.team-member-position {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: var(--spacing-md);
}

.team-member-description {
  color: var(--gray-dark);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ========== Contact Section ========== */
.contact-section {
  background: var(--bg-section);
}

.contact-form-wrapper {
  background: var(--white);
  padding: var(--spacing-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.form-group {
  margin-bottom: var(--spacing-md);
}

.form-group label {
  display: block;
  margin-bottom: var(--spacing-xs);
  color: var(--dark-color);
  font-weight: 500;
  font-size: 0.95rem;
}

.form-control {
  width: 100%;
  padding: var(--spacing-sm) var(--spacing-md);
  border: 2px solid var(--gray-light);
  border-radius: var(--radius-md);
  font-family: var(--font-primary);
  font-size: 1rem;
  transition: var(--transition-base);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.1);
}

.form-control.error {
  border-color: #dc3545;
}

.error-message {
  display: block;
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: var(--spacing-xs);
}

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

/* Contact Info */
.contact-info {
  padding: var(--spacing-xl);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.info-item {
  display: flex;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-xl);
}

.info-item:last-child {
  margin-bottom: 0;
}

.info-item i {
  width: 50px;
  height: 50px;
  background: var(--bg-light);
  color: var(--primary-color);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.info-item h4 {
  color: var(--secondary-color);
  margin-bottom: var(--spacing-xs);
  font-size: 1.125rem;
}

.info-item p {
  color: var(--gray-dark);
  line-height: 1.6;
  margin: 0;
}

.info-item a {
  color: var(--gray-dark);
  transition: var(--transition-base);
}

.info-item a:hover {
  color: var(--primary-color);
}

/* Map */
.map-container {
  margin-top: var(--spacing-xl);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.map-container iframe {
  width: 100%;
  height: 450px;
  border: none;
}

/* ========== Footer ========== */
.footer {
  background: var(--dark-color);
  color: var(--gray-light);
  padding: var(--spacing-xxl) 0 var(--spacing-md);
}

.footer-content {
  margin-bottom: var(--spacing-xl);
}

.footer-widget {
  margin-bottom: var(--spacing-xl);
}

.footer-logo {
  height: 60px;
  margin-bottom: var(--spacing-md);
  filter: brightness(0) invert(1);
}

.footer-widget h4 {
  color: var(--white);
  margin-bottom: var(--spacing-md);
  font-size: 1.125rem;
}

.footer-widget p {
  color: var(--gray-medium);
  line-height: 1.7;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: var(--spacing-sm);
}

.footer-links a {
  color: var(--gray-light);
  transition: var(--transition-base);
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.footer-links a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

.footer-contact {
  list-style: none;
}

.footer-contact li {
  display: flex;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
  align-items: flex-start;
}

.footer-contact i {
  color: var(--primary-color);
  margin-top: 3px;
  width: 20px;
}

.footer-contact a {
  color: var(--gray-light);
  transition: var(--transition-base);
}

.footer-contact a:hover {
  color: var(--primary-color);
}

/* Social Links */
.social-links {
  display: flex;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-md);
}

.social-links a {
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-light);
  font-size: 1.25rem;
  transition: var(--transition-base);
}

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

.certifications {
  display: flex;
  gap: var(--spacing-md);
  margin-top: var(--spacing-md);
}

.cert-badge {
  height: 50px;
  width: auto;
  opacity: 0.8;
  transition: var(--transition-base);
}

.cert-badge:hover {
  opacity: 1;
}

.footer-bottom {
  padding-top: var(--spacing-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.copyright {
  color: var(--gray-medium);
  margin: 0;
  font-size: 0.9rem;
}

.footer-legal {
  list-style: none;
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--spacing-md);
}

.footer-legal a {
  color: var(--gray-medium);
  font-size: 0.875rem;
  transition: var(--transition-base);
}

.footer-legal a:hover {
  color: var(--white);
}

/* ========== Back to Top Button ========== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: var(--radius-lg);
  font-size: 1.25rem;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-base);
  z-index: 999;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--secondary-color);
  transform: translateY(-5px);
}

/* ========== Animations ========== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 30px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* AOS Animation overrides */
[data-aos="fade-up"] {
  transform: translate3d(0, 30px, 0);
}

[data-aos="fade-up"].aos-animate {
  transform: translate3d(0, 0, 0);
}

/* ========================================
   17. HERO SLIDESHOW
   ======================================== */

.hero-slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-content {
  position: relative;
  z-index: 10;
}

/* ========================================
   18. WHATSAPP BUTTON MEJORADO
   ======================================== */

.whatsapp-btn {
  position: fixed;
  bottom: 90px;
  right: 30px;
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: var(--white);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  transition: var(--transition-base);
  z-index: 999;
  animation: pulse-whatsapp 2s infinite;
  text-decoration: none;
}

.whatsapp-btn::before {
  content: "";
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  border-radius: var(--radius-full);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.whatsapp-btn:hover {
  background: #128c7e;
  transform: scale(1.15) rotate(5deg);
  color: var(--white);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.6);
}

.whatsapp-btn:hover::before {
  opacity: 0.3;
}

.whatsapp-btn i {
  animation: shake-icon 1s ease-in-out infinite;
}

@keyframes pulse-whatsapp {
  0%,
  100% {
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  }

  50% {
    box-shadow: 0 8px 32px rgba(37, 211, 102, 0.7);
  }
}

@keyframes shake-icon {
  0%,
  100% {
    transform: rotate(0deg);
  }

  10%,
  30%,
  50%,
  70%,
  90% {
    transform: rotate(-10deg);
  }

  20%,
  40%,
  60%,
  80% {
    transform: rotate(10deg);
  }
}

/* Mobile WhatsApp Button */
@media (max-width: 768px) {
  .whatsapp-btn {
    width: 30px;
    height: 30px;
    bottom: 80px;
    right: 20px;
    font-size: 2rem;
  }
}

/* ========================================
   19. SOCIAL LINKS MEJORADOS
   ======================================== */

.social-links {
  display: flex;
  gap: var(--spacing-sm);
  align-items: center;
  justify-content: center;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white) !important;
  font-size: 1.5rem;
  transition: var(--transition-base);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

.social-links a:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: var(--shadow-xl);
}

.social-links a i {
  color: var(--white) !important;
}

/* LinkedIn */
.social-links a[href*="linkedin"],
.social-links a[title*="LinkedIn"] {
  background: linear-gradient(135deg, #0077b5 0%, #00a0dc 100%);
}

.social-links a[href*="linkedin"]:hover,
.social-links a[title*="LinkedIn"]:hover {
  background: linear-gradient(135deg, #005582 0%, #0077b5 100%);
}

/* Facebook */
.social-links a[href*="facebook"],
.social-links a[title*="Facebook"] {
  background: linear-gradient(135deg, #1877f2 0%, #4267b2 100%);
}

.social-links a[href*="facebook"]:hover,
.social-links a[title*="Facebook"]:hover {
  background: linear-gradient(135deg, #0d5dbf 0%, #1877f2 100%);
}

/* Instagram */
.social-links a[href*="instagram"],
.social-links a[title*="Instagram"] {
  background: linear-gradient(135deg, #e4405f 0%, #c13584 100%);
}

.social-links a[href*="instagram"]:hover,
.social-links a[title*="Instagram"]:hover {
  background: linear-gradient(135deg, #c13584 0%, #833ab4 100%);
}

/* WhatsApp */
.social-links a[href*="wa.me"],
.social-links a[href*="whatsapp"],
.social-links a[title*="WhatsApp"] {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
}

.social-links a[href*="wa.me"]:hover,
.social-links a[href*="whatsapp"]:hover,
.social-links a[title*="WhatsApp"]:hover {
  background: linear-gradient(135deg, #128c7e 0%, #075e54 100%);
}

/* Twitter/X */
.social-links a[href*="twitter"],
.social-links a[title*="Twitter"] {
  background: linear-gradient(135deg, #1da1f2 0%, #0d8bd9 100%);
}

.social-links a[href*="twitter"]:hover,
.social-links a[title*="Twitter"]:hover {
  background: linear-gradient(135deg, #0d8bd9 0%, #0a73bf 100%);
}

/* ========================================
   20. FOOTER 4 COLUMNAS MEJORADO
   ======================================== */

.footer {
  background: linear-gradient(180deg, #1a1a1a 0%, #0d0d0d 100%);
  color: var(--gray-dark);
  padding: var(--spacing-xxl) 0 var(--spacing-md);
  border-top: 3px solid var(--primary-color);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

.footer-widget {
  display: flex;
  flex-direction: column;
}

.footer-widget h4 {
  color: #ffffff;
  margin-bottom: var(--spacing-md);
  font-size: 1.25rem;
  font-weight: 700;
  position: relative;
  padding-bottom: var(--spacing-sm);
}

.footer-widget h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--primary-color);
  border-radius: 2px;
}

.footer-widget p {
  margin-bottom: var(--spacing-md);
  line-height: 1.6;
  color: #ffffff;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: var(--spacing-sm);
}

.footer-links a {
  color: #ffffff;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-xs) 0;
  text-decoration: none;
}

.footer-links a i {
  color: var(--primary-color);
  font-size: 0.875rem;
  transition: transform 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary-color);
  padding-left: 8px;
}

.footer-links a:hover i {
  transform: translateX(3px);
}

.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
  padding: var(--spacing-sm);
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
}

.footer-contact li:hover {
  background: rgba(255, 255, 255, 0.07);
  transform: translateX(5px);
}

.footer-contact i {
  color: var(--primary-color);
  font-size: 1.25rem;
  width: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-contact strong {
  display: block;
  color: #ffffff;
  margin-bottom: 4px;
  font-weight: 600;
}

.footer-contact a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-contact span {
  color: #ffffff;
}

.footer-contact a:hover {
  color: var(--primary-color);
}

/* Certificaciones */
.certifications {
  display: flex;
  gap: var(--spacing-md);
  margin-top: var(--spacing-md);
  flex-wrap: wrap;
}

.cert-badge {
  background: rgba(255, 255, 255, 0.05);
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  transition: all 0.3s ease;
}

.cert-badge:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

.cert-badge i {
  color: #ffd700;
  font-size: 1.25rem;
}

.cert-badge span {
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 600;
}

/* Footer Bottom */
.footer-bottom {
  padding-top: var(--spacing-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: var(--spacing-xl);
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  color: #ffffff;
  font-size: 0.9rem;
}

.footer-bottom a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.footer-bottom a:hover {
  color: #ffffff;
}

/* Footer Responsive */
@media (max-width: 1024px) {
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
  }
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  .footer-widget h4::after {
    width: 40px;
  }
}

/* ========================================
   21. HEADER SCROLLED STATE
   ======================================== */

.header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  /* background: rgba(27, 54, 93, 0.98); */
}

/* ========================================
   22. SCROLL PROGRESS BAR
   ======================================== */

#scroll-progress,
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  z-index: 9999;
  width: 0;
  transition: width 0.1s ease-out;
  box-shadow: 0 2px 4px rgba(196, 30, 58, 0.3);
}

/* ========================================
   23. NOTIFICATION SYSTEM
   ======================================== */

.notification {
  position: fixed;
  top: 100px;
  right: -400px;
  background: var(--white);
  color: var(--dark-color);
  padding: var(--spacing-md) var(--spacing-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  max-width: 400px;
  min-width: 300px;
  transition: right 0.3s ease, opacity 0.3s ease;
  opacity: 0;
  border-left: 4px solid var(--gray-medium);
}

.notification.show {
  right: 20px;
  opacity: 1;
}

.notification i {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.notification span {
  flex: 1;
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1.4;
}

/* Success notification */
.notification-success {
  background: #d4edda;
  color: #155724;
  border-left-color: #28a745;
}

.notification-success i {
  color: #28a745;
}

/* Error notification */
.notification-error {
  background: #f8d7da;
  color: #721c24;
  border-left-color: #dc3545;
}

.notification-error i {
  color: #dc3545;
}

/* Info notification */
.notification-info {
  background: #d1ecf1;
  color: #0c5460;
  border-left-color: #17a2b8;
}

.notification-info i {
  color: #17a2b8;
}

/* Warning notification */
.notification-warning {
  background: #fff3cd;
  color: #856404;
  border-left-color: #ffc107;
}

.notification-warning i {
  color: #ffc107;
}

/* Notification animations */
@keyframes slideInRight {
  from {
    right: -400px;
    opacity: 0;
  }

  to {
    right: 20px;
    opacity: 1;
  }
}

@keyframes slideOutRight {
  from {
    right: 20px;
    opacity: 1;
  }

  to {
    right: -400px;
    opacity: 0;
  }
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .notification {
    right: -100%;
    max-width: calc(100% - 40px);
    min-width: auto;
    top: 80px;
  }

  .notification.show {
    right: 20px;
  }
}

/* ========================================
   24. FORM ERROR STATES
   ======================================== */

.form-control.error {
  border-color: #dc3545;
  background-color: #fff5f5;
}

.form-control.error:focus {
  border-color: #dc3545;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.15);
}

.error-message {
  display: block;
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: var(--spacing-xs);
  font-weight: 500;
}
