/* ESTILOS FIJOS Y ESTABLES */

:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --color-light: #f8fafc;
    --color-primary: #2563eb;
}

body {
    overflow-x: hidden;
    padding-top: 76px;
    /* Espacio para navbar fijo */
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

h2 {
    font-weight: bold;
}

.barra {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    font-size: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);


}

.navbar {
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.navbar.bg-light {
    background-color: #ffffff !important;
}

.navbar.barra {
    z-index: 1030;
    transition: all 0.3s ease;
}

.nav-link {
    font-weight: 500;
    position: relative;
    margin: 0 5px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background-color: rgba(52, 152, 219, 0.1);
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
}

.btn-teknobits {
    background-color: #3498db;
    color: white;
    border: none;
}

.btn-teknobits:hover {
    background-color: #2980b9;
    color: white;
}

.bg-header {
    background: url('/img/f1.png') center center / cover no-repeat;
    height: 200px;
    border-radius: 10px;
    margin-top: 30px;
}

.logo {
    transition: all 0.3s ease;
    border: 2px solid #ddd;
    border-radius: 15px;
    padding: 5px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    background-color: transparent !important;
}

.logo:hover {
    transform: scale(1.05);
    border-color: var(--primary-color);
}


.MT {
    margin-top: 2rem;
}

/* HISTORIA SECTION */
.history-content {
    padding: 2rem 0;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

.section-historia {
    font-size: clamp(1.8rem, 4vw, 3rem);
    margin-bottom: 1.5rem;
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.img-historia {
    width: 100%;
    max-width: 800px;
    height: auto;
    margin: 2rem 0;
}

/* TIMELINE */
.timeline {
    position: relative;
    padding-left: 2rem;
    margin: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #007bff;
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -1rem;
    top: 0.5rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #007bff;
    border: 3px solid white;
}

/* SECCIÓN QUIÉNES SOMOS */
.fondo-patron {
    background-color: ghostwhite;
    border-radius: 10px;
    padding: 3rem 0 !important;
}

.text-destacado {
    color: #007bff;
    font-weight: 600;
}

/* IDENTIDAD EMPRESARIAL */
.section-box {
    padding: 3rem;
    margin: 2rem 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

.title-banner {
    margin-bottom: 3rem;
    color: black;
}

/* VALORES */
.contenedor-valores {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.box-valores {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    height: 100%;
}

.box-valores:hover {
    transform: translateY(-5px);
}

.dtos-imagen-val {
    height: 200px;
    overflow: hidden;
}

.dtos-imagen-val img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.box-valores:hover .dtos-imagen-val img {
    transform: scale(1.05);
}

.text-box-conten {
    padding: 1.5rem;
}

.icon-val {
    color: #007bff;
    margin-right: 0.5rem;
}

/* SCROLL TO TOP BUTTON - CORREGIDO */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 990;
    /* Más bajo que navbar */
    width: 50px;
    height: 50px;
    background-color: #007bff;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border: none;
}

.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top-btn:hover {
    background-color: #0056b3;
    transform: scale(1.1);
}

/* RESPONSIVE FIXES */
@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }

    .MT {
        margin-top: 1rem;
    }

    .history-content {
        padding: 1rem 0;
    }

    .section-box {
        padding: 2rem 0;
        margin: 1rem 0;
    }

    .contenedor-valores {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .timeline {
        padding-left: 1.5rem;
    }

    .timeline-item {
        padding-left: 1.5rem;
    }
}

@media (max-width: 576px) {
    .scroll-top-btn {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }

    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .section-historia {
        font-size: 1.5rem;
    }
}

/* EVITAR DESBORDAMIENTOS */
img {
    max-width: 100%;
    height: auto;
}

.row {
    margin-left: 0;
    margin-right: 0;
}

.container-fluid {
    padding-left: 15px;
    padding-right: 15px;
}