* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Regla global para quitar subrayado de enlaces */
a {
  text-decoration: none !important;
}

/* Regla específica para el botón de servicio */
a[href*="Evaluacion"] {
  text-decoration: none !important;
}

a[href*="Evaluacion"] * {
  text-decoration: none !important;
}

html {
  scroll-behavior: smooth;
  background-color: #111827;
  /* Prevenir scroll automático en iOS */
  -webkit-overflow-scrolling: touch;
  overflow-x: hidden;
}

/* Prevenir scroll automático específicamente en index.php */
html.index-home {
  scroll-behavior: smooth !important;
  -webkit-overflow-scrolling: touch !important;
}

body {
  font-family: "Arial", sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #111827;
  margin: 0;
  padding: 0;
  /* Prevenir scroll automático en iOS */
  -webkit-overflow-scrolling: touch;
  overflow-x: hidden;
}

/* Asegurar que el fondo del body sea consistente en todas las páginas */
body.index-home {
  background-color: #111827;
  scroll-behavior: smooth !important;
  -webkit-overflow-scrolling: touch !important;
  position: static !important;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Top Bar */
.top-bar {
  background: #6952eb;
  color: white;
  padding: 8px 0;
  font-size: 14px;
  text-align: center;
  position: relative;
  z-index: 100;
}

/* Header sticky para logo y navbar juntos */
.main-header {
  position: static;
  top: auto;
  z-index: 100;
  background-color: #111827;
}

/* Navigation */
.navbar {
  position: static;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0 32px;
  box-sizing: border-box;
  background-color: #111827;
}

.logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-icon {
  background: white;
  color: #6952eb;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  color: white;
  font-size: 24px;
  font-weight: bold;
}

.brand-tagline {
  color: #ccc;
  font-size: 14px;
}

.nav-menu {
  display: flex;
  flex-direction: row;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-menu a {
  color: white;
  text-decoration: none;
  transition: color 0.3s;
}

.nav-menu a:hover {
  color: #6952eb;
}

.btn-service {
  background: #6952eb !important;
  padding: 8px 16px !important;
  border-radius: 20px !important;
  color: white !important;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-box input[type="text"] {
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid #bbb;
  font-size: 1rem;
}

.mobile-menu-toggle {
  margin-left: 16px;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: white;
  margin: 3px 0;
  transition: 0.3s;
}

/* Hero Section */
.hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
  overflow: hidden;
  margin-bottom: 0;
  -webkit-overflow-scrolling: touch;
}

.hero-grid {
  display: flex;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  min-height: 60vh;
  text-align: center;

  align-items: stretch;
}

@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }
}

.hero-block {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 80px 60px;
  text-align: center;
  overflow: hidden;
  min-height: 60vh;
  width: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-block:first-child {
  background-image: url("../img/cambio-de-placamadre.webp");
}

.hero-block:last-child {
  background-image: url("../img/computador-gamer.webp");
}
/* Tamaño base */
.hero-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: white;
  margin-bottom: 2rem;
  position: relative;
  z-index: 2;
  line-height: 1.2;
  max-width: 600px;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center; /* Para centrar el texto si se adapta */
}

.hero-btn {
  padding: 28px 56px;
  border: none;
  border-radius: 60px;
  font-size: 1.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  min-width: 300px;
}

.btn-purple.hero-btn {
  background: #6952eb;
  color: white;
  box-shadow: 0 4px 15px rgba(105, 82, 235, 0.4);
}

.btn-purple.hero-btn:hover {
  background: #6952eb;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(105, 82, 235, 0.6);
}

.btn-green.hero-btn {
  background: #b3ff3b;
  color: #000000;
  box-shadow: 0 4px 15px rgba(179, 255, 59, 0.4);
}

.btn-green.hero-btn:hover {
  background: #a3ef2b;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(179, 255, 59, 0.6);
}

/* Animaciones adicionales */
.hero-block {
  animation: fadeInUp 0.8s ease-out;
}

.hero-block:last-child {
  animation-delay: 0.2s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-block::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.5); /* Cambia el color y opacidad aquí */
  z-index: 1;
  pointer-events: none;
}
/* Efectos de partículas adicionales */
.hero-block::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3Ccircle cx='10' cy='10' r='1'/%3E%3Ccircle cx='50' cy='10' r='1'/%3E%3Ccircle cx='10' cy='50' r='1'/%3E%3Ccircle cx='50' cy='50' r='1'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  z-index: 1;
}

