﻿*,
*::before,
*::after {
    box-sizing: border-box;
    /*font-family: "Poppins", 'Sans Serif';*/
}

html, body {
    min-height: 100%;
    width: 100%;
    margin: 0;
    overflow-x: hidden;
}

body {
    background-color: var(--color-bg);
    display: flex;
    width: 100%;
}












/* Navbar transparente pero visible */
/* =========================
   NAVBAR TRANSPARENTE
========================= */
.navbar-transparent{
    background-color: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background-color 0.3s ease;
    z-index: 1030; /* asegura que quede sobre todo */
}

/* Texto navbar */
.navbar-transparent .navbar-brand,
.navbar-transparent .nav-link {
    color: #ffffff;
    font-weight: 500;
}

/* Hover */
.navbar-transparent .nav-link:hover,
.navbar-transparent .nav-link.active {
    color: #ffc107;
    font-weight: 600;
}

/* Botón hamburguesa */
.navbar-transparent .navbar-toggler {
    border-color: rgba(255,255,255,0.5);
}

.navbar-transparent .navbar-toggler-icon {
    filter: invert(1);
}



/* 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 {
    display: block;
    width: 200px;
    border-radius: 15px;
}

.swiper-slide img:hover {
    filter: grayscale(0%);
    transform: scale(1.1);
}

.swiper-pagination-bullet {
    background: #007bff;
    opacity: 1;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.swiper-pagination-bullet-active {
    background: #ff4081;
}

.swiper-slide:not(.swiper-slide-active) {
    pointer-events: none;
    opacity: 0.4;
}


/* Enlace */
.logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* Imagen */
.logo-link img {
    max-height: 240px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%);
    transition: transform 0.3s ease, filter 0.3s ease;
}

    /* Hover */
    .logo-link:hover img {
        transform: scale(1.08);
        filter: grayscale(0%);
    }


/* Contacto */

#contacto {
    background-image: url('/images/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;
    }


/* 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;
}


.iconos-redes-sociales {
    font-size: 1.1rem;
    gap: 10px;
    margin-top: 6px;
    transition: all 0.2s ease;
}

/* Íconos */
.iconos-redes-sociales a {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #fff;
    border-radius: 50%;
    color: #fff;
    
    transition: all 0.2s ease-in;
}

.iconos-redes-sociales a:hover {
    background-color: #fff;
    color: #000;
}



.iconos-redes-sociales i {
    color: white;
    font-size: 16px;
    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-height: 683px) {
/*    .footer-main{
        box-shadow: none;
    }
    .footer-main ul{
        display: none;
    }
*/    /*.menu-container{
        overflow-y: auto;
    }

    .main-content{
        padding: 2rem;
    }*/

}


    @media (max-width: 600px) {
        #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 */
        }

        /*.footer-main {
            box-shadow: none;
        }

            .footer-main ul {
                display: none;
            }*/

/*        .menu-container {
            overflow-y: auto;
        }*/

        /*    .search{
        box-shadow: none;
        border: 2px solid var(--color-border);
    }

    .search:hover {
        box-shadow: none;
    }

    .barra-lateral .nombre-pagina {
        margin-bottom: 5px;
    }

    .barra-lateral .modo-oscuro {
        margin-bottom: 3px;
    }*/
    }



@media (max-width:600px) or (max-height:660px) {
/*    #menu-btn {
        display: none;
    }*/
/*    .sidebar{
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }*/
    .content .sidebar-btn {
        /*border: 2px solid black;*/
        display: flex;
        top: 4rem;
        right: 1rem;
        padding: 1.2rem;
    }
    .content .sidebar-btn i:last-child {
            display: none;
        }

    .content body.sidebar-hidden .sidebar {
        transform: translateX(0);
    }
/*
    body.sidebar-hidden .sidebar-btn i:last-child{
        display: flex;
    }

    body.sidebar-hidden .sidebar-btn i:first-child{
        display: none;
    }*/

/*        .barra-lateral {
            position: fixed;
            left: -250px;
        }

        .max-barra-lateral {
            left: 0;
        }
*/
/*        .menu {
            display: flex;
        }

            .menu i:nth-child(2) {
                display: none;
            }
*/
/*
        .main-content {
            padding: 2rem;*/
            /*margin-left: 0;*/
        /*}*/

         /*   main.min-main {
                margin-left: 0;
            }*/
    }