* {
    box-sizing: border-box;
}

body {
    font-family: "Lato", sans-serif;
    background-image: url("img/bg-catalogo.webp");
    background-size:auto;
    background-position: top center;
    background-repeat: no-repeat;
    background-color: #ffffff;
    margin: 0 0 40px 0;
}

header {
    margin: 50px 0 20px 0;
}

.titulo-catalogo {
    margin-top: 120px;
    text-align: center;
    color: #ffffff;
}

h1 {
    text-transform: uppercase;
    margin-bottom: 10px;
}
.h1-det {
    font-size: 45px;
}
h2 {
    margin-top: 10px;
    font-weight: 400;
}
h2 strong {
    font-weight: 700;
}
.h2-det {
    font-weight: 400;
    font-size: 30px;
    text-transform: uppercase;
}
.producto-info h2 {
    font-weight: 800;;
}
/*ESTILOS NAVEGADOR*/

.navbar {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    position: fixed !important;
    top: 0;
    background-color: #1f3669;
    margin: 0 auto;
    z-index: 1000;
    width: 100%;
    padding: 0px 10px;
    height: 77px;

}
.checkbtn {
    font-size: 30px;
    color: rgb(0, 0, 0);
    float: right;
    line-height: 70px;
    margin-right: 20px;
    cursor: pointer;
    display: none;
}
#check {
    display: none;
}

nav ul {
    list-style: none;
    float: right;
    margin: 0px;
}
nav ul li {
    display: inline-block;
    line-height: 30px;
}
li {
    font-family: "Lato", sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-align: justify;
    padding-left: 8px;
    padding-right: 8px;
    text-transform: uppercase;
    color: white;
    text-decoration: none!important;
    transition: all 0.3s ease-in-out;
}
li a,
li:active,
li:hover,
li:focus,
li:visited {
    text-transform: uppercase;
    text-decoration: none!important;
    color: white;
    transition: all 0.3s ease-in-out;
}
.logo {
    width: 156px;
    height: calc(100% - 10px) !important;
    padding: 0px !important;
    vertical-align: super !important;
}

.wrapper-formulario {
    height: 60px !important;
}

/* Styling for search form placed inside the navigation bar */
.navbar .wrapper-formulario {
    display: flex;
    align-items: center;
    margin-left: auto;
    margin-bottom: 0;
    margin-right: 20px;
    max-width: 400px;
    flex: 1;
}

.navbar .formulario-buscar {
    flex: 1;
    min-width: 0;
    border-radius: 4px 0 0 4px;
}

.navbar .boton-buscar {
    border-radius: 0 4px 4px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
}
form {
    display: flex;
    align-items: center;
    justify-content: center;
}
button {
    border-style: none;
    cursor: pointer;
}
input[type="text"], input[type=search] {
    font-family: "Lato", sans-serif;
    font-size: 14px;
    padding: 0px 10px;
    height: 35px;
}

.formulario-buscar {
    font-family: "Lato", sans-serif;
    font-size: 14px;
    position: relative;
    height: 30px;
    border: solid;
    border-color: #5674b4;
    border-width: 1px 0 1px 1px!important;
    margin-right: 0 !important;
    background-color: #1f3669;
    color: #ffffff;
}
.formulario-buscar::placeholder {
    color: #ffffff;
    opacity: 1; /* Firefox */
    text-transform: uppercase;
}
.boton-buscar {
    color: #ffffff;
    background-color: #c22026;
    background-image: none;
    border-color: #c22026;
    height: 35px;
    padding: 0px 10px;
    border-radius: 0px;
    font-weight: 600;
    text-transform: uppercase;
}
.menu-buscador {
    display: flex;
    justify-content: right;
    align-items: center;
    gap: 30px;
}
.social-icons {
    display: flex;
    justify-content: right;
    align-items: center;
    gap: 20px;
    font-size: 1.8em;
    fill: white !important;
    color: #ffffff;
}
.social-icons a,
.social-icons a:link,
.social-icons a:visited,
.social-icons a:hover {
    fill: white !important;
    color: #ffffff;
    transition: all 0.3s ease-in-out;
}

/* The dropdown container */
.dropdown {
    position: relative;
    display: inline-block;
}