.hero-card {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.hero-card h2 {
  color: #222;
  font-size: 2rem;
  margin-bottom: 18px;
  text-align: center;
  font-weight: 700;
}

.purple-card {
  background: linear-gradient(135deg, #a5b4fc, #c7d2fe);
}

.white-card {
  background: white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.hero-card h2 {
  font-size: 28px;
  font-weight: bold;
  color: #2d2d2d;
}

.btn {
  padding: 12px 30px;
  border: none;
  border-radius: 25px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-purple {
  background: #6952eb;
  color: white;
}

.btn-purple:hover {
  background: #6952eb;
  transform: translateY(-2px);
}

.btn-green {
  background: #10b981;
  color: white;
}

.btn-green:hover {
  background: #059669;
  transform: translateY(-2px);
}

/* Services Section */
.services {
  background: #111827;
  padding: 80px 0;
}

.section-title {
  text-align: center;
  font-size: 36px;
  margin-bottom: 60px;
  color: white;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.service-card {
  background: #3d3d3d;
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  transition: transform 0.3s;
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-icon {
  width: 80px;
  height: 80px;
  background: #ccc;
  border-radius: 50%;
  margin: 0 auto 20px;
}

.service-card h3 {
  color: white;
  margin-bottom: 20px;
  font-size: 18px;
}

/* Contact Section */
.contact {
  background: #111827 !important;
  padding: 60px 0;
}

.contact-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
}

.contact-info h2 {
  font-size: 32px;
  margin-bottom: 10px;
}

.form-input {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 12px 20px;
  border-radius: 25px;
  color: white;
  width: 300px;
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.social-links {
  display: flex;
  gap: 20px;
}

.social-links a {
  color: white;
  font-size: 24px;
  transition: color 0.3s;
}

.social-links a:hover {
  color: #e0e7ff;
}

/* Stats Section */
.stats {
  background: #111827;
  padding: 80px 0;
}

.stats .section-title {
  color: white;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  text-align: center;
}

/* Eliminado - conflicto con nueva definición */

.stat-label {
  color: white;
  font-size: 16px;
  margin-top: 10px;
}

/* Reviews Section */
.reviews {
  background-color: #111827;
  padding: 60px 20px;
  position: relative;
  z-index: 10;
}

.reviews-container {
  max-width: 1200px;
  margin: 0 auto;
}

.reviews-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 2rem;
  color: white;
}

.reviews-grid {
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
}

.review-card {
  background-color: #111827 !important;
  border: 1px solid #374151;
  border-radius: 0.5rem;
  padding: 30px 20px;
  width: 275px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 300px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.review-card:hover {
  background-color: #111827 !important;
  border-color: #6952eb;
  transform: translateY(-5px);
  box-shadow: 0 8px 32px 0 rgba(105, 82, 235, 0.3);
}

.review-text {
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 30px;
  color: #fff;
  font-weight: 400;
}

.stars {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 20px;
}

.star {
  width: 24px;
  height: 24px;
  background-color: #6952eb;
  clip-path: polygon(
    50% 0%,
    61% 35%,
    98% 35%,
    68% 57%,
    79% 91%,
    50% 70%,
    21% 91%,
    32% 57%,
    2% 35%,
    39% 35%
  );
  transition: all 0.3s ease;
}

.review-card:hover .star {
  background-color: #6952eb;
  transform: scale(1.1);
}

.reviewer-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  margin-top: 10px;
}

/* Instagram Section */
.instagram-section {
  width: 100%;
  text-align: center;
  background-color: #111827;
  padding: 60px 0;
  position: relative;
  z-index: 10;
}

.instagram-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 2rem;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.gallery-container {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.gallery-wrapper {
  display: flex;
  gap: 20px;
  padding: 0 20px;
  cursor: grab;
  user-select: none;
}

.gallery-wrapper:active {
  cursor: grabbing;
}

.gallery-item {
  flex: 0 0 180px;
  height: 180px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* Eliminado - flechas de navegación */

/* Animation for gallery items */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.gallery-item {
  animation: fadeInUp 0.6s ease forwards;
}

.gallery-item:nth-child(1) {
  animation-delay: 0.1s;
}
.gallery-item:nth-child(2) {
  animation-delay: 0.2s;
}
.gallery-item:nth-child(3) {
  animation-delay: 0.3s;
}
.gallery-item:nth-child(4) {
  animation-delay: 0.4s;
}
.gallery-item:nth-child(5) {
  animation-delay: 0.5s;
}
.gallery-item:nth-child(6) {
  animation-delay: 0.6s;
}

/* Login Page Styles */
.login-page {
  min-height: 100vh;
  height: 100vh;
  background: #6952eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Arial", sans-serif;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
}

.login-page::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3Ccircle cx='10' cy='10' r='1'/%3E%3Ccircle cx='50' cy='10' r='1'/%3E%3Ccircle cx='10' cy='50' r='1'/%3E%3Ccircle cx='50' cy='50' r='1'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.login-background {
  width: 100%;
  max-width: 450px;
  padding: 20px;
  position: relative;
  z-index: 2;
}

.login-container {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  padding: 48px 40px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: slideInUp 0.6s ease-out;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-header {
  text-align: center;
  margin-bottom: 40px;
}

.login-logo {
  width: 80px;
  height: 80px;
  background: #6952eb;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  box-shadow: 0 8px 32px rgba(105, 82, 235, 0.4);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.login-logo i {
  font-size: 32px;
  color: white;
}

.login-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 8px;
}

.login-header p {
  color: #718096;
  font-size: 1rem;
  margin: 0;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.input-group {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #a0aec0;
  font-size: 18px;
  z-index: 2;
  transition: color 0.3s ease;
}

.input-group input {
  width: 100%;
  padding: 16px 16px 16px 56px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 1rem;
  background: white;
  color: #2d3748;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.input-group input:focus {
  outline: none;
  border-color: #6952eb;
  box-shadow: 0 0 0 3px rgba(105, 82, 235, 0.1);
}

.input-group input:focus + .input-icon {
  color: #6952eb;
}

.input-group input::placeholder {
  color: #a0aec0;
}

.login-btn {
  background: #6952eb;
  color: white;
  border: none;
  border-radius: 12px;
  padding: 16px 24px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: 0 4px 16px rgba(105, 82, 235, 0.3);
  position: relative;
  overflow: hidden;
}

.login-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.login-btn:hover::before {
  left: 100%;
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(105, 82, 235, 0.4);
}

.login-btn:active {
  transform: translateY(0);
}

.login-error {
  background: linear-gradient(135deg, #fed7d7, #feb2b2);
  color: #c53030;
  padding: 16px;
  border-radius: 12px;
  text-align: center;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 500;
  border: 1px solid #feb2b2;
  animation: shake 0.5s ease-in-out;
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}

.login-footer {
  text-align: center;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #e2e8f0;
}

.back-link {
  color: #6952eb;
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.back-link:hover {
  color: #6952eb;
  transform: translateX(-4px);
}

/* Responsive Design for Login */
@media (max-width: 480px) {
  .login-background {
    padding: 16px;
  }

  .login-container {
    padding: 32px 24px;
  }

  .login-header h2 {
    font-size: 1.75rem;
  }

  .login-logo {
    width: 64px;
    height: 64px;
  }

  .login-logo i {
    font-size: 24px;
  }
}

/* Footer */
.footer {
  background-color: #6952eb !important;
  padding: 20px 0;
  text-align: center;
  color: white;
  /* background: linear-gradient(135deg, #7c3aed, #a855f7); */
}

/* Responsive Design */
@media (max-width: 768px) {
  /* Hero Section Mobile - ELIMINADO */

  /* Navigation Mobile */
  .nav-menu {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .navbar {
    padding: 0 16px;
  }

  /* Services Section Mobile */
  .services-section {
    padding: 1rem 1rem;
  }

  .services-section .section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
  }

  .services-section .services-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 500px;
  }

  .services-section .service-card {
    padding: 1rem;
  }

  .services-section .service-title {
    font-size: 1rem;
    min-height: 2.5rem;
  }

  /* Contact Section Mobile */
  .contact-container {
    flex-direction: column;
    gap: 2rem;
    padding: 0 1rem;
  }

  .contact-content h1 {
    font-size: 2.5rem;
  }

  .contact-content p {
    font-size: 1.1rem;
  }

  .contact-btn-lg {
    padding: 20px 40px;
    font-size: 1.5rem;
    width: 100%;
    max-width: 300px;
  }

  .social-icons {
    gap: 20px;
  }

  .social-icon {
    width: 50px;
    height: 50px;
  }

  /* Stats Section Mobile */
  .stats-section {
    padding: 3rem 1rem;
  }

  .main-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .stat-number {
    font-size: 4rem !important;
  }

  .stat-label {
    font-size: 1rem;
  }

  /* Reviews Section Mobile */
  .reviews {
    padding: 3rem 1rem;
  }

  .reviews-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
  }

  .reviews-grid {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .review-card {
    width: 100%;
    max-width: 350px;
    padding: 1.5rem;
    background-color: #111827 !important;
    border: 1px solid #374151;
  }

  /* Instagram Section Mobile */
  .instagram-section {
    padding: 3rem 1rem;
  }

  .instagram-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
  }

  .gallery-wrapper {
    gap: 10px;
    padding: 0 10px;
  }

  .gallery-item {
    flex: 0 0 120px;
    height: 120px;
  }

  /* Header Mobile */
  .index-home .header-container {
    flex-direction: column;
    gap: 1rem;
    padding: 0 1rem;
  }

  .index-home .nav-section {
    flex-direction: column;
    gap: 1rem;
  }

  .index-home .main-nav {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .index-home .search-input {
    width: 200px;
  }

  .index-home .company-info h1 {
    font-size: 1.5rem;
  }

  /* Hide search box on mobile */
  .search-box {
    display: none;
  }
}

@media (max-width: 480px) {
  /* Hero Section Small Mobile - ELIMINADO */

  /* Services Section Small Mobile */
  .services-section {
    padding: 1rem 0.5rem;
  }

  .services-section .section-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
  }

  .services-section .service-card {
    padding: 0.8rem;
  }

  .services-section .service-title {
    font-size: 0.9rem;
    min-height: 2rem;
  }

  .services-section .services-grid {
    justify-items: center;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 0.5rem;
  }

  .services-section .service-card,
  .servicio-softwares,
  .servicio-2,
  .servicio-3,
  .servicio-4,
  .servicio-5,
  .servicio-6,
  .servicio-7,
  .servicio-8 {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }

  /* Contact Section Small Mobile */
  .contact-container {
    gap: 1.5rem;
    padding: 0 0.5rem;
  }

  .contact-content h1 {
    font-size: 2rem;
  }

  .contact-content p {
    font-size: 1rem;
  }

  .contact-btn-lg {
    padding: 16px 32px;
    font-size: 1.3rem;
    max-width: 280px;
  }

  .social-icons {
    gap: 15px;
  }

  .social-icon {
    width: 45px;
    height: 45px;
  }

  /* Stats Section Small Mobile */
  .stats-section {
    padding: 2rem 0.5rem;
  }

  .main-title {
    font-size: 2rem;
    margin-bottom: 2rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .stat-number {
    font-size: 3rem !important;
  }

  .stat-label {
    font-size: 0.9rem;
  }

  /* Reviews Section Small Mobile */
  .reviews {
    padding: 2rem 0.5rem;
  }

  .reviews-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
  }

  .review-card {
    padding: 1rem;
    min-height: 250px;
    background-color: #111827 !important;
    border: 1px solid #374151;
  }

  /* Instagram Section Small Mobile */
  .instagram-section {
    padding: 2rem 0.5rem;
  }

  .instagram-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
  }

  .gallery-item {
    flex: 0 0 100px;
    height: 100px;
  }

  /* Header Small Mobile */
  .index-home .header-container {
    padding: 0 0.5rem;
  }

  .index-home .main-nav {
    gap: 0.5rem;
  }

  .index-home .main-nav li a {
    font-size: 0.9rem;
    padding: 8px 6px;
  }

  .index-home .search-input {
    width: 150px;
    font-size: 0.9rem;
  }

  .index-home .company-info h1 {
    font-size: 1.3rem;
  }

  .index-home .company-info p {
    font-size: 0.8rem;
  }

  /* Logo adjustments */
  .logo-text {
    display: none;
  }

  /* Logo header responsive ya definido arriba */
}

/* Cambios de color globales */
:root {
  --color-negro: #2d2d2d;
  --color-morado: #6952eb;
}

/* Reemplazo de negro y morado en clases principales */
body,
.top-bar,
.footer,
.logo-header,
.navbar,
.main-header {
  background-color: #111827 !important;
}

.btn-purple,
.btn.btn-purple,
.btn-service,
.purple-card,
.nav-menu li a.active,
.nav-menu li a:hover {
  background-color: var(--color-morado) !important;
  border-color: var(--color-morado) !important;
  color: #fff !important;
}

/* Si hay textos o bordes negros/morados, también los cambio */
.navbar,
.footer-content,
.brand-name,
.brand-tagline {
  color: #fff !important;
}

/* Reemplazo directo de colores antiguos (por si hay hardcodeados) */
/*
Reemplazar en todo el archivo:
#000, black, rgb(0,0,0) => #2d2d2d
#7c3aed, #6f42c1, #6b21a8, #6852eb => #6952eb
*/

/* Evita cualquier cambio de color en hover o active en el navbar */
.nav-menu li a:hover,
.nav-menu li a.active {
  background-color: transparent !important;
  color: white !important;
}

/* Estilos solo para index.php */
.index-home .navbar {
  padding-top: 24px;
  padding-bottom: 24px;
}

/* Estilos para enlaces activos en todas las páginas */
.main-nav li a.active {
  color: white !important;
  font-weight: 600 !important;
}

.main-nav li a.active::after {
  content: "";
  position: absolute;
  width: 100% !important;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: white !important;
  transition: width 0.3s ease;
}
.index-home .nav-menu {
  gap: 150px;
}
.index-home .search-box {
  margin-left: 40px;
}

/* Centrar navbar y juntar servicio con la barra de búsqueda solo en index.php */
.index-home .navbar {
  justify-content: center;
}
.index-home .navbar {
  gap: 0;
}
.index-home .nav-menu {
  gap: 100px;
  margin-right: 0;
}
.index-home .nav-menu li:last-child {
  margin-right: 16px; /* Junta servicio a la barra de búsqueda */
}
.index-home .search-box {
  margin-left: 0;
}

.index-home .nav-divider {
  display: inline-block;
  width: 12px;
  height: 12px;
  background: #6952eb;
  border-radius: 3px;
  margin: 0 16px;
  align-self: center;
}

/* --- DISEÑO EXCLUSIVO PARA INDEX --- */
.index-home {
  font-family: "Arial", sans-serif;
  background-color: #111827;
  /* Prevenir scroll automático en iOS */
  -webkit-overflow-scrolling: touch;
  overflow-x: hidden;
}
.index-home .contact-bar {
  background-color: #6952eb !important;
  color: white;
  text-align: center;
  padding: 8px 0;
  font-size: 14px;
  font-weight: 500;
  position: relative;
  z-index: 100;
  padding-top: env(safe-area-inset-top, 8px);
}
/* Estilos específicos para index-home ya incluidos en el header responsive */
/* Header container responsive ya definido arriba */
.index-home .logo-section {
  display: flex;
  align-items: center;
  gap: 12px;
}
.index-home .logo {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 24px;
  color: #6952eb;
}
.index-home .company-info h1 {
  color: white;
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 2px;
}
.index-home .company-info p {
  color: #cccccc;
  font-size: 14px;
  font-weight: 300;
}
/* Nav section responsive ya definido arriba */
/* Nav left responsive ya definido arriba */
.index-home .nav-right {
  display: flex;
  align-items: center;
  flex: none;
  min-width: 0;
  justify-content: flex-end;
  gap: 0 !important;
  margin-left: auto !important;
  padding-right: 0 !important;
}
/* Main nav responsive ya definido arriba */
/* Main nav li y li a responsive ya definidos arriba */
/* Hover effects ya definidos en el header responsive */
/* Service button responsive ya definido arriba */
.index-home .search-container {
  display: flex;
  align-items: center;
  position: relative;
  gap: 8px;
}
.index-home .search-icon {
  position: static;
  left: unset;
  top: unset;
  transform: none;
  color: #aaa;
  font-size: 18px;
  margin-right: 6px;
  display: flex;
  align-items: center;
  height: 100%;
}
.index-home .search-input {
  background-color: #404040;
  border: 1px solid #555;
  border-radius: 20px;
  padding: 8px 15px;
  color: white;
  font-size: 14px;
  width: 200px;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}
@media (max-width: 768px) {
  .index-home .search-container {
    gap: 4px;
  }
  .index-home .search-input {
    width: 120px;
    font-size: 0.95rem;
  }
  .index-home .search-icon {
    font-size: 16px;
  }
}
.index-home .search-input:focus {
  outline: none;
  border-color: #6952eb;
  background-color: #4a4a4a;
}
.index-home .search-input::placeholder {
  color: #aaa;
}

/* Media queries responsive ya definidas arriba */
/* Media queries responsive ya definidas arriba */

/* Elimina fondo, sombra y borde de las tarjetas hero */
.purple-card,
.white-card {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
}

@media (max-width: 900px) {
  /* Hero Section - ELIMINADO */
}

.nav-divider {
  display: none !important;
}
@media (max-width: 900px) {
  .nav-divider {
    display: none;
  }
}

.main-nav li a[href="Evaluacion.php"]::after {
  display: none !important;
  content: none !important;
}

a[href="Evaluacion.php"] {
  text-decoration: none !important;
}

/* Quitar subrayado del botón de servicio */
a[href="Evaluacion.html"] {
  text-decoration: none !important;
}

a[href="Evaluacion.html"] .service-btn {
  text-decoration: none !important;
}

.service-btn {
  text-decoration: none !important;
}

/* Reglas adicionales para asegurar que no haya subrayado */
a .service-btn,
.service-btn,
button.service-btn {
  text-decoration: none !important;
  border: none !important;
  outline: none !important;
}

/* Regla específica para cualquier enlace que contenga el botón */
a:has(.service-btn) {
  text-decoration: none !important;
}

/* Regla para el botón específico del servicio */
a[href="Evaluacion.html"] button.service-btn {
  text-decoration: none !important;
  border: none !important;
  outline: none !important;
}

/* --- Servicios Modernos (sobrescribe y mejora) --- */
.services-section {
  background-color: #111827;
  padding: 1rem 1rem;
  margin-top: 2rem;
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.services-section .container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.services-section .section-title {
  font-size: 2.5rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 2rem;
  color: white;
}
.services-section .services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  justify-items: center;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .services-section .services-grid {
    grid-template-columns: repeat(2, 1fr);
    justify-items: center;
    align-items: center;
    justify-content: center;
    gap: 2rem;
  }
}
@media (min-width: 1024px) {
  .services-section .services-grid {
    grid-template-columns: repeat(4, 1fr);
    justify-items: center;
    align-items: center;
    justify-content: center;
    gap: 2rem;
  }
}

/* --- Estilos unificados para todas las tarjetas de servicios --- */
.services-section .service-card,
.servicio-softwares,
.servicio-2,
.servicio-3,
.servicio-4,
.servicio-5,
.servicio-6,
.servicio-7,
.servicio-8 {
  background-color: #111827 !important;
  border: 1px solid #374151;
  border-radius: 0.5rem;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 316px;
  height: 482px;
  max-width: 100%;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}

.services-section .service-card:hover,
.servicio-softwares:hover,
.servicio-2:hover,
.servicio-3:hover,
.servicio-4:hover,
.servicio-5:hover,
.servicio-6:hover,
.servicio-7:hover,
.servicio-8:hover {
  background-color: #111827 !important;
  border-color: #6952eb;
  transform: translateY(-5px);
  box-shadow: 0 8px 32px 0 rgba(105, 82, 235, 0.3);
}

/* --- Contenedor de iconos --- */
.services-section .icon-container,
.servicio-softwares .icon-container,
.servicio-2 .icon-container,
.servicio-3 .icon-container,
.servicio-4 .icon-container,
.servicio-5 .icon-container,
.servicio-6 .icon-container,
.servicio-7 .icon-container,
.servicio-8 .icon-container {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
}

/* --- Iconos de servicios --- */
.services-section .service-icon,
.servicio-softwares .service-icon,
.servicio-2 .service-icon,
.servicio-3 .service-icon,
.servicio-4 .service-icon,
.servicio-5 .service-icon,
.servicio-6 .service-icon,
.servicio-7 .service-icon,
.servicio-8 .service-icon {
  border-radius: 0 !important;
  background: none !important;
  box-shadow: none !important;
  border: none !important;
  width: 120px;
  height: 120px;
  object-fit: contain;
  display: block;
  margin: 0 auto 2rem auto;
}

/* --- Títulos de servicios --- */
.services-section .service-title,
.servicio-softwares .service-title,
.servicio-2 .service-title,
.servicio-3 .service-title,
.servicio-4 .service-title,
.servicio-5 .service-title,
.servicio-6 .service-title,
.servicio-7 .service-title,
.servicio-8 .service-title {
  color: #fff !important;
  font-weight: 600;
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
  min-height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  white-space: normal;
  word-break: break-word;
  line-height: 1.3;
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
  padding: 0.5rem 0;
}

/* --- Botones de servicios --- */
.services-section .service-button,
.servicio-softwares .service-button,
.servicio-2 .service-button,
.servicio-3 .service-button,
.servicio-4 .service-button,
.servicio-5 .service-button,
.servicio-6 .service-button,
.servicio-7 .service-button,
.servicio-8 .service-button {
  background-color: #6952eb;
  color: white;
  border: none;
  padding: 0.5rem 1.5rem;
  border-radius: 9999px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-size: 0.875rem;
  margin-bottom: 0;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.services-section .service-button:hover,
.servicio-softwares .service-button:hover,
.servicio-2 .service-button:hover,
.servicio-3 .service-button:hover,
.servicio-4 .service-button:hover,
.servicio-5 .service-button:hover,
.servicio-6 .service-button:hover,
.servicio-7 .service-button:hover,
.servicio-8 .service-button:hover {
  background-color: #6952eb;
}

@media (max-width: 767px) {
  .services-section .section-title {
    font-size: 2rem;
  }
  .services-section {
    padding: 1.5rem 1rem;
  }
  .services-section .services-grid {
    justify-items: center;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
  }
  .services-section .service-card,
  .servicio-softwares,
  .servicio-2,
  .servicio-3,
  .servicio-4,
  .servicio-5,
  .servicio-6,
  .servicio-7,
  .servicio-8 {
    width: 100%;
    max-width: 316px;
    margin: 0 auto;
  }
}

/* Botón especial para la sección de contacto */
.contact-section-btn {
  background-color: #6952eb;
  color: #fff;
  border: none;
  border-radius: 9999px;
  padding: 1rem 2.5rem;
  font-size: 1.15rem;
  font-weight: 600;
  box-shadow: 0 2px 16px 0 rgba(105, 82, 235, 0.1);
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
  margin: 0 auto;
  display: block;
}
.contact-section-btn:hover,
.contact-section-btn:focus {
  background-color: #6952eb;
  box-shadow: 0 4px 24px 0 rgba(105, 82, 235, 0.18);
  transform: translateY(-2px) scale(1.03);
  outline: none;
}
@media (max-width: 600px) {
  .contact-section-btn {
    width: 100%;
    padding: 1rem 0;
    font-size: 1rem;
  }
}

/* --- Efecto especial para Desarrollo de Softwares: igual que las demás tarjetas, solo borde y overlay en hover --- */
.servicio-softwares {
  position: relative;
  overflow: hidden;
}
.servicio-softwares::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 10;
  background: linear-gradient(rgba(53, 37, 143, 0.6), rgba(53, 37, 143, 0.6)),
    url("img/creacion-sitios-web.webp") center/cover no-repeat;
}
.servicio-softwares:hover::after {
  opacity: 1;
}

/* --- Efecto de borde con imagen y opacidad al hacer hover en Desarrollo de Softwares y las otras tarjetas --- */
.servicio-softwares,
.servicio-2,
.servicio-3,
.servicio-4,
.servicio-5,
.servicio-6,
.servicio-7,
.servicio-8 {
  position: relative;
  overflow: hidden;
}
.servicio-softwares::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 10;
  background: linear-gradient(rgba(53, 37, 143, 0.6), rgba(53, 37, 143, 0.6)),
    url("img/creacion-sitios-web.webp") center/cover no-repeat;
}
.servicio-2::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 10;
  background: linear-gradient(rgba(53, 37, 143, 0.6), rgba(53, 37, 143, 0.6)),
    url("img/arreglar-computadores.webp") center/cover no-repeat;
}
.servicio-3::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 10;
  background: linear-gradient(rgba(53, 37, 143, 0.6), rgba(53, 37, 143, 0.6)),
    url("img/crear-app-movil.webp") center/cover no-repeat;
}
.servicio-4::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 10;
  background: linear-gradient(rgba(53, 37, 143, 0.6), rgba(53, 37, 143, 0.6)),
    url("img/seguridad-informatica.webp") center/cover no-repeat;
}
.servicio-5::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 10;
  background: linear-gradient(rgba(53, 37, 143, 0.6), rgba(53, 37, 143, 0.6)),
    url("img/arreglar-archivos.webp") center/cover no-repeat;
}
.servicio-6::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 10;
  background: linear-gradient(rgba(53, 37, 143, 0.6), rgba(53, 37, 143, 0.6)),
    url("img/mantencion-servidores.webp") center/cover no-repeat;
}
.servicio-7::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 10;
  background: linear-gradient(rgba(53, 37, 143, 0.6), rgba(53, 37, 143, 0.6)),
    url("img/proyectos-informaticos.webp") center/cover no-repeat;
}
.servicio-8::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 10;
  background: linear-gradient(rgba(53, 37, 143, 0.6), rgba(53, 37, 143, 0.6)),
    url("img/puntos-de-red.webp") center/cover no-repeat;
}
.servicio-softwares:hover::after,
.servicio-2:hover::after,
.servicio-3:hover::after,
.servicio-4:hover::after,
.servicio-5:hover::after,
.servicio-6:hover::after,
.servicio-7:hover::after,
.servicio-8:hover::after {
  opacity: 1;
}

