body {
  background-color: #021024;
}
.navbar {
  background-color: #021024;
  height: 80px;
  font-family: "Raleway", sans-serif;
  padding: 0.5rem;
}
.logo-container {
  display: flex;
  align-items: center;
}

.logo {
  width: 20%;
  height: 20%;
  margin-right: -10px;
}

.navbar-brand {
  font-family: "Lato", sans-serif;
  font-weight: 500;
  color: #c1e8ff;
  font-size: 24px;
  transition: 0.3s color;
}
.navbar-brand:hover {
  color: #c1e8ff;
}
.navbar-brand::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: transparent;
  transition: background-color 0.3s ease;
}
.navbar-brand:hover::before {
  background-color: #c1e8ff;
}

.navbar-toggler:focus,
.btn-close:focus {
  box-shadow: none;
  outline: none;
}

.nav-link {
  color: #c1e8ff;
  font-weight: 500;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: #c1e8ff;
  text-decoration: none;
  position: relative;
}
.offcanvas-body {
  background-color: #021024;
  color: #c1e8ff;
}

/* Contenedor general para Acerca de mí y YouTube */
.about-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px; /* Espacio entre secciones */
}

/* Espaciado adicional */
.about-text {
  margin-right: 20px;
}

.youtube-box {
  margin-left: 20px;
  background-color: rgba(193, 232, 255, 0.1);
  padding: 20px;
  border-radius: 8px;
  border: 1px solid rgba(193, 232, 255, 0.2);
  box-shadow: 0px 4px 8px rgba(193, 232, 255, 0.2);
}

/* Ajustar margen de las dos secciones */
.about-text,
.youtube-box {
  padding: 10px 20px;
}
/* Ajustes generales para ocupar todo el ancho */
#about-section {
  width: 100%;
  padding: 50px 0;
}

.container-fluid {
  padding: 0 5%; /* Margen lateral para evitar que el contenido toque los bordes */
}

/* Ajuste general de la caja de YouTube */
.youtube-box {
  background-color: #021024;
  color: #c1e8ff;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  width: 100%;
  border: 1px solid rgba(193, 232, 255, 0.2);
  box-shadow: 0px 4px 8px rgba(193, 232, 255, 0.2);
  transition: all 0.3s ease;
}

.youtube-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(193, 232, 255, 0.2);
}

/* Asegurar que el frame se ajusta correctamente */
.youtube-video {
  width: 100%;
  position: relative;
  padding-bottom: 56.25%; /* Relación de aspecto 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 10px;
}

.youtube-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  width: 100%;
  height: 100%;
  border-radius: 8px;
}

/* Botón de suscripción debajo del video */
.youtube-btn {
  display: inline-block;
  background-color: #ff0000;
  color: white;
  padding: 10px 15px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  margin-top: 10px;
  width: 100%; /* Que ocupe todo el ancho */
  transition: all 0.3s ease;
}

.youtube-btn:hover {
  background: #cc0000;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 0, 0, 0.3);
}

footer {
  font-family: "Lato", sans-serif;
  background-color: #021024;
  color: #c1e8ff;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  border-top: 0.5px solid #c1e8ff;
  padding: 40px 20px;
}

footer h5 {
  margin-bottom: 10px;
}

footer .rights {
  margin-top: 10px;
}

footer a {
  color: #c1e8ff;
  text-decoration: none;
  margin-right: 10px;
  transition: all 0.3s ease;
  display: inline-block;
  padding: 3px 4px;
  border-radius: 4px;
}

footer a:hover {
  background: rgba(193, 232, 255, 0.1);
  transform: translateY(-2px);
}

.language-selector {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.flag {
  width: 40px; /* Ajusta el tamaño de las banderas */
  height: 30px;
  margin: 0 10px;
  transition: opacity 0.3s ease;
}

.flag:hover {
  opacity: 0.8; /* Efecto de hover para mejorar la experiencia */
}

@media (max-width: 768px) {
  footer {
    text-align: center;
  }

  footer a {
    display: block;
    margin-bottom: 10px;
  }
}
@media (max-width: 991px) {
  .logo {
    display: none;
  }
}

@media (min-width: 991px) {
  .nav-link::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: #c1e8ff;
    visibility: hidden;
    transition: 0.3s ease-in-out;
  }

  .nav-link:hover::before {
    width: 100%;
    visibility: visible;
  }
}

.hero-section {
  position: relative; /* Asegura que ::before se relacione con este contenedor */
  background: url("../imagenes/bg_home.jpg") no-repeat center;
  background-size: cover;
  width: 100%;
  font-family: "Lato", sans-serif;
  height: 100vh; /* Garantiza que ocupe la altura completa de la pantalla */
  overflow: hidden; /* Evita que algo sobresalga del contenedor */
}

.hero-section::before {
  background-color: rgba(0, 0, 0, 0.6);
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 0; /* Asegura que quede detrás del contenido */
}

.hero-section .container {
  height: 100%;
  z-index: 1; /* Pone el contenido encima del pseudoelemento */
  position: relative;
}

.hero-section h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  animation: fadeInDown 1s ease;
}

