/* Navbar transparente pero visible */
.custom-navbar {
    background: rgba(0, 0, 0, 0.4);
    transition: background 0.3s ease-in-out;
}

.custom-navbar.scrolled {
    background: rgba(0, 0, 0, 0.85);
}

/* Logo centrado animado */
.logo-animado {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 15vw;  /* Tamaño proporcional al ancho del viewport */
    max-width: 120px; /* Límite superior para que no crezca mucho en pantallas grandes */
    min-width: 60px;  /* Límite inferior para que no sea demasiado pequeña */
    z-index: 10;
    animation: float 3s ease-in-out infinite;
}

.logo-animado img {
    width: 150px;
    height: 150px;
}

/* Animación del logo */
@keyframes float {
    0% { transform: translate(-50%, -50%) translateY(0px); }
    50% { transform: translate(-50%, -50%) translateY(-15px); }
    100% { transform: translate(-50%, -50%) translateY(0px); }
}



/* Servicios */
.card-body {
    padding: 8px;
    border: 2px solid #8080804d;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    transition: all 0.2s ease-in;
}

.card-body:hover {
    color: white;
    background-color: #1b1b32;
}

.card-body i {
    font-size: 2.5rem;
    color: #7ade30;
    background-color: #0a0a23;
    padding: 8px 19px;
    border-radius: 50%;
}

.card-title {
    font-size: 20px;
    font-weight: bold;
    margin: 10px 0;
}



/* Swiper logos */
.swiper {
  width: 100%;
  max-width: 800px;
  height: 300px;
  margin: 90px auto;
}

.swiper-slide {
  background-position: center;
  background-size: cover;
  width: 300px;
  height: 300px;
  display: flex;	
  justify-content: center;
  align-items: center;
  transition: transform 0.4s ease;
}
.swiper-slide img {
    /*width: 190px;
    height: auto;
    filter: grayscale(100%);
    transition: all 0.3s ease;*/
    display: block;
  /*width: 100%;*/
	width: 200px;
  border-radius: 15px;
}

.swiper-slide img:hover {
    filter: grayscale(0%);
    transform: scale(1.1);
}

.swiper-pagination-bullet {
  /*background: #0d6efd !important;
  opacity: 0.6;
  */
  background: #007bff;
  opacity: 1;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.swiper-pagination-bullet-active {
  /*transform: scale(1.2);
  opacity: 1;*/
  background: #ff4081;
}



/* Contacto */

#contacto {
    background-image: url('imagenes/soporte_1.jpg');
    background-size: cover;          /* Por defecto, que ocupe todo */
    background-position: center;     /* Centrada */
    background-repeat: no-repeat;
    background-attachment: fixed;    /* Efecto parallax */
    position: relative;
    padding-top: 80px;
    padding-bottom: 80px;
    overflow: hidden;
}

/* 🔲 Oscurecemos un poco la imagen para resaltar el contenido */
#contacto::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.55);
    z-index: 0;
    background-image: inherit;
    background-size: inherit;
    background-position: inherit;
    background-repeat: inherit;
    animation: zoomFondo 20s ease-in-out infinite;
}

/* Zoom lento del fondo */
@keyframes zoomFondo {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}


/* Mantener el contenido visible sobre la imagen */
#contacto .container {
    position: relative;
    z-index: 1;
}

/* Opcional: darle sombra al título para que se lea mejor */
#contacto h2 {
    color: #fff;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.7);
    font-size: 2.2rem;
    white-space: nowrap;
    overflow: hidden;
    border-right: 3px solid #fff;
    width: 0;
    animation: typing 3s steps(20) forwards, blink 0.7s infinite;
}

/* Efecto typing */
@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

/* Parpadeo del cursor */
@keyframes blink {
    0%, 50% {
        border-color: #fff;
    }
    51%, 100% {
        border-color: transparent;
    }
}

/* 🎨 FORMULARIO CON EFECTO GLASSMORPHISM */
.glass-form {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    opacity: 0;
    transform: translateY(40px);
    animation: fadeForm 1.5s ease forwards;
    animation-delay: 2.5s; /* Después de escribir el título */
}

/* Animación de entrada suave */
@keyframes fadeForm {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Estilo de labels y placeholders */
.glass-form .form-label {
    color: #fff;
    font-weight: bold;
}

.glass-form input,
.glass-form textarea {
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    transition: all 0.3s ease;
}

/* Efecto al enfocar inputs */
.glass-form input:focus,
.glass-form textarea:focus {
    background-color: rgba(255, 255, 255, 0.3);
    border-color: #00c6ff;
    box-shadow: 0 0 10px #00c6ff;
}

/*.glass-form input::placeholder,
.glass-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.8);
}*/

/* Botón más vistoso */
.glass-form .btn-primary {
    background: linear-gradient(135deg, #007bff, #00c6ff);
    border: none;
    font-weight: bold;
    transition: all 0.3s ease-in-out;
}

.glass-form .btn-primary:hover {
    background: linear-gradient(135deg, #00c6ff, #007bff);
    transform: scale(1.05);
    box-shadow: 0 0 15px #00c6ff;
}


/* ------------------------------
   PIE DE PÁGINA
------------------------------ */
footer {
  background-color: #0d6efd;
  color: #fff;
  padding: 20px;
  text-align: center;
  font-size: 1rem;
  position: relative;
  bottom: 0;
  width: 100%;
}

footer .iconos-redes-sociales a {
  color: #fff;
  font-size: 1.5rem;
  margin: 0 10px;
  transition: color 0.3s ease;
}

footer .iconos-redes-sociales a:hover {
  color: #ffc107;
}

.iconos-redes-sociales a {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
    margin: 10px;
    border: 2px solid white;
    border-radius: 50%;
    transition: all 0.2s ease-in;
}

.iconos-redes-sociales i {
    color: white;
    font-size: 1.5rem;
    transition: all 0.2s ease-in;
}

.iconos-redes-sociales a:hover {
    background-color: white;
    border: 2px solid rgb(13, 110, 253);
}

.iconos-redes-sociales a:hover i {
    color: black;
}


/* 📱 Ajuste responsive para móviles */
@media (max-width: 576px) {
    #contacto {
        background-size: contain;   /* En móviles mostramos la imagen completa */
        background-attachment: scroll; /* Quitamos el parallax para mejor rendimiento */
        background-color: #000;     /* Color de fondo para zonas sobrantes */
    }

    #contacto::before {
        background-color: rgba(0, 0, 0, 0.65); /* Oscurecemos un poco más en móvil */
    }

    #contacto h2 {
        font-size: 1.8rem;
    }

    .glass-form {
        background: rgba(0, 0, 0, 0.5); /* Fondo un poco más opaco para mejorar contraste */
        backdrop-filter: blur(10px);
    }	

	.carousel-caption h2 {
	    font-size: 6px; /* más pequeño en móviles */
	}
}