:root {
  --primary-color: #000000;
  --secondary-color: #002ec7;
  --accent-color: #f7ba13;
  --light-color: #ecf0f1;
  --dark-color: #02376e;
  --text-color: #1c3146;
  --border-radius: 8px;
  --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;

  --gradientePrincipal: #000000;
  --gradienteSecundario: #3763f3;
  --primary-color-transparencia: #00000000;
}

body {
  font-family: "Roboto", sans-serif;
  color: var(--text-color);
  line-height: 1.7;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
}

.navbar {
  background-color: var(--primary-color-transparencia);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  padding: 15px 0;
  transition: var(--transition);
}

.navbar.scrolled {
  padding: 8px 0;
  background-color: var(--gradienteSecundario);
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.8rem;
  color: white;
}

.nav-link {
  color: rgba(255, 255, 255, 0.85) !important;
  font-weight: 500;
  margin: 0 10px;
  transition: var(--transition);
  position: relative;
}

.nav-link:after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: white;
  transition: var(--transition);
}

.nav-link:hover:after,
.nav-link.active:after {
  width: 100%;
}

.nav-link:hover,
.nav-link.active {
  color: white !important;
}

.hero-section {
  background: linear-gradient(var(--gradientePrincipal), var(--gradienteSecundario)),
    url("/api/placeholder/1200/800");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: white;
  padding: 160px 0 120px;
  margin-bottom: 60px;
  position: relative;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-section h1 {
  font-size: 3.2rem;
  font-weight: 700;
  margin-bottom: 25px;
  animation: fadeInUp 1s ease;
}

.hero-section p.lead {
  font-size: 1.4rem;
  margin-bottom: 40px;
  opacity: 0.9;
  animation: fadeInUp 1s ease 0.2s;
  animation-fill-mode: both;
}

.hero-btn {
  animation: fadeInUp 1s ease 0.4s;
  animation-fill-mode: both;
}

.section-title {
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
  display: inline-block;
}

.section-title:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 70px;
  height: 4px;
  background-color: var(--secondary-color);
  border-radius: 2px;
}

.section-subtitle {
  color: var(--secondary-color);
  font-weight: 500;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.9rem;
  display: block;
}