/* --- Eliminado: Definiciones duplicadas unificadas arriba --- */
/* --- Eliminado: Definiciones duplicadas unificadas arriba --- */

.servicio-softwares .service-hover-text,
.servicio-2 .service-hover-text,
.servicio-3 .service-hover-text,
.servicio-4 .service-hover-text,
.servicio-5 .service-hover-text,
.servicio-6 .service-hover-text,
.servicio-7 .service-hover-text,
.servicio-8 .service-hover-text {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: "Poppins", Arial, sans-serif;
  font-weight: 500;
  font-size: 20px;
  color: #fff;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  background: none;
  opacity: 0;
  pointer-events: none;
  padding: 2rem;
  transition: opacity 0.3s;
}
.servicio-softwares:hover .service-hover-text,
.servicio-2:hover .service-hover-text,
.servicio-3:hover .service-hover-text,
.servicio-4:hover .service-hover-text,
.servicio-5:hover .service-hover-text,
.servicio-6:hover .service-hover-text,
.servicio-7:hover .service-hover-text,
.servicio-8:hover .service-hover-text {
  opacity: 1;
  pointer-events: auto;
}

/* === MODERNO: Sección de Contacto y Estadísticas === */
.contact-section {
  background: #6952eb;
  color: white;
  padding: 120px 0 80px 0;
  min-height: 60vh;
  display: flex;
  align-items: center;
  margin-bottom: 0;
  position: relative;
  z-index: 10;
  overflow: hidden;
}