/* Dropdown button */
.dropdown .dropbtn {
    font-family: "Lato", sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-align: justify;
    border: none;
    outline: none;
    color: white;
    padding: 0 8px;
    height: 30px;
    line-height: 30px;
    background-color: inherit;
    text-transform: uppercase;
}

/* Dropdown content (hidden by default) */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #1f3669;
    width: max-content;
    min-width: 100%;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

/* Links inside the dropdown */
.dropdown-content a {
    float: none;
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
    font-size: 12px;
    white-space: nowrap;
}

/* Add a grey background color to dropdown links on hover */
.dropdown-content a:hover {
    background-color: #424448;
}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {
    display: block;
}

/*FIN NAVEGADOR*/

.wrapper {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    grid-auto-flow: row;
    max-width: 1240px;
    margin: 0 auto;
    gap: 20px;
}

.wrapper h3 {
    text-align: center;
    color: #ffffff;
}

.card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #1f3669;
    border-radius: 10px;
    box-shadow: 0 0 8px rgba(82, 41, 41, 0.4);
    overflow: hidden;
    width: 100%;
    margin: 0 auto;
}

.producto-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px;
    background-color: #ffffff;
}

.producto-header-det {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background-color: #ffffff;
    padding: 3%;
}

.producto-header-kit {
    display: flex;
    gap: 20px;
    margin: 0 auto;
    background-color: #ffffff;
}

.producto-img-kit img {
    width: 100%;
    height: auto;
    display: block;
}

.imagenes-kit {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    background-color: #f2f2f2;
    width: ;
}

.imagenes-kit img {
    display: flex;
    mix-blend-mode: multiply;
    background-color: #f2f2f2;
    max-width: 200px;
}
.foto-texto-kit {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 20px;
}

.foto-texto-kit:nth-child(1), .foto-texto-kit:nth-child(2) {
    border-bottom: solid 1px #ffffff;
}

.producto-info {
    color: #1f3669;
}

.producto-info h2 {
    margin: 0;
    font-size: 20px;
}

.producto-info p {
    margin: 5px 0;
    font-size: 14px;
}

.producto-info strong {
    display: block;
    font-size: 14px;
    margin-top: 10px;
}

.producto-img img {
    max-width: 220px;
}

.producto-img-novedad img {
    max-width: 350px;
}

.slider-container img {
    padding: 0 15%;
}

.compatibilidad {
    display: flex;
    justify-content: flex-start;
    background-color: #1f3669;
    color: white;
    font-size: 13px;
}

.compatibilidad-fila-uno, .compatibilidad-fila-dos {
    display: flex;
    flex-direction: column;
    width: 50%;
    justify-content: space-between;
    align-items: center;
}

.compatibilidad-fila-uno-detalle {
    display: flex;
    flex-direction: column;
    width: 60%;
    justify-content: space-between;
    align-items: center;
}

.compatibilidad-fila-dos-detalle {
    display: flex;
    flex-direction: column;
    width: 40%;
    justify-content: space-between;
    align-items: center;
}

.fila {
    display: flex;
    padding: 8px 12px;
    width: 100%;
}

.fila.encabezado {
    font-weight: 900;
    font-size: 15px;
    background-color: #1f3669;
    border-bottom: 2px solid gray;
    height: 50px;
}

.fila:nth-child(even):not(.encabezado) {
    background-color: #27427d;
}

.fila:nth-child(odd):not(.encabezado) {
    background-color: #1f3669;
}

.celda {
    flex: 1;
    height: 36px;
    padding: 4px 6px;
}

.ver-mas {
    background-color: #b0161c;
    color: white;
    text-align: center;
    padding: 14px;
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
}

.volver {
    background-color: #b0161c;
    color: white;
    text-align: center;
    padding: 10px 18px 10px 10px;
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;

}
.volver::before {
    content: "";
    display: inline-block;
    vertical-align: middle;
    margin-right: 5px;
    width: 18px;
    height: 18px;
    mask: url('data:image/svg+xml;utf8,<svg fill="white" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"/></svg>') no-repeat center;
    background-color: white;
}

.ver-mas::after {
    font-family: "Font Awesome 5 Free";
    content: "\f067";
    font-weight: 900;
    font-weight: bold;
    position: absolute;
    right: 20px;
    font-size: 20px;
}