.card {
  border-radius: var(--border-radius);
  border: none;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  height: 100%;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.card-title {
  color: var(--primary-color);
  font-weight: 600;
  margin-top: 10px;
}

.service-card {
  padding: 40px 30px;
  text-align: center;
  background-color: white;
}

.service-icon {
  font-size: 3.5rem;
  color: var(--secondary-color);
  margin-bottom: 25px;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  transform: scale(1.1);
  color: var(--accent-color);
}

.tech-section {
  background-color: var(--light-color);
  padding: 80px 0;
  margin: 60px 0;
}

.tech-item {
  display: flex;
  align-items: center;
  margin-bottom: 25px;
  padding: 20px;
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.tech-item:hover {
  transform: translateX(10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.tech-icon {
  width: 60px;
  height: 60px;
  margin-right: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--secondary-color);
  border-radius: 50%;
  color: white;
  font-size: 1.8rem;
  flex-shrink: 0;
}

.tech-info strong {
  display: block;
  font-size: 1.1rem;
  color: var(--primary-color);
  margin-bottom: 5px;
}

.tech-info .text-muted {
  font-size: 0.9rem;
}

.case-study {
  background-color: white;
  padding: 40px;
  border-radius: var(--border-radius);
  margin-bottom: 40px;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.case-study:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.case-study::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background-color: var(--secondary-color);
}

.case-study h4 {
  color: var(--primary-color);
  margin-bottom: 20px;
}

.badge {
  font-weight: 500;
  padding: 8px 15px;
  margin-right: 10px;
  border-radius: 50px;
  background-color: var(--light-color);
  color: var(--primary-color);
}

.contact-form {
  background-color: white;
  padding: 50px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.form-control {
  border-radius: var(--border-radius);
  padding: 15px 20px;
  background-color: var(--light-color);
  border: none;
  transition: var(--transition);
  margin-bottom: 20px;
}

.form-control:focus {
  box-shadow: none;
  background-color: white;
  border: 1px solid var(--secondary-color);
}

.form-label {
  font-weight: 500;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.btn {
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 500;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--secondary-color);
  border: none;
}

.btn-primary:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(52, 152, 219, 0.3);
}

.btn-outline-primary {
  color: var(--secondary-color);
  border-color: var(--secondary-color);
}

.btn-outline-primary:hover {
  background-color: var(--secondary-color);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(52, 152, 219, 0.3);
}

.btn-light {
  background-color: white;
  color: var(--primary-color);
}

.btn-light:hover {
  background-color: var(--light-color);
  color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(255, 255, 255, 0.3);
}

#portfolio-section {
  position: relative;
  padding: 0;
  border-radius: var(--border-radius);
  overflow: hidden;
  margin-bottom: 60px;
}

#portfolio-lock {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(44, 62, 80, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  backdrop-filter: blur(5px);
}

#password-form {
  background-color: white;
  padding: 40px;
  border-radius: var(--border-radius);
  width: 90%;
  max-width: 450px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.lock-icon {
  font-size: 4rem;
  color: var(--secondary-color);
  margin-bottom: 20px;
}

.portfolio-item {
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.portfolio-img {
  transition: var(--transition);
}

.portfolio-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(44, 62, 80, 0.9);
  overflow: hidden;
  width: 100%;
  height: 0;
  transition: 0.5s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 30px;
  text-align: center;
}

.portfolio-item:hover .portfolio-overlay {
  height: 100%;
}

.portfolio-item:hover .portfolio-img {
  transform: scale(1.1);
}

.portfolio-title {
  color: white;
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.portfolio-desc {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 20px;
}

.footer {
  background-color: var(--dark-color);
  color: white;
  padding: 80px 0 30px;
  margin-top: 80px;
}

.footer-title {
  font-size: 1.5rem;
  margin-bottom: 25px;
  color: white;
}

.footer-contact li {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.footer-contact i {
  margin-right: 15px;
  color: var(--secondary-color);
  font-size: 1.2rem;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 15px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--secondary-color);
  padding-left: 10px;
}

.social-links {
  margin-top: 30px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  margin-right: 10px;
  transition: var(--transition);
}

.social-links a:hover {
  background-color: var(--secondary-color);
  transform: translateY(-5px);
}

.copyright {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
}

/* Selector de idioma */
.language-selector {
  position: fixed;
  top: 15px;
  right: 15px;
  background-color: rgba(255, 255, 255, 0.8);
  padding: 5px 10px;
  border-radius: 3px;
  z-index: 1000;
  font-size: 0.8rem;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.language-selector a {
  color: var(--primary-color);
  text-decoration: none;
  margin: 0 3px;
  font-weight: 500;
}

.language-selector a:hover {
  color: var(--secondary-color);
}

.language-selector a.active {
  color: var(--secondary-color);
  font-weight: 700;
}

/* Animaciones */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fadeInUp {
  animation: fadeInUp 1s ease;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .hero-section {
    padding: 120px 0 80px;
  }

  .hero-section h1 {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .case-study {
    padding: 30px;
  }

  .contact-form {
    padding: 30px;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding: 100px 0 70px;
  }

  .hero-section h1 {
    font-size: 2rem;
  }

  .hero-section p.lead {
    font-size: 1.1rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .service-card {
    padding: 30px 20px;
  }

  .tech-item {
    flex-direction: column;
    text-align: center;
  }

  .tech-icon {
    margin-right: 0;
    margin-bottom: 15px;
  }

  .language-selector {
    top: auto;
    bottom: 15px;
    right: 15px;
  }
}

.language-selector {
  z-index: 9999;
}