:root {
  --primary-color: #074247;
  --secondary-color: #1d438a;
  --accent-color: #00bfb2;
  --dark-bg: #222a35;
  --light-text: rgba(255, 255, 255, 0.85);
  --transition-slow: all 0.5s ease;
  --transition-medium: all 0.3s ease;
  --transition-fast: all 0.2s ease;
  --glow-color: rgba(0, 191, 178, 0.6);
}

body,
html {
  font-family: "Montserrat", Arial, sans-serif;
  scroll-behavior: smooth;
}

/* Texto justificado */
.text-justify {
  text-align: justify;
}

/* Navbar mejorado */
.navbar {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  transition: var(--transition-medium);
  padding: 0.5rem 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

.navbar.scrolled {
  padding: 0.3rem 0;
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.navbar-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-navbar {
  max-width: 70px;
  transition: var(--transition-medium);
}

.navbar.scrolled .logo-navbar {
  max-width: 60px;
}

.navbar-center {
  display: flex;
  gap: 2.5rem;
}

.navbar-center a {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.8em;
  letter-spacing: 0.1em;
  position: relative;
  padding: 0.5rem 0;
  transition: var(--transition-medium);
  text-decoration: none;
}

.navbar-center a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-color), var(--secondary-color));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.navbar-center a:hover {
  color: var(--secondary-color);
}

.navbar-center a:hover::after,
.navbar-center a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Hero section mejorado */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-top: 0;
  padding-top: 80px;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(7, 66, 71, 0.85), rgba(29, 67, 138, 0.85));
  z-index: -1;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  color: white;
  text-align: left;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  text-transform: uppercase;
  animation: fadeInUp 1s ease-out;
}

.hero-title span {
  color: var(--accent-color);
}

.hero-description {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 2.5rem;
  max-width: 700px;
  animation: fadeInUp 1s ease-out 0.2s;
  animation-fill-mode: both;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  animation: fadeInUp 1s ease-out 0.4s;
  animation-fill-mode: both;
}

.btn-primary {
  background: linear-gradient(90deg, var(--accent-color), var(--secondary-color));
  color: white;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition-medium);
  border: none;
  display: inline-block;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0, 191, 178, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 191, 178, 0.4);
}

.btn-secondary {
  background: transparent;
  color: white;
  padding: 0.9rem 2.4rem;
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition-medium);
  border: 2px solid white;
  display: inline-block;
  text-decoration: none;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
}

/* Sección Nosotros mejorada */
.about-section {
  padding: 6rem 0;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.about-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  padding: 0 2rem;
}

.about-image {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.about-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
  position: relative;
  padding-bottom: 1rem;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-color), var(--secondary-color));
}

.about-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #555;
  margin-bottom: 2rem;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.feature-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.feature-text {
  font-weight: 500;
  color: #444;
}

/* Sección de servicios mejorada */
.services-section {
  padding: 6rem 0;
  background-color: var(--dark-bg);
  position: relative;
  overflow: hidden;
}

.services-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI1IiBoZWlnaHQ9IjUiPgo8cmVjdCB3aWR0aD0iNSIgaGVpZ2h0PSI1IiBmaWxsPSIjMjIyQTM1Ij48L3JlY3Q+CjxwYXRoIGQ9Ik0wIDVMNSAwWk02IDRMNCA2Wk0tMSAxTDEgLTFaIiBzdHJva2U9IiMzMzM5NDUiIHN0cm9rZS13aWR0aD0iMSI+PC9wYXRoPgo8L3N2Zz4=");
  opacity: 0.3;
  z-index: 0;
}

.services-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

.section-title-light {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: white;
  text-align: center;
  position: relative;
  padding-bottom: 1rem;
}

.section-title-light::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-color), var(--secondary-color));
}

.section-subtitle {
  text-align: center;
  color: var(--light-text);
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto 4rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 2.5rem 2rem;
  transition: transform 0.5s ease, background-color 0.5s ease;
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-color), var(--secondary-color));
  transition: var(--transition-medium);
}

.service-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.08);
}

.service-icon {
  font-size: 2.5rem;
  color: var(--accent-color);
  margin-bottom: 1.5rem;
}

.service-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: white;
  margin-bottom: 1rem;
}

.service-description {
  color: var(--light-text);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.service-link {
  color: var(--accent-color);
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-fast);
}

.service-link:hover {
  color: white;
}

.service-link i {
  font-size: 0.8rem;
  transition: var(--transition-fast);
}

.service-link:hover i {
  transform: translateX(3px);
}

/* Sección de estadísticas */
.stats-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
}

.stats-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding: 0 2rem;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: linear-gradient(90deg, white, var(--accent-color));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-text {
  font-size: 1rem;
  font-weight: 500;
}