.contact-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
  pointer-events: none;
}
.contact-container {
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0 20px;
}
.contact-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding-left: 30px;
}

.contact-content h1 {
  font-size: 4.5rem;
  font-weight: 800;
  margin-bottom: 30px;
  line-height: 1.1;

  background: linear-gradient(135deg, #ffffff, #e0e7ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.contact-content p {
  font-size: 1.5rem;
  opacity: 0.9;
  margin-bottom: 10px;
}

/* Estilos para las columnas de contacto */
.contact-left {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
}
.contact-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}
.contact-btn {
  background-color: #374151;
  color: white;
  padding: 20px 60px;
  border: none;
  border-radius: 50px;
  font-size: 1.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}
.contact-btn:hover {
  background-color: #1f2937;
  transform: translateY(-2px);
}
.contact-btn-lg {
  font-size: 2.2rem;
  padding: 24px 280px;
  border-radius: 70px;
  font-weight: 700;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
  background: #000000;
  color: #ffffff;
  border: 3px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.contact-btn-lg:hover {
  background: #35258f !important;
  transform: translateY(-2px);
  box-shadow: 0 12px 40px 0 rgba(53, 37, 143, 0.4);
}

.contact-btn-lg::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transition: left 0.5s;
}

.contact-btn-lg:hover::before {
  left: 100%;
}
@media (max-width: 768px) {
  .contact-title-row {
    flex-direction: column;
    gap: 18px !important;
    align-items: stretch !important;
  }
  .contact-btn-lg {
    width: 100%;
    text-align: center;
    margin-left: 0;
    margin-bottom: 32px;
  }
}
.social-icons {
  display: flex;
  gap: 35px;
}
.social-icon {
  width: 60px;
  height: 60px;
  border: 2px solid white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.social-icon-img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  transition: all 0.3s ease;
}
.social-icon:hover {
  background-color: white;
  color: #6952eb;
  transform: scale(1.1);
}