.ver-mas:hover {
    background-color: #c22026;
    color: white;
    text-decoration: none;
}

.ver-mas a,
.producto-boton a:link, .ver-mas a:visited {
    color: white;
    text-decoration: none!important;
}

.espacio {
    border-top: solid 1px #27427d;
}

.contenido-kit {
    background-color: #27427d;
    padding: 0px 0 0 20px;
    color: white;
    font-weight: 800;;
}

.equiv-oem-box {
    display: flex;
    flex-wrap: wrap;
    background-color: #f2f2f2;
    border:  #ffffff solid;
    border-width: 1px 0px 0px 0px;
}

.equiv-oem-item {
    flex: 1 1 300px;
    font-size: 14px;
    text-transform: uppercase;
    color: #343434;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 400;
}

.equiv-oem-item strong {
    font-weight: 900;
    font-size: 15px;
    color: #343434;
}

@media screen and (max-width: 768px) {
    body {
        background-image: url("img/bg-catalogo-m.webp");
        background-size:contain;
        background-position: top;
        background-repeat: no-repeat;
    }
    .wrapper {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        grid-auto-flow: row;
        margin: 0 auto;
        gap: 20px;
        padding: 10px;;
    }
    .volver {
        width: 100%;
    }
    .card {
        width: 100%;
    }
    .producto-header {
        flex-direction: column;
        align-items: center;
    }
    .producto-img img {
        max-width: 100%;
    }
    .producto-info h2 {
        margin: 0;
        font-size: 30px;
    }
    .producto-info p {
        margin: 5px 0;
        font-size: 16px;
    }
    .producto-info strong {
        display: block;
        font-size: 16px;
        margin-top: 10px;
    }
    .compatibilidad {
        flex-direction: column;
        font-size: 14px;
    }
    .compatibilidad-fila-uno, .compatibilidad-fila-dos {
        display: flex;
        flex-direction: column;
        width: 100%;
        justify-content: space-between;
        align-items: center;
    }

    .fila {
        padding: 9px 0px;
    }
    .ver-mas {
        font-size: 16px;
        padding: 20px;
    }
    .ver-mas::after {
        top: 12px;
        right: 20px;
        font-size: 24px;
    }
    .titulo-catalogo .container {
        padding: 0 10px;
    }
    h1 {
        font-size: 24px;
    }

    h2 {
        font-size: 17px;
    }

    .producto-header-det {
        padding: 0%;
    }

    .slider-container img {
        padding: 0 0%;
    }

    .producto-header-kit {
        flex-direction: column;
        align-items: center;
    }

    .imagenes-kit {
        width: 100%;
    }

    .imagenes-kit img {
        max-width: 150px;
        margin: 0 auto;
    }

    .compatibilidad-fila-uno-detalle {
        width: 100%;
    }
    .equiv-oem-item {
        padding: 10px;
    }

    .compatibilidad-fila-dos-detalle {
        width: 100%;
    }
    /* ------------------ Menú Responsive ------------------ */
    @media (max-width: 768px) {
        .checkbtn {
            display: block;
            position: absolute;
            right: 0px;
            color: white;
        }
        .navbar {
            padding: 0px;
            flex-wrap: wrap;
        }
        nav ul {
            text-align: left;
            margin: 0px;
            padding: 0px;
        }
        .formulario-buscar {
            border-width: 1px !important;
        }
        .menu-buscador {
            display: none;
            flex-direction: column;
            background-color: #1f3669;
            width: 100%;
            padding: 20px;
            margin-top: 445px;
        }

        #check:checked ~ .menu-buscador {
            display: flex;
            width: 100%;
            position: absolute;
        }

        .menu-buscador ul {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            gap: 0px;
            align-items: center;
            margin-bottom: 15px;
        }

        .wrapper-formulario {
            flex-direction: column;
            gap: 10px;
            width: 100%;
        }

        .navbar .wrapper-formulario {
            margin: 10px 0;
            max-width: none;
            width: 100%;
        }

        .formulario-buscar {
            width: 100%;
            border-radius: 4px 4px 4px 4px;
        }

        .boton-buscar {
            width: 100%;
            border-radius: 4px 4px 4px 4px;
        }

        .social-icons {
            margin-top: 10px;
        }
    }

}
