* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    height: 100%;
    overflow-y: scroll;
}

::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

* {
    scrollbar-width: thin;
    scrollbar-color: #888 #f1f1f1;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    height: 100%;
    margin: 0;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #313131;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.todo,
.contenedor {
    flex: 1;
    max-width: 95%;
    width: 95%;
    margin: 80px auto 40px;
    padding: 0 20px;
    min-height: auto;
}

.principal,
.contenido {
    background-color: white;
    border: 4px solid #3b7bc8;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    margin: 0 auto;
}

.contenido {
    padding-bottom: 40px;
    min-height: auto;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    padding: 0;
    margin: 0;
}

nav ul li {
    position: relative;
}

nav ul li a {
    text-decoration: none;
    color: white;
    font-size: 14px;
    padding: 12px 25px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    border-right: 1px solid #2c3e50;
}

nav ul li:first-child a {
    border-radius: 5px 0 0 5px;
}

nav ul li:last-child a {
    border-radius: 0 5px 5px 0;
    border-right: none;
}

nav ul li a:hover {
    background-color: #585352;
    transform: translateY(-2px);
}

nav ul li a.active {
    background-color: #585352;
}

nav ul li a.active i {
    color: white;
}

nav ul li a i {
    font-size: 16px;
    transition: transform 0.5s ease;
}

nav ul li a:hover i {
    transform: rotate(360deg);
}

#primero {
    margin-top: 0;
    padding: 60px 40px 30px;
    text-align: center;
}

#primero h3 {
    color: #e74c3c;
    font-size: 28px;
    margin-bottom: 15px;
}

#primero p {
    color: #555;
    font-size: 16px;
    line-height: 1.8;
    max-width: 1200px;
    margin: 0 auto 20px;
}

#primero img {
    width: 100%;
    max-width: 1200px;
    height: 600px;
    display: block;
    margin: 0 auto;
    transition: all 0.4s ease;
    filter: brightness(0.95);
    object-fit: cover;
}

#primero img:hover {
    filter: brightness(1.05);
    transform: scale(1.02);
}

.titulo {
    background-color: white;
    padding: 40px 120px 30px;
    text-align: center;
}

.titulo h3 {
    color: #e74c3c;
    font-size: 28px;
    margin: 20px;
    margin-bottom: 15px;
}

.titulo p {
    color: #555;
    font-size: 14px;
    line-height: 1.6;
}

.banner-image {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0.5;
    transition: all 0.4s ease;
}

.banner-image:hover {
    opacity: 0.8;
}

.productos-section {
    padding: 60px 120px;
    margin: 0;
    padding-top: 40px;
    padding-bottom: 40px;
}

.productos-list {
    list-style: none;
    counter-reset: item;
    margin-left: 0;
}

.productos-list li {
    counter-increment: item;
    margin-bottom: 20px;
    padding: 20px;
    background-color: rgb(236, 239, 238);
    border-radius: 0;
    border: 1px solid #ddd;
    border-left: 4px solid #0fb253;
    padding-left: 15px;
    box-shadow: none;
    transition: all 0.3s ease;
    position: relative;
}

.productos-list li:hover {
    transform: none;
    box-shadow: 0 2px 8px rgb(0, 255, 26);
}

.productos-list li::before {
    content: counter(item);
    position: absolute;
    left: -35px;
    top: 50%;
    transform: translateY(-50%);
    color: #000000;
    font-size: 24px;
    font-weight: bold;
}

.lista-contenido,
.lista2-contenido,
.lista3-contenido {
    padding: 25px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.lista-titulo,
.lista2-titulo,
.lista3-titulo {
    flex: 1;
    max-width: 900px;
}

.lista-titulo h3,
.lista2-titulo h3,
.lista3-titulo h3 {
    font-size: 18px;
    font-weight: bold;
    color: black;
    margin: 0 0 5px 0;
}

.lista-titulo p,
.lista2-titulo p,
.lista3-titulo p {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.product-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 0;
    margin-right: auto;
    position: absolute;
    left: 40%;
    transform: translateX(-50%);
}

.product-icon img {
    width: 150px;
    height: 150px;
    opacity: 0.6;
    object-fit: contain;
}

.productos-list li:hover .product-icon {
    filter: brightness(1.2) saturate(1.5);
    transform: scale(1.2) rotate(360deg) translateX(-50%);
}

.contacto {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 0px;
    padding: 20px 120px;
}

.contacto p {
    font-size: 14px;
    color: #555;
}

.contacto a {
    text-decoration: none;
    transition: color 0.3s ease;
}

.contacto a:hover {
    color: #e74c3c;
    text-decoration: underline;
}

footer {
    background-color: #a7a0a0;
    color: white;
    text-align: center;
    padding: 15px;
    margin-top: 0;
    width: 100%;
    position: relative;
}

footer p {
    font-size: 13px;
    margin: 0;
}

@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        gap: 0;
    }

    nav ul li a {
        border-right: none;
        border-bottom: 1px solid #2c3e50;
        border-radius: 0 !important;
    }

    nav ul li:last-child a {
        border-bottom: none;
    }

    .todo,
    .contenedor {
        width: 100%;
        max-width: 100%;
        margin: 70px auto 20px;
        padding: 0 10px;
    }

    #primero {
        padding: 40px 20px 20px;
    }

    #primero h3 {
        font-size: 22px;
    }

    #primero p {
        font-size: 14px;
    }

    #primero img {
        height: 300px;
        max-width: 100%;
    }

    .titulo {
        padding: 20px;
    }

    .titulo h3 {
        font-size: 22px;
    }

    .titulo p {
        font-size: 14px;
    }

    .productos-section {
        padding: 20px;
    }

    .lista-contenido,
    .lista2-contenido,
    .lista3-contenido {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
        margin-left: 0;
    }

    .lista-titulo,
    .lista2-titulo,
    .lista3-titulo {
        max-width: 100%;
        text-align: center;
    }

    .lista-titulo h3,
    .lista2-titulo h3,
    .lista3-titulo h3 {
        font-size: 16px;
    }

    .lista-titulo p,
    .lista2-titulo p,
    .lista3-titulo p {
        font-size: 13px;
    }

    .product-icon {
        position: static;
        transform: none;
        margin: 0 auto;
    }

    .product-icon img {
        width: 100px;
        height: 100px;
    }

    .productos-list li::before {
        font-size: 28px;
        left: 5px;
    }

    .contacto {
        padding: 20px;
    }

    .contacto p {
        font-size: 13px;
    }

    footer p {
        font-size: 12px;
    }
}