.social-icon:hover .social-icon-img {
  filter: brightness(0) invert(0);
}

.stats-section {
  width: 100%;
  padding: 60px 20px;
  background-color: #111827;
  position: relative;
  z-index: 10;
}

.main-title {
  font-size: 3.5rem;
  font-weight: bold;
  color: white;
  margin-bottom: 80px;
  letter-spacing: -0.02em;
  text-align: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 60px;
  align-items: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.stat-number {
  font-size: 3.5rem !important;
  font-weight: 900 !important;
  color: #6952eb !important;
  line-height: 1.1 !important;
  margin-bottom: 20px !important;
  letter-spacing: -0.02em !important;
  display: block !important;
  text-align: center !important;
  overflow: visible !important;
}
@media (max-width: 1024px) {
  .stat-number {
    font-size: 2.5rem !important;
  }
}
@media (max-width: 600px) {
  .stat-number {
    font-size: 2rem !important;
  }
}

.stat-label {
  font-size: 1.5rem;
  font-weight: 600;
  color: white;
  line-height: 1.3;
}
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.counter {
  opacity: 1 !important;
}
.counter.animate {
  opacity: 1 !important;
}
@media (max-width: 768px) {
  .contact-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .contact-content h1 {
    font-size: 2.5rem;
  }
  .contact-content p {
    font-size: 1.2rem;
  }

  /* Responsive para las columnas de contacto */
  .contact-left {
    text-align: center;
    gap: 15px;
  }

  .contact-right {
    align-items: center;
    gap: 20px;
  }

  .contact-right .contact-btn {
    width: 100%;
    text-align: center;
    margin-left: 0;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .main-title {
    font-size: 2.5rem;
    margin-bottom: 50px;
  }

  .stat-number {
    font-size: 5rem;
  }

  .stat-label {
    font-size: 1.2rem;
  }
  .social-icons {
    justify-content: center;
  }
}
@media (max-width: 1024px) {
  .main-title {
    font-size: 3rem;
    margin-bottom: 60px;
  }

  .stats-grid {
    gap: 40px;
  }

  .stat-number {
    font-size: 6rem;
  }

  .stat-label {
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .main-title {
    font-size: 2rem;
    margin-bottom: 40px;
  }

  .stat-number {
    font-size: 4rem;
  }

  .stat-label {
    font-size: 1.1rem;
  }

  .stats-section {
    padding: 40px 20px;
  }

  .contact-content h1 {
    font-size: 2rem;
  }
  .contact-btn {
    padding: 15px 40px;
    font-size: 1.2rem;
  }
}

/* === RESPONSIVE UNIVERSAL === */
@media (max-width: 1200px) {
  .container,
  .stats-container {
    max-width: 100%;
    padding: 0 10px;
  }
  .services-section .services-grid,
  .stats-grid,
  .instagram-grid,
  .reviews-grid {
    gap: 20px;
  }
}
@media (max-width: 900px) {
  .main-header {
    padding: 0 !important;
  }

  /* Asegurar que el navbar no se mueva en móvil */
  @media (max-width: 768px) {
    .main-header,
    .logo-header,
    .header-container,
    .nav-section,
    .nav-left,
    .nav-right {
      position: static !important;
      z-index: 100 !important;
      top: unset !important;
      left: unset !important;
      right: unset !important;
      transform: none !important;
      background: none !important;
      box-shadow: none !important;
    }
    .logo-header {
      background: #111827;
      padding: 8px 0;
    }
    .main-header {
      background: transparent;
      margin-top: 0 !important;
      padding: 0;
    }
    .header-container {
      flex-direction: column !important;
      gap: 0 !important;
      padding: 0 1rem !important;
      align-items: stretch !important;
    }
    .nav-section {
      flex-direction: column !important;
      gap: 0 !important;
      width: 100% !important;
      align-items: stretch !important;
    }
    .nav-left,
    .nav-right {
      margin-top: 0 !important;
      width: 100% !important;
      justify-content: center !important;
      align-items: center !important;
      flex-direction: row !important;
      gap: 10px !important;
      padding: 0 !important;
    }
    .hero {
      margin-top: 0 !important;
    }
  }
  .header-container {
    flex-direction: column !important;
    padding: 0 4px !important;
  }
  .nav-section {
    flex-direction: column !important;
    width: 100% !important;
    gap: 0 !important;
  }
  .nav-left,
  .nav-right {
    width: 100% !important;
    justify-content: center !important;
    gap: 0 !important;
  }
  .main-nav {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    overflow: hidden !important;
    gap: 10px !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    background: none !important;
    justify-content: center !important;
  }
  .main-nav li {
    flex: 0 0 auto !important;
    margin: 2px !important;
  }
  .main-nav li a {
    font-size: 1rem !important;
    padding: 8px 6px !important;
    white-space: nowrap !important;
    min-height: 44px !important;
    min-width: 44px !important;
  }
  .nav-divider {
    display: none !important;
  }
  .service-btn {
    font-size: 1rem !important;
    padding: 8px 12px !important;
    margin: 8px 0 !important;
  }
  .search-container {
    display: inline-flex !important;
    align-items: center !important;
    width: auto !important;
    margin: 0 !important;
  }
  .search-input {
    width: 100% !important;
    min-width: 0 !important;
    font-size: 1rem !important;
  }
  .login-icon {
    display: none !important;
  }
  .nav-right {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    width: 100% !important;
  }
  .service-btn {
    margin: 0 8px 0 0 !important;
    display: inline-flex !important;
    vertical-align: middle !important;
  }
}
@media (max-width: 600px) {
  .logo-header img {
    height: 40px !important;
  }
}

/* Extra Small Mobile Devices (iPhone SE, etc.) */
@media (max-width: 375px) {
  /* Hero Section - ELIMINADO */

  .services-section .section-title {
    font-size: 1.6rem;
  }

  .contact-content h1 {
    font-size: 1.8rem;
  }

  .contact-btn-lg {
    padding: 14px 28px;
    font-size: 1.2rem;
    max-width: 250px;
  }

  .main-title {
    font-size: 1.8rem;
  }

  .stat-number {
    font-size: 2.5rem !important;
  }

  .reviews-title {
    font-size: 2rem;
  }

  .instagram-title {
    font-size: 2rem;
  }

  .gallery-item {
    flex: 0 0 80px;
    height: 80px;
  }

  .index-home .search-input {
    width: 120px;
    font-size: 0.8rem;
  }

  .services-section .services-grid {
    justify-items: center;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 0.25rem;
  }

  .services-section .service-card,
  .servicio-softwares,
  .servicio-2,
  .servicio-3,
  .servicio-4,
  .servicio-5,
  .servicio-6,
  .servicio-7,
  .servicio-8 {
    width: 100%;
    max-width: 260px;
    margin: 0 auto;
  }
}

/* Touch-friendly improvements for mobile */
@media (max-width: 768px) {
  .hero-btn,
  .contact-btn-lg,
  .service-button,
  .social-icon {
    min-height: 44px; /* Apple's recommended minimum touch target */
    min-width: 44px;
  }

  .gallery-item {
    cursor: pointer;
  }

  /* Improve scrolling performance */
  .hero,
  .services-section,
  .contact-section,
  .stats-section,
  .reviews,
  .instagram-section {
    -webkit-overflow-scrolling: touch;
  }

  /* Prevent text selection during drag */
  .gallery-wrapper {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
  }

  /* Better touch feedback */
  .hero-btn:active,
  .contact-btn-lg:active,
  .service-button:active,
  .social-icon:active {
    transform: scale(0.95);
  }
}

/* iOS Safari specific fixes */
@supports (-webkit-touch-callout: none) {
  .hero,
  .services-section,
  .contact-section,
  .stats-section,
  .reviews,
  .instagram-section {
    /* Prevent rubber band scrolling */
    position: relative;
    overflow: hidden;
  }

  /* Fix for iOS Safari viewport height */
  .hero {
    height: 100vh;
    height: -webkit-fill-available;
  }

  /* Prevenir scroll automático al cargar la página */
  body {
    scroll-behavior: auto !important;
  }

  html {
    scroll-behavior: auto !important;
  }

  /* Prevenir scroll automático en index.php específicamente */
  .index-home {
    scroll-behavior: auto !important;
  }

  .index-home .hero {
    scroll-behavior: auto !important;
  }

  /* Prevenir scroll automático en iOS */
  .index-home body {
    scroll-behavior: auto !important;
    -webkit-overflow-scrolling: auto !important;
  }

  /* Android Chrome specific fixes */
  @media screen and (-webkit-min-device-pixel-ratio: 0) {
    .hero-btn,
    .contact-btn-lg,
    .service-button {
      /* Prevent tap highlight */
      -webkit-tap-highlight-color: transparent;
    }
  }

  /* Notch support for iPhone X and later */
  @supports (padding: max(0px)) {
    .contact-bar {
      padding-top: max(8px, env(safe-area-inset-top));
      padding-left: max(0px, env(safe-area-inset-left));
      padding-right: max(0px, env(safe-area-inset-right));
    }

    .logo-header {
      padding-top: max(16px, env(safe-area-inset-top));
      padding-left: max(0px, env(safe-area-inset-left));
      padding-right: max(0px, env(safe-area-inset-right));
    }

    .footer {
      padding-bottom: max(20px, env(safe-area-inset-bottom));
      padding-left: max(0px, env(safe-area-inset-left));
      padding-right: max(0px, env(safe-area-inset-right));
    }
  }

  /* Landscape orientation fixes for mobile */
  @media (max-width: 768px) and (orientation: landscape) {
    /* Hero Section - ELIMINADO */

    .services-section {
      padding: 1rem 0.5rem;
    }

    .contact-section {
      padding: 2rem 0;
    }

    .stats-section {
      padding: 2rem 0.5rem;
    }
  }

  /* Formularios responsivos */
  .formulario-contacto {
    max-width: 100% !important;
    width: 100% !important;
    padding: 16px !important;
    box-sizing: border-box;
  }
  .formulario-contacto .form-group {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
    margin-bottom: 0 !important;
  }
  .formulario-contacto label {
    text-align: left !important;
    font-size: 1rem !important;
  }
  .formulario-contacto input,
  .formulario-contacto select,
  .formulario-contacto textarea {
    width: 100% !important;
    font-size: 1rem !important;
    padding: 10px 12px !important;
    box-sizing: border-box !important;
  }
  .formulario-contacto button {
    width: 100% !important;
    font-size: 1.1rem !important;
    padding: 14px 0 !important;
    margin-top: 10px !important;
  }

  /* Botón de contacto en Nosotros, Portafolio, Evaluacion */
  .contact-cta .btn {
    width: 100%;
    max-width: 320px;
    font-size: 1.1rem;
    padding: 14px 0;
    margin: 10px auto 0 auto;
    display: block;
  }

  /* Ajustes para títulos y secciones */
  .section-title,
  .stats-title,
  .reviews .section-title,
  .instagram .section-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
  }

  /* Footer responsive */
  .footer-content,
  .footer p {
    text-align: center;
    font-size: 0.9rem;
    padding: 5px 0;
  }

  /* Logo header responsive - logo siempre visible en móvil */
  @media (max-width: 768px) {
    .logo-header,
    .main-header,
    .header-container,
    .nav-section,
    .nav-left,
    .nav-right {
      position: static !important;
      z-index: 100 !important;
      top: unset !important;
      left: unset !important;
      right: unset !important;
      background: none !important;
      box-shadow: none !important;
    }
    .logo-header {
      background: #111827;
      padding: 8px 0;
    }
    .main-header {
      background: transparent;
      margin-top: 0 !important;
      padding: 0;
    }
    .header-container {
      flex-direction: column !important;
      gap: 0 !important;
      padding: 0 1rem !important;
      align-items: stretch !important;
    }
    .nav-section {
      flex-direction: column !important;
      gap: 0 !important;
      width: 100% !important;
      align-items: stretch !important;
    }
    .nav-left,
    .nav-right {
      margin-top: 0 !important;
      width: 100% !important;
      justify-content: center !important;
      align-items: center !important;
      flex-direction: row !important;
      gap: 10px !important;
      padding: 0 !important;
    }
    .hero {
      margin-top: 0 !important;
    }
  }

  @media (max-width: 900px) {
    .logo-header,
    .main-header,
    .header-container,
    .nav-section,
    .nav-left,
    .nav-right,
    .main-nav,
    .search-container,
    .service-btn {
      position: static !important;
      z-index: 100 !important;
      top: auto !important;
      left: auto !important;
      right: auto !important;
      bottom: auto !important;
      transform: none !important;
      background: none !important;
      box-shadow: none !important;
      margin-top: 0 !important;
    }
    body,
    html {
      overflow-x: hidden !important;
    }
  }

  /* Logo header responsive ya definido arriba */

  .index-home .search-container {
    display: flex;
    align-items: center;
    position: relative;
    vertical-align: middle;
    z-index: 1;
  }
  .index-home .search-icon {
    position: static;
    left: unset;
    top: unset;
    transform: none;
    color: #aaa;
    font-size: 18px;
    margin: 0 6px 0 0;
    pointer-events: none;
    z-index: 1;
    height: 20px;
    width: 20px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .index-home .search-input {
    background-color: #404040;
    border: 1px solid #555;
    border-radius: 20px;
    padding: 8px 15px;
    color: white;
    font-size: 14px;
    width: 200px;
    transition: border-color 0.3s ease, background-color 0.3s ease;
    height: 36px;
    box-sizing: border-box;
    vertical-align: middle;
  }
  @media (max-width: 768px) {
    .index-home .search-input {
      width: 120px;
      font-size: 0.95rem;
      height: 32px;
      padding: 8px 12px;
    }
    .index-home .search-icon {
      font-size: 16px;
      height: 16px;
      width: 16px;
      margin-right: 4px;
    }
  }

  /* Logo header responsive ya definido arriba */
  @media (max-width: 480px) {
    .logo-header img,
    .logo-img {
      height: 120px !important;
    }
  }
  @media (max-width: 375px) {
    .logo-header img,
    .logo-img {
      height: 120px !important;
    }
  }

  @media (max-width: 768px) {
    .contact-section,
    .contact-container {
      flex-direction: column !important;
      align-items: center !important;
      justify-content: center !important;
      text-align: center !important;
    }
    .contact-content {
      align-items: center !important;
      text-align: center !important;
      width: 100% !important;
    }
    .contact-btn-lg {
      margin: 24px auto 0 auto !important;
      display: block !important;
    }
    .social-icons {
      gap: 12px !important;
      justify-content: center !important;
      margin: 0 auto !important;
    }
    .social-icon {
      width: 40px !important;
      height: 40px !important;
      min-width: 40px !important;
      min-height: 40px !important;
      max-width: 40px !important;
      max-height: 40px !important;
      border-radius: 50% !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      padding: 0 !important;
    }
    .social-icon-img {
      width: 20px !important;
      height: 20px !important;
      object-fit: contain !important;
      margin: 0 !important;
    }
  }

  /* Logo header responsive ya definido arriba */

  @media (max-width: 900px) {
    .main-header,
    .logo-header,
    .contact-bar,
    .header-container {
      position: static !important;
      z-index: 100 !important;
      box-shadow: none !important;
    }
  }
  @media (max-width: 768px) {
    .main-header,
    .logo-header,
    .contact-bar,
    .header-container {
      position: static !important;
      z-index: 100 !important;
      box-shadow: none !important;
    }
  }

  @supports (-webkit-touch-callout: none) {
    .hero {
      margin-top: 0px !important;
    }
  }

  .contact-bar,
  .main-header,
  .logo-header,
  .header-container,
  .nav-section,
  .nav-left,
  .nav-right {
    position: static !important;
    z-index: 100 !important;
    box-shadow: none !important;
    background: none !important;
  }

  .hero {
    position: static !important;
    z-index: 1 !important;
    box-shadow: none !important;
    background: none !important;
  }

  .nav-right {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 10px !important;
  }
  @media (max-width: 900px) {
    .nav-right {
      display: flex !important;
      flex-direction: row !important;
      align-items: center !important;
      gap: 10px !important;
    }
  }
  @media (max-width: 768px) {
    .nav-right {
      display: flex !important;
      flex-direction: row !important;
      align-items: center !important;
      gap: 10px !important;
    }
  }

  /* Asegurar que el header completo esté por encima del contenido */
  .main-header,
  .header-container,
  .nav-section,
  .nav-right,
  .search-container,
  .search-icon,
  .search-input,
  .search-suggestions,
  .contact-bar,
  .logo-header {
    z-index: 100 !important;
    position: relative !important;
  }

  /* Asegurar que las secciones principales tengan z-index bajo */
  .hero,
  .services-section,
  .contact-section,
  .stats-section,
  .reviews,
  .instagram-section {
    z-index: 1 !important;
    position: relative !important;
  }

  /* iOS specific z-index fixes - must be at the end to override other styles */
  @supports (-webkit-touch-callout: none) {
    /* Force correct z-index hierarchy on iOS */
    .contact-bar,
    .main-header,
    .header-container,
    .nav-section,
    .nav-left,
    .nav-right,
    .search-container,
    .search-icon,
    .search-input,
    .search-suggestions,
    .logo-header {
      z-index: 100 !important;
    }

    .hero,
    .services-section,
    .contact-section,
    .stats-section,
    .reviews,
    .instagram-section {
      z-index: 1 !important;
    }
  }

  /* Estilos responsive completos ya definidos arriba */

  /* Simplificación: El texto se muestra con :hover igual que la imagen */
  .services-section .service-hover-text {
    z-index: 30 !important;
  }

  /* Asegura que el overlay no tape el texto */
  .services-section .service-card::after {
    z-index: 20 !important;
  }

  .services-section .service-card {
    position: relative;
    z-index: 1;
  }

  /* Estilos base para el texto hover */
  .services-section .service-hover-text {
    position: absolute;
    z-index: 30;
    opacity: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: "Poppins", Arial, sans-serif;
    font-weight: 500;
    font-size: 20px;
    color: #fff;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: none;
    padding: 2rem;
    transition: opacity 0.3s;
  }

  /* El texto se muestra al hacer hover en la tarjeta */
  .services-section .service-card:hover .service-hover-text {
    opacity: 1;
    pointer-events: auto;
  }

  @media (min-width: 900px) {
    .index-home .nav-right {
      display: flex !important;
      flex-direction: row !important;
      align-items: center !important;
      flex-wrap: nowrap !important;
      gap: 16px !important;
      justify-content: flex-end !important;
      margin-left: auto !important;
      padding-right: 20px !important;
    }
    .index-home .service-btn {
      white-space: nowrap !important;
      min-width: 0 !important;
      max-width: none !important;
      padding-left: 18px !important;
      padding-right: 18px !important;
      font-size: 15px !important;
      line-height: 1 !important;
      margin-right: 120px !important;
      word-wrap: normal !important;
      overflow-wrap: normal !important;
      hyphens: none !important;
      text-align: center !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      flex-wrap: nowrap !important;
    }
    .index-home .search-container {
      flex: 0 0 auto !important;
      min-width: 0 !important;
      max-width: 200px !important;
      width: auto !important;
    }
    .index-home .search-input {
      width: 160px !important;
      min-width: 0 !important;
      max-width: 100% !important;
    }
    .index-home .nav-right > * {
      min-width: 0 !important;
      max-width: none !important;
    }
  }

  @media (max-width: 900px) {
    .index-home .service-btn {
      background: #6952eb !important;
      color: #fff !important;
    }
  }

  /* --- Buscador/Combo box de salto de sección en el header --- */
  .section-jump-select {
    background: #111827 !important;
    color: #fff !important;
    border-radius: 9999px !important;
    padding: 6px 48px 6px 24px !important;
    border: 1px solid #6952eb !important;
    font-size: 1.1rem !important;
    min-width: 160px !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(105, 82, 235, 0.1) !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    position: relative !important;
    font-weight: 500 !important;
    transition: border-color 0.3s, box-shadow 0.3s, background 0.3s !important;
    cursor: pointer !important;
    background-image: url('data:image/svg+xml;utf8,<svg fill="white" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>') !important;
    background-repeat: no-repeat !important;
    background-position: right 18px center !important;
    background-size: 24px 24px !important;
    margin-left: 160px !important;
  }

  .section-jump-select:hover {
    border-color: #8b5cf6 !important;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2) !important;
  }

  .section-jump-select:focus {
    border-color: #8b5cf6 !important;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.3) !important;
    background-color: #1f2937 !important;
  }

  @media (max-width: 768px) {
    .section-jump-select {
      min-width: 60px !important;
      font-size: 1rem !important;
      padding: 10px 6px 10px 4px !important;
      margin-left: 0 !important;
      text-indent: 12px !important;
    }
  }

  @media (max-width: 480px) {
    .section-jump-select {
      min-width: 38px !important;
      font-size: 0.95rem !important;
      padding: 12px 3px 12px 2px !important;
      margin-left: 0 !important;
      text-indent: 18px !important;
    }
  }

  /* --- Overlay: aparece la imagen sobrepuesta y el texto al hacer hover --- */
  .services-section .service-card:hover::after,
  .servicio-softwares:hover::after,
  .servicio-2:hover::after,
  .servicio-3:hover::after,
  .servicio-4:hover::after,
  .servicio-5:hover::after,
  .servicio-6:hover::after,
  .servicio-7:hover::after,
  .servicio-8:hover::after {
    opacity: 1 !important;
    transition: opacity 0.3s !important;
    z-index: 20 !important;
  }

  @media (min-width: 769px) {
    .header-container,
    .nav-section,
    .nav-right {
      display: flex !important;
      flex-direction: row !important;
      align-items: center !important;
      flex-wrap: nowrap !important;
      gap: 24px !important;
      justify-content: flex-start !important;
    }
    .nav-left,
    .main-nav {
      flex-wrap: nowrap !important;
    }
    .main-header {
      min-width: 0 !important;
    }
    .nav-right > * {
      min-width: 0 !important;
      max-width: none !important;
    }
    .search-container,
    .section-jump-select,
    .service-btn,
    .login-icon {
      flex-shrink: 0 !important;
    }
  }

  @media (max-width: 900px) {
    .main-header,
    .header-container,
    .nav-section,
    .nav-left,
    .nav-right,
    .logo-header {
      position: static !important;
      z-index: auto !important;
    }
    .hero {
      margin-top: 0 !important;
      padding-top: 24vw !important; /* Espacio suficiente para header en mobile */
    }
  }
  @media (max-width: 600px) {
    .hero {
      padding-top: 32vw !important; /* Más espacio en móviles pequeños */
    }
  }
}

/* Estilos adicionales para el combobox - asegurar compatibilidad */
.section-jump-select {
  display: block !important;
  width: auto !important;
  max-width: none !important;
  z-index: 10 !important;
  /* Sobrescribir cualquier estilo del search-container */
  background: #111827 !important;
  color: #fff !important;
  border-radius: 9999px !important;
  padding: 6px 48px 6px 24px !important;
  border: 1px solid #6952eb !important;
  font-size: 1.1rem !important;
  min-width: 160px !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(105, 82, 235, 0.1) !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  position: relative !important;
  font-weight: 500 !important;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s !important;
  cursor: pointer !important;
  background-image: url('data:image/svg+xml;utf8,<svg fill="white" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>') !important;
  background-repeat: no-repeat !important;
  background-position: right 18px center !important;
  background-size: 24px 24px !important;
  margin-left: 160px !important;
}

.section-jump-select:hover {
  border-color: #8b5cf6 !important;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2) !important;
}

.section-jump-select:focus {
  border-color: #8b5cf6 !important;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.3) !important;
  background-color: #1f2937 !important;
}

/* Asegurar que el combobox sea visible en todos los navegadores */
.section-jump-select option {
  background: #111827 !important;
  color: #fff !important;
  padding: 8px !important;
}

.section-jump-select optgroup {
  background: #1f2937 !important;
  color: #fff !important;
  font-weight: bold !important;
}

/* Estilos específicos para navegadores webkit (Chrome, Safari, Edge) */
.section-jump-select::-ms-expand {
  display: none !important;
}

/* Estilos para Firefox */
.section-jump-select:-moz-focusring {
  color: transparent !important;
  text-shadow: 0 0 0 #fff !important;
}

/* Asegurar que el contenedor del combobox tenga el espacio correcto */
.search-container {
  position: relative !important;
  z-index: 10 !important;
}

/* Estilos específicos para el contenedor cuando contiene el combobox */
.search-container:has(.section-jump-select) {
  display: flex !important;
  align-items: center !important;
  position: relative !important;
  gap: 8px !important;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
}

/* Asegurar que el combobox tenga prioridad sobre otros estilos */
.search-container .section-jump-select {
  flex: 0 0 auto !important;
  min-width: 160px !important;
  max-width: 200px !important;
  width: auto !important;
  height: auto !important;
  line-height: normal !important;
  font-family: inherit !important;
  font-size: 1.1rem !important;
  font-weight: 500 !important;
  text-align: left !important;
  text-indent: 0 !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  word-spacing: normal !important;
  white-space: normal !important;
  direction: ltr !important;
  writing-mode: horizontal-tb !important;
  text-rendering: auto !important;
  color: #fff !important;
  background: #111827 !important;
  border: 1px solid #6952eb !important;
  border-radius: 9999px !important;
  padding: 6px 48px 6px 24px !important;
  margin: 0 0 0 60px !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(105, 82, 235, 0.1) !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  cursor: pointer !important;
  background-image: url('data:image/svg+xml;utf8,<svg fill="white" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>') !important;
  background-repeat: no-repeat !important;
  background-position: right 18px center !important;
  background-size: 24px 24px !important;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s !important;
}

.search-container .section-jump-select:hover {
  border-color: #8b5cf6 !important;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2) !important;
}

.search-container .section-jump-select:focus {
  border-color: #8b5cf6 !important;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.3) !important;
  background-color: #1f2937 !important;
}

/* Estilos responsivos para el combobox dentro del search-container */
@media (max-width: 768px) {
  .search-container .section-jump-select {
    min-width: 60px !important;
    font-size: 1rem !important;
    padding: 10px 6px 10px 4px !important;
    margin-left: 0 !important;
    text-indent: 12px !important;
  }
}

@media (max-width: 480px) {
  .search-container .section-jump-select {
    min-width: 38px !important;
    font-size: 0.95rem !important;
    padding: 12px 3px 12px 2px !important;
    margin-left: 0 !important;
    text-indent: 18px !important;
  }
}

@media (max-width: 768px) {
  /* Hero Section - ELIMINADO */
}
@media (max-width: 480px) {
  /* Hero Section - ELIMINADO */
}
.index-home .service-btn i {
  margin-right: 8px;
  font-size: 1.1em;
  vertical-align: middle;
}

.index-home .header-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  width: 100%;
  padding: 0 0 0 20px !important;
  box-sizing: border-box;
}
.index-home .nav-section {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  width: 100%;
  gap: 0;
}
.index-home .nav-right {
  display: flex;
  align-items: center;
  flex: none;
  min-width: 0;
  justify-content: flex-end;
  gap: 0 !important;
  margin-left: auto !important;
  padding-right: 0 !important;
}

@media (max-width: 768px) {
  .index-home .nav-right {
    gap: 6px !important;
  }
}

.service-card:hover .service-hover-text,
.service-card:focus .service-hover-text,
.service-card.focus-active .service-hover-text,
.service-card.hover-active .service-hover-text,
.service-card.touch-active .service-hover-text {
  text-transform: capitalize !important;
}

@media (max-width: 768px) {
  .service-card .service-hover-text {
    font-size: 1rem !important;
    line-height: 1.3 !important;
    padding: 0.8rem 0.5rem !important;
    word-break: break-word !important;
    white-space: normal !important;
  }
}

/* ===== HEADER RESPONSIVE COMPLETO ===== */

/* Contact Bar */
.contact-bar {
  background-color: #6952eb;
  color: white;
  text-align: center;
  padding: 8px 0;
  font-size: 14px;
  font-weight: 500;
  position: relative;
  z-index: 100;
}

/* Logo Header */
.logo-header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 0;
  background-color: #111827;
  width: 100%;
}

.logo-header img {
  height: 120px;
  width: auto;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo-header img:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(105, 82, 235, 0.3);
}

/* Main Header */
.main-header {
  background-color: #111827;
  position: relative;
  z-index: 100;
  padding: 15px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Header Container */
.header-container {
  overflow-x: hidden !important;
  max-width: 100vw !important;
  box-sizing: border-box !important;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  gap: 20px;
}

/* Navigation Section */
.nav-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  gap: 20px;
}

/* Navigation Left */
.nav-left {
  display: flex;
  align-items: center;
  flex: 1;
}

/* Main Navigation */
.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  overflow-x: hidden !important;
  overflow-y: visible !important;
  max-width: 100vw !important;
  box-sizing: border-box !important;
}