/* Sección de contacto mejorada */
.contact-section {
  padding: 6rem 0;
  background-color: var(--dark-bg);
  position: relative;
  overflow: hidden;
}

.contact-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

.contact-info {
  color: white;
}

.contact-info p {
  color: var(--light-text);
  margin-bottom: 2.5rem;
  font-size: 1.1rem;
  line-height: 1.7;
}

.contact-details {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-details li {
  margin-bottom: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-color);
  font-size: 1rem;
  flex-shrink: 0;
}

.contact-text {
  flex-grow: 1;
}

.contact-text h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.contact-text p,
.contact-text a {
  color: var(--light-text);
  margin: 0;
  text-decoration: none;
  transition: var(--transition-fast);
}

.contact-text a:hover {
  color: var(--accent-color);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.social-link {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
  transition: var(--transition-medium);
}

.social-link:hover {
  background: var(--accent-color);
  transform: translateY(-3px);
}

.contact-form {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 2.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  color: white;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 1rem;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: white;
  transition: var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-color);
  background: rgba(255, 255, 255, 0.1);
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.form-submit {
  background: linear-gradient(90deg, var(--accent-color), var(--secondary-color));
  color: white;
  padding: 1rem 2rem;
  border-radius: 5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition-medium);
  border: none;
  cursor: pointer;
  width: 100%;
}

.form-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Footer simplificado */
.footer {
  background-color: #1a1f25;
  color: var(--light-text);
  padding: 1.5rem 0;
  text-align: center;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-bottom {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Animaciones */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 1s ease-out;
}

.delay-1 {
  animation-delay: 0.2s;
}

.delay-2 {
  animation-delay: 0.4s;
}

.delay-3 {
  animation-delay: 0.6s;
}

/* Responsive */
@media (max-width: 1200px) {
  .about-container,
  .contact-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-image {
    order: -1;
  }

  .stats-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .hero-title {
    font-size: 2.8rem;
  }

  .section-title,
  .section-title-light {
    font-size: 2.2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .hero-content {
    text-align: center;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .about-features {
    grid-template-columns: 1fr;
  }

  .navbar-center {
    gap: 1.5rem;
  }

  .navbar-center a {
    font-size: 0.7em;
  }

  .map-info {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: 80%;
    max-width: 300px;
  }

  .map-info:hover {
    transform: translateX(-50%) translateY(-5px);
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2.2rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    text-align: center;
  }

  .stats-container {
    grid-template-columns: 1fr;
  }

  .navbar-container {
    flex-direction: column;
    padding: 0.5rem;
  }

  .navbar-center {
    margin-top: 0.5rem;
    gap: 1rem;
  }

  .hero-section {
    padding-top: 120px;
  }
}

/* Estilos para el sidebar mejorado */
#sidebar {
  transition: all 0.5s ease;
}

#sidebar nav a::after {
  transition: all 0.5s ease;
}

#sidebar nav a:hover::after {
  max-width: 100%;
}

/* Ajustes para Info_servicios.html */
.service-categories .category-btn {
  transition: all 0.3s ease;
}

.service-categories .category-btn:hover {
  transform: translateY(-3px);
}

.service-card .service-btn {
  transition: all 0.3s ease;
}

.service-card .service-btn:hover {
  transform: translateY(-3px);
  color: white !important;
}

/* Modificación para el hero con imagen de fondo */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(7, 66, 71, 0.85), rgba(29, 67, 138, 0.85));
  z-index: -1;
}

/* Nuevo Glow Menu Component */
.glow-menu-button {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 0 15px var(--glow-color);
  transition: all 0.3s ease;
  overflow: hidden;
}

.glow-menu-button::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 50%;
  background: linear-gradient(45deg, var(--accent-color), var(--secondary-color), var(--accent-color));
  z-index: -1;
  animation: glowing 3s linear infinite;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.glow-menu-button:hover {
  transform: scale(1.1);
  box-shadow: 0 0 25px var(--glow-color);
}

.glow-menu-button:hover::before {
  opacity: 1;
}

.glow-menu-items {
  position: fixed;
  bottom: 100px;
  right: 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 999;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all 0.3s ease;
}

.glow-menu-items.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.glow-menu-item {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 1.2rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
}

.glow-menu-item:hover {
  transform: scale(1.1);
  box-shadow: 0 0 15px var(--glow-color);
}

.glow-menu-item::after {
  content: attr(data-tooltip);
  position: absolute;
  right: 60px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
  pointer-events: none;
}

.glow-menu-item:hover::after {
  opacity: 1;
  transform: translateX(0);
}

@keyframes glowing {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
