body {
    font-family: 'Poppins', sans-serif;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    background-color: #ffffff;
    color: #000000;
    overflow-x: hidden;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 50px;
    background-color: #ffffff;
}

ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

li {
    display: block;
}

nav {
    position: fixed;
    display: flex;
    top: 0;
    left: 0;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
    width: 100%;
    padding: 20px 50px;
    background-color: #ffffff;
    box-sizing: border-box;
}

.logo {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
}

#logo {
    width: 85px;
    height: auto;
    transition: transform 0.3s;
}

#logo:hover {
    transform: scale(1.1);
}

/* Sidebar navigation */
.sidebar {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 1001;
    top: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.92);
    overflow-x: hidden;
    padding-top: 70px;
    transition: 0.4s ease;
}

.sidebar a {
    display: block;
    color: #e7e7e7;
    text-decoration: none;
    font-size: 22px;
    text-align: center;
    margin: 18px auto;
    padding: 8px 16px;
    transition: 0.3s;
}

.sidebar a:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.sidebar ul {
    margin-top: 30px;
}

.sidebar .closebtn {
    color: #cecece;
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 38px;
    margin: 0;
    padding: 0;
    cursor: pointer;
}

.sidebar .closebtn:hover {
    color: #ffffff;
    background: transparent;
}

.openbtn {
    font-size: 28px;
    cursor: pointer;
    border: none;
    background: none;
    color: #000000;
    transition: 0.2s;
    padding: 8px 14px;
    border-radius: 8px;
}

.openbtn:hover {
    background-color: rgba(0, 0, 0, 0.06);
}

/* Home / Leyenda */
.leyenda {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: calc(100vh - 100px);
    padding: 120px 8% 40px;
    max-width: 1400px;
    margin: 0 auto;
    box-sizing: border-box;
}

.home {
    max-width: 600px;
}

.home h2 {
    letter-spacing: 2px;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #000000;
}

.home h1 {
    font-size: 72px;
    margin: 15px 0;
    font-weight: 700;
    line-height: 1.1;
    color: #000000;
}

.home h3 {
    font-size: 24px;
    font-weight: 400;
    color: #444444;
}

.icono {
    max-width: 440px;
    width: 42%;
    height: auto;
    object-fit: contain;
}

/* Titles */
.titulo {
    text-align: center;
    margin-top: 130px;
    margin-bottom: 40px;
    padding: 0 20px;
}

.titulo h2 {
    letter-spacing: 2px;
    font-size: 32px;
    color: #000000;
    margin-bottom: 10px;
}

.titulo h3 {
    font-size: 18px;
    font-weight: 400;
    color: #555555;
}

.titulo-seccion {
    text-align: center;
    margin: 70px auto 30px;
    padding: 0 20px;
}

.titulo-seccion h2 {
    letter-spacing: 2px;
    font-size: 28px;
    color: #000000;
}

/* About Us */
.contenedor {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto 80px;
    padding: 0 20px;
}

.nos {
    text-align: center;
    max-width: 320px;
    padding: 20px;
}

.nos img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
}

.nombre {
    padding: 8px 0 4px;
    font-weight: 600;
    font-size: 18px;
    text-transform: uppercase;
    color: #000000;
}

.desig {
    color: #666666;
    font-size: 15px;
    margin-bottom: 12px;
}

.about {
    font-size: 15px;
    color: #444444;
    line-height: 1.6;
}

/* Contacto */
form {
    max-width: 440px;
    margin: 30px auto 80px;
    padding: 0 20px;
    box-sizing: border-box;
}

.form-group {
    margin-bottom: 22px;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #000000;
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
    box-sizing: border-box;
}

button[type="submit"] {
    display: block;
    width: 100%;
    padding: 14px;
    background-color: rgba(0, 0, 0, 0.9);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-family: inherit;
    font-weight: 500;
    cursor: pointer;
    transition: 0.3s;
}

button[type="submit"]:hover {
    background-color: rgb(0, 0, 0);
}

.imagenw img {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 55px;
    height: 55px;
    cursor: pointer;
    transition: transform 0.3s;
    z-index: 999;
}

.imagenw img:hover {
    transform: scale(1.1);
}

/* Modelo 3D */
.image {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto 80px;
    padding: 0 20px;
    flex-wrap: wrap;
}

.image img {
    width: 320px;
    max-width: 100%;
    height: auto;
    filter: grayscale(100%);
    -webkit-filter: grayscale(100%);
    transition: all 0.3s ease-out;
    cursor: pointer;
}

.image img:hover {
    transform: scale(1.05);
    filter: grayscale(0%);
    -webkit-filter: grayscale(0%);
}

/* Objetivos */
.texto {
    max-width: 850px;
    margin: 20px auto 40px;
    padding: 0 25px;
}

.texto h4 {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.7;
    margin-bottom: 22px;
    color: #333333;
}

.contenedor1 {
    display: flex;
    justify-content: center;
    margin: 20px auto 70px;
    padding: 0 20px;
}

.nos1 {
    text-align: center;
    max-width: 480px;
}

.nos1 img {
    width: 100%;
    max-width: 420px;
    height: auto;
    border-radius: 8px;
}

.nos1 .nombre {
    margin-top: 14px;
    font-weight: 600;
    font-size: 18px;
    text-transform: uppercase;
}

/* Estructura */
#imagenes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 850px;
    margin: 30px auto 60px;
    padding: 0 20px;
}

.imagen {
    width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.codigo {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 950px;
    margin: 0 auto 60px;
    padding: 0 20px;
}

.container {
    width: 100%;
    background-color: #2d2d2d;
    border-radius: 8px;
    overflow: hidden;
}

.code-wrapper {
    max-height: 480px;
    overflow: auto;
    padding: 15px;
}

.code-wrapper pre {
    margin: 0;
}

.cont {
    max-width: 950px;
    margin: 30px auto 80px;
    padding: 0 20px;
}

.experts {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 30px;
}

.cont-expert {
    text-align: center;
    flex: 1;
    min-width: 200px;
    max-width: 280px;
}

.cont-expert img {
    width: 100%;
    max-width: 180px;
    height: 160px;
    object-fit: contain;
    margin: 0 auto 15px;
    display: block;
}

.n-expert {
    font-weight: 500;
    font-size: 18px;
    color: #000000;
    text-align: center;
}

/* Responsive adjustments */
@media screen and (max-width: 900px) {
    header, nav {
        padding: 15px 25px;
    }

    .leyenda {
        flex-direction: column-reverse;
        text-align: center;
        padding: 120px 20px 40px;
        gap: 30px;
    }

    .home h1 {
        font-size: 50px;
    }

    .icono {
        width: 70%;
        max-width: 320px;
    }

    #imagenes {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 600px) {
    .home h1 {
        font-size: 38px;
    }

    .home h2 {
        font-size: 18px;
    }

    .home h3 {
        font-size: 18px;
    }

    .icono {
        width: 80%;
    }
}