.main-nav li {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.main-nav li a {
  color: white;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
  padding: 8px 12px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
}

.main-nav li a:hover {
  color: #6952eb;
}

.main-nav li a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #6952eb;
  transition: width 0.3s ease;
}

.main-nav li a:hover::after {
  width: 100%;
}

/* Navigation Separators */
.nav-separator {
  color: #6b7280;
  font-weight: 300;
  margin: 0 5px;
  display: none; /* Hidden by default on mobile */
}

/* Service Button */
.service-btn {
  background: #6952eb;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  white-space: nowrap;
  min-height: 44px;
  min-width: 44px;
}

.service-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(104, 82, 235, 0.4);
  background: #5a4fd8;
}

.service-btn i {
  font-size: 16px;
}

/* Navigation Divider */
.nav-divider {
  width: 1px;
  height: 30px;
  background-color: #6b7280;
  margin: 0 15px;
  display: none; /* Hidden by default on mobile */
}

/* ===== RESPONSIVE BREAKPOINTS FOR MAIN NAV ===== */

/* Large Desktop (1200px+) */
@media (min-width: 1200px) {
  .main-nav {
    gap: 40px;
  }

  .main-nav li a {
    font-size: 18px;
    padding: 10px 16px;
  }

  .service-btn {
    font-size: 16px;
    padding: 12px 24px;
  }

  .nav-separator,
  .nav-divider {
    display: inline;
  }
}