.hero-section h2 {
  font-size: 2rem;
  font-weight: 400;
  opacity: 0.9;
  animation: fadeInUp 1s ease 0.3s forwards;
}
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#about-section {
  font-family: "Lato", sans-serif;
  color: #c1e8ff;
  padding: 3%;
  background-color: #021024;
}

.about-img img {
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(193, 232, 255, 0.15);
  transition: transform 0.3s ease;
}
.about-img img:hover {
  transform: scale(1.02);
}

.about-text h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}


.btn-warning {
  background: #5483b3;
  border: none;
  padding: 12px 25px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.btn-warning:hover {
  background: #c1e8ff;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(84, 131, 179, 0.4);
}
.btn.btn-primary {
  background-color: #052659;
  color: #c1e8ff;
  border-color: #c1e8ff;
}

.btn.btn-primary:hover {
  background-color: #c1e8ff;
  border-color: #021024;
  color: #021024;
}

#servicios-section {
  font-family: "Lato", sans-serif;
  color: #c1e8ff;
  background-color: #021024;
  padding: 4%;
}

.servicios .card {
  background: rgba(5, 38, 89, 0.3);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(193, 232, 255, 0.2);
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.4s ease;
}

.servicios .card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(193, 232, 255, 0.2);
  border-color: rgba(193, 232, 255, 0.4);
}

.servicios .card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  color: #c1e8ff;
}

.servicios .card-body .card-title {
  text-align: center;
  margin-bottom: 15px;
  color: #c1e8ff;
}


.servicios .card-body .btn {
  background-color: #c1e8ff;
  color: #021024;
  font-weight: bold;
  border-radius: 10px;
  align-self: center;
}

.servicios .card-body .btn:hover {
  background-color: #a1d4e5;
  color: #021024;
}

.servicios .row {
  display: flex;
  justify-content: center;
  align-items: stretch;
}

.servicios .col-md-6 {
  display: flex;
}
@media (max-width: 991px) {
  .servicios .row {
    flex-direction: column;
    gap: 20px; /* Espacio entre las tarjetas cuando se apilan en pantallas pequeñas */
  }
}

/* Aumentar el tamaño del ícono en la tarjeta de Data Analytics */
.card-body i.bi-bar-chart-line {
  font-size: 2.5rem;
}

/* Aumentar el tamaño del ícono en la tarjeta de Microservicios */
.card-body i.bi-gear {
  font-size: 2.5rem;
}

#portfolio-section {
  font-family: "Raleway", sans-serif;
  padding: 4%;
  color: #c1e8ff;
}

.portfolio .card {
  background: rgba(125, 160, 202, 0.9);
  border: none;
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.4s ease;
  color: #021024;
  
}


.img-area {
  overflow: hidden;
  border-radius: 15px 15px 0 0;
}

.img-area img {
  transition: transform 0.5s ease;
}

.portfolio .card:hover .img-area img {
  transform: scale(1.05);
}

.portfolio .card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(125, 160, 202, 0.4);
}
.card-title {
  font-family: "Lato", sans-serif;
}

ul.lead {
  list-style-type: disc;
}
@media (max-width: 768px) {
  .about-text a.btn {
    display: block;
    width: 100%;
    margin-right: 0;
  }
}
@media only screen and (min-width: 768px) and (max-width: 991px) {
  .card {
    margin-bottom: 30px;
  }
  .img-area img {
    width: 100%;
  }
}

@media only screen and (max-width: 767px) {
  .about-text {
    padding-top: 50px;
  }
  .card {
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .about-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .about-img,
  .about-text,
  .youtube-box {
    width: 100%; /* Asegura que cada sección ocupe todo el ancho */
    margin-bottom: 20px; /* Añade espacio entre las secciones */
  }
  .youtube-video {
    padding-bottom: 56.25%; /* Mantener la relación 16:9 */
  }
  .youtube-btn {
    width: 100%;
    text-align: center;
  }
}

:root {
  scroll-behavior: smooth;
}

section {
  scroll-margin-top: 80px;
}

body {
  overflow-x: hidden;
}

/* Transiciones suaves para elementos interactivos */
a, button, .card, .nav-link {
  transition: all 0.3s ease;
}

/* Efecto de aparición suave para secciones */
.reveal {
  position: relative;
  opacity: 0;
  transition: all 1s ease;
}

.reveal.active {
  opacity: 1;
}

