/* ==========================================
   CSS OPTIMIZADO PARA BOOTSTRAP 5
   Solo incluye estilos personalizados y necesarios
   ========================================== */

/* CSS Variables */
:root {
  --primary: #4B0082;
  --secondary: #7B2D3E;
  --success: #28a745;
  --info: #17a2b8;
  --warning: #ffc107;
  --danger: #dc3545;
  --light: #f8f9fa;
  --dark: #343a40;
  --font-family-sans-serif: -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif,
    "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --font-family-monospace: SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
}

/* ==========================================
   RESET Y BASE
   ========================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-family: sans-serif;
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

body {
  margin: 0;
  font-family: "Open Sans", sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #212529;
  text-align: left;
  background-color: #1a1a1a;
}

/* List styles */
ul {
  list-style-type: square;
}

/* ==========================================
   TYPOGRAPHY
   ========================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
}

.display-2 {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
}

.display-3 {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
}

.display-4 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
}

@media (min-width: 992px) {
  .display-2 {
    font-size: 4.5rem;
  }
  .display-3 {
    font-size: 3.5rem;
  }
  .display-4 {
    font-size: 3rem;
  }
}

/* ==========================================
   Loading Screen
   ========================================== */
#loader {
  position: fixed;
  inset: 0;
  background-color: #4B0082;
  z-index: 49;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
  opacity: 1;
  visibility: visible;
}

#loader.fade-out {
  opacity: 0;
  visibility: hidden;
}

.loader-content {
  width: 200px;
  height: 200px;
}

/* ==========================================
   Servicios
   ========================================== */

.service-item {
  background-color: #F5EDE0;
  transition: all 0.3s ease;
}

.service-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.service-item i {
  color: #4B0082;
}


/* ==========================================
   Portafolios
   ========================================== */

#portfolio-tabs .nav-link {
  transition: background-color 0.3s ease, color 0.3s ease;
  color: #8E1AFF;
}

#portfolio-tabs .nav-link.active {
  background-color: #4B0082;
  color: white;
}

#portfolio-tabs .nav-link:hover {
  background-color: rgba(75, 0, 130, 0.8);
  color: white;
}

.portfolio-item {
  transition: transform 0.3s ease, opacity 0.3s ease;

}

.portfolio-item.hidden {
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
  position: absolute;
}

.portfolio-card {
  background: linear-gradient(135deg, #4B0082, #6700b1);
  border: 2px solid #4B0082;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(75, 0, 130, 0.3);
  transition: all 0.3s ease;
  overflow: hidden;
}

.portfolio-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(75, 0, 130, 0.5);
  border-color: #B399D4;
}

.portfolio-card img {
  transition: all 0.5s ease;
  border-radius: 12px 12px 0 0;
}

.portfolio-card .card-body {
  background: rgba(0, 0, 0, 0.7);
  color: white;
  height: auto;
  width: 100%;
}

/* ==========================================
   Testimonios
   ========================================== */