/* Desktop (1024px - 1199px) */
@media (min-width: 1024px) and (max-width: 1199px) {
  .main-nav {
    gap: 30px;
  }

  .main-nav li a {
    font-size: 16px;
    padding: 8px 12px;
  }

  .service-btn {
    font-size: 14px;
    padding: 10px 20px;
  }

  .nav-separator,
  .nav-divider {
    display: inline;
  }
}

/* Tablet (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  .main-nav {
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .main-nav li a {
    font-size: 15px;
    padding: 8px 10px;
  }

  .service-btn {
    font-size: 13px;
    padding: 8px 16px;
  }

  .nav-separator {
    display: none;
  }

  .nav-divider {
    display: none;
  }
}

/* Mobile Large (481px - 767px) */
@media (min-width: 481px) and (max-width: 767px) {
  .main-nav {
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0 10px;
  }

  .main-nav li {
    margin: 2px 0;
  }

  .main-nav li a {
    font-size: 14px;
    padding: 6px 8px;
    min-height: 40px;
    min-width: 40px;
  }

  .service-btn {
    font-size: 13px;
    padding: 8px 14px;
    min-height: 40px;
    min-width: 40px;
  }

  .service-btn i {
    font-size: 14px;
  }

  .nav-separator,
  .nav-divider {
    display: none;
  }
}