.testimonial-item {
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* ==========================================
   Clientes
   ========================================== */

.client-item {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  transition: transform 0.3s ease;
}

.client-item:hover {
  transform: scale(1.05);
}

/* ==========================================
   Contacto
   ========================================== */

.contact-form {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* ==========================================
   Headers y Banners
   ========================================== */

header {
  background: 
    linear-gradient(to bottom,
    #8005d8 0%,
    #4B0082 80%,
    transparent 100%),
    url('../img/background.webp') center/cover no-repeat;
  background-blend-mode: overlay;
}

header .img-header{
  max-width: 100%;
  height: auto;
  padding: 20px;
}

.img-header-side{
  max-width: 30rem;
  height: auto;
}

.full-banner {
  background:
  radial-gradient(circle at 20% 30%, #4B0082, transparent 60%),
  radial-gradient(circle at 80% 70%, #4B0082, transparent 60%);
  min-height: 300px;
}

.page-header, .background-section {
  background: 
    linear-gradient(to bottom,
    #8005d8 0%,
    #4B0082 80%,
    transparent 100%),
    url('../img/background.webp') center/cover no-repeat;
  background-blend-mode: overlay;
  min-height: 400px;
}

.background-section-light{
  background: linear-gradient(to bottom, #F5EDE0, #ead9ff);
}

/* ==========================================
   Back to tops
   ========================================== */

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 99;
  display: none;
}

/* ==========================================
   Navbar
   ========================================== */
.floating-navbar {
  position: fixed;
  bottom: 0.3rem;
  left: 50%;
  transform: translateX(-50%) translateY(110%);
  z-index: 10;
  transition: opacity 0.5s ease, visibility 0.5s ease, transform 0.8s ease;
  opacity: 1;
  visibility: visible;
}

.floating-navbar.animate-in {
  transform: translateX(-50%) translateY(-10%);
}

.floating-navbar.hidden {
  opacity: 0;
  visibility: hidden;
}

.navbar {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(6px);
  border: 1px solid #7b2d3e;
  border-radius: 9999px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 0.1rem 3.8rem;
  width: 30rem;
  position: relative;
}

.navbar-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo img {
  width: 150px;
  height: auto;
  object-fit: contain;
}

.nav-items {
  display: flex;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 9999px;
  border: none;
  background: transparent;
  color: #1a1a1a;
  transition: all 0.2s ease;
  cursor: pointer;
}

.nav-btn:hover {
  background-color: #f0f0f0;
  color: #000;
}

.nav-btn.active {
  background-color: #4b0082;
  color: #fff;
  transform: scale(1.05);
}

.nav-btn .icon {
  transition: transform 0.2s ease;
}

.nav-btn.active .icon {
  transform: scale(1.1);
}

.label {
  font-size: 0.75rem;
  margin-top: 0.25rem;
  font-weight: 500;
}

/* Botón hamburguesa */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 60;
}

.hamburger-line {
  width: 100%;
  height: 3px;
  background-color: #1a1a1a;
  border-radius: 2px;
  transition: all 0.3s linear;
}

/* Menú móvil oculto por defecto */
.mobile-menu {
  display: none;
  position: absolute;
  bottom: 60px; /* Para que salga hacia arriba del navbar */
  right: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  border-radius: 12px 12px 0 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  width: 200px;
  z-index: 55;
  flex-direction: column;
  padding: 0.5rem 0;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.mobile-menu.show {
  display: flex;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Lista de opciones en menú móvil */
.nav-items-mobile {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.nav-items-mobile li {
  margin: 0;
}

.nav-btn-mobile {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  color: #1a1a1a;
  text-decoration: none;
  font-weight: 500;
  border-radius: 8px;
  transition: background-color 0.2s ease;
}

.nav-btn-mobile:hover,
.nav-btn-mobile.active {
  background-color: #4b0082;
  color: #fff;
}

.nav-btn-mobile .icon {
  width: 20px;
  height: 20px;
}

/* Mostrar menú hamburguesa y ocultar menú normal en pantallas pequeñas */
@media (max-width: 768px) {
  .navbar {
    width: auto;
    padding: 0.5rem 1rem;
  }

  .navbar-content {
    justify-content: space-between;
    width: 100%;
  }

  .nav-items {
    display: none;
  }

  .hamburger {
    display: flex;
  }
}

/* ==========================================
   Header
   ========================================== */


/* ==========================================
   ANIMACIONES Y EFECTOS
   ========================================== */

.fade {
  transition: opacity 0.15s linear;
}

.fade:not(.show) {
  opacity: 0;
}

.show {
  display: block !important;
}

/* ==========================================
   ESTILOS ADICIONALES PARA LIBRERÍAS
   ========================================== */

/* Font Awesome */
.fa {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
}

.fab {
  font-family: "Font Awesome 5 Brands";
}

.fas {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
}

/* Owl Carousel */
.owl-carousel .owl-item img {
  width: 100%;
  height: auto;
}

.owl-carousel .testimonial-item,
.owl-carousel .team-item {
  margin: 0 15px;
}

/* Lightbox */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  display: none;
}

.lightbox-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 90%;
  max-height: 90%;
}

/* ==========================================
   ESTILOS ESPECÍFICOS DEL PROYECTO
   ========================================== */

@media (min-width: 768px) {
  .header-full {
    min-height: 60vh;
  }
}

.nav-link-proyect {
  background-color: #8E1AFF;
}

.navbar-light .navbar-nav .nav-link:hover {
  color: #34005c;
}

.service-item i {
  transition: all 0.3s ease;
}

.service-item:hover i {
  transform: scale(1.1);
}

.button-primary {
  background-color: blueviolet;
  color: white;
}

.button-primary:hover {
  transform: translateY(-2px);
  background-color: indigo;
  color: white;
  box-shadow: 0 4px 15px rgba(75, 0, 130, 0.3);
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(75, 0, 130, 0.3);
}

/* ==========================================
   MEDIA QUERIES ADICIONALES
   ========================================== */

@media (max-width: 767.98px) {
  .container-fluid {
    padding-right: 15px;
    padding-left: 15px;
  }

  .display-2 {
    font-size: 2.5rem;
  }

  .display-3 {
    font-size: 2rem;
  }

  .display-4 {
    font-size: 2rem;
  }

  header {
    padding-top: 20vh;
  }
}

@media (max-width: 575.98px) {
  .btn-lg-square {
    width: 40px;
    height: 40px;
  }

  .service-item {
    margin-bottom: 30px;
  }
}

@media (min-width: 1200px) {
  .container-fluid {
    max-width: 1140px;
  }
}




/* ==========================================
   Star Border Effect
   ========================================== */

.star-border {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
}

.star-border::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwIiBoZWlnaHQ9IjEwMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cG9seWdvbiBwb2ludHM9IjUwLDUgNjEsMzUgOTUsMzUgNjgsNTcgNzksOTEgNTAsNzAgMjEsOTEgMzIsNTcgNSwzNSA0MCwzNSIgZmlsbD0iIzRCMDA4MiIvPjwvc3ZnPg==') repeat;
  animation: rotate-stars 10s linear infinite;
  z-index: -1;
}

@keyframes rotate-stars {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* ==========================================
   Typewriter Effect
   ========================================== */

#typewriter-text {
  font-family: "Open Sans", sans-serif;
  font-size: 1.25rem;
  color: white;
  border-right: 2px solid white;
  white-space: normal;
  overflow: hidden;
  animation: blink-caret 1s step-end infinite;
  word-wrap: break-word;
}

.cursor {
  border-right: 2px solid white;
  animation: blink-caret 1s step-end infinite;
}

@keyframes blink-caret {
  from, to {
    border-color: transparent;
  }
  50% {
    border-color: white;
  }
}
