/* Landscape Mobile */
@media (max-width: 767px) and (orientation: landscape) {
  .main-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    padding: 0 8px;
  }

  .main-nav li {
    margin: 1px 0;
  }

  .main-nav li a {
    font-size: 13px;
    padding: 6px 8px;
    min-height: 40px;
    min-width: 40px;
  }

  .service-btn {
    font-size: 12px;
    padding: 6px 12px;
    min-height: 40px;
    min-width: 40px;
  }

  .nav-separator,
  .nav-divider {
    display: none;
  }
}

/* ===== INDEX-HOME SPECIFIC NAVIGATION ===== */

.index-home .main-nav {
  gap: 25px;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

/* Index-home responsive adjustments */
@media (max-width: 768px) {
  .index-home .main-nav {
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0 10px;
  }

  .index-home .main-nav li a {
    font-size: 14px;
    padding: 8px 10px;
    min-height: 44px;
    min-width: 44px;
  }
}

/* ===== TOUCH-FRIENDLY IMPROVEMENTS ===== */

/* Ensure all interactive elements meet touch target requirements */
@media (max-width: 768px) {
  .main-nav li a,
  .service-btn {
    min-height: 44px;
    min-width: 44px;
    touch-action: manipulation;
  }

  /* Improve scrolling performance */
  .main-nav {
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
  }
}

/* ===== ACCESSIBILITY IMPROVEMENTS ===== */

/* Focus states for keyboard navigation */
.main-nav li a:focus,
.service-btn:focus {
  outline: 2px solid #6952eb;
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .main-nav li a {
    border: 1px solid transparent;
  }

  .main-nav li a:hover,
  .main-nav li a:focus {
    border-color: #6952eb;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .main-nav li a,
  .service-btn {
    transition: none;
  }

  .main-nav li a::after {
    transition: none;
  }
}
