html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    color: white;
    background: black;
    font-family: "AllRounder", Arial, Helvetica, sans-serif;
    text-transform: uppercase;
    padding-top: 110px;
}

/* Navegación */

nav {
    width: 100%;
    background: #111;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 40px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

.logo-nav img {
    width: 120px;
    height: auto;
    display: block;
}

.menu {
    display: flex;
    gap: 40px;
    list-style: none;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.menu a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    transition: 0.3s;
    white-space: nowrap;
}

.menu a:hover {
    color: #d8b46c;
    border-bottom: 2px solid #d8b46c;
}

.contacto-btn {
    background: #d8b46c;
    color: black;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: bold;
    transition: 0.3s;
    white-space: nowrap;
}

.contacto-btn:hover {
    background: white;
    transform: scale(1.05);
}

section {
    padding: 50px 40px;
    scroll-margin-top: 110px;
    border-bottom: 3px solid black;
}

h2 {
    color: #d8b46c;
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 2rem;
}

h3 {
    margin-top: 20px;
    margin-bottom: 10px;
    color: white;
}

p {
    color: #ddd;
    margin-bottom: 15px;
    line-height: 1.7;
    max-width: 900px;
}

ul,
ol {
    margin-left: 25px;
    line-height: 1.6;
}

/* Inicio */

#inicio {
    text-align: center;
    background: black;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

#inicio h1 {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.portada {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
}

/* Misión */

#mision {
    background-image: url("../imagen/fondoinicio.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    border-top: 3px solid black;
    min-height: 100vh;
}

#mision p {
    color: white;
}

/* Producto */

#producto {
    background-image: url("../imagen/fondoproducto.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

#producto .producto-texto {
    width: 50%;
    max-width: 600px;
    text-align: left;
}

#producto .producto-texto p {
    max-width: 450px;
    line-height: 1.7;
}

#producto h2 {
    color: #d8b46c;
    margin-bottom: 20px;
}

#producto p {
    color: white;
}

/* Colores */

#colores {
    background-image: url("../imagen/fondocolor.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    padding-top: 25px;
    padding-bottom: 25px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

#colores h2 {
    color: #d8b46c;
}

#colores h3,
#colores p {
    color: white;
}

/* Cartilla */

#colores .escenario {
    width: 900px;
    height: 900px;
    position: relative;
    perspective: 2500px;
    margin: 40px auto;
    overflow: visible;
}

#colores .libro {
    width: 900px;
    height: 900px;
    position: relative;
    transform-style: preserve-3d;
    transform: translateX(-150px) scale(0.6666667);
    transform-origin: center center;
    transition: transform 1.3s cubic-bezier(.22, .61, .36, 1);
}

#colores .libro.abierto {
    transform: translateX(0) scale(1);
}

#colores .pagina-derecha {
    position: absolute;
    left: 450px;
    top: 0;
    width: 450px;
    height: 900px;
    overflow: hidden;
    background: white;
    border-radius: 0 10px 10px 0;
    box-shadow: 8px 10px 30px rgba(0, 0, 0, .20);
}

#colores .pagina-derecha img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: fill;
}

#colores .portada {
    position: absolute;
    left: 450px;
    top: 0;
    width: 450px;
    height: 900px;
    max-width: none;
    transform-origin: left center;
    transform-style: preserve-3d;
    transition: transform 1.3s cubic-bezier(.22, .61, .36, 1);
    z-index: 10;
    cursor: pointer;
}

#colores .libro.abierto .portada {
    transform: rotateY(-180deg);
    cursor: default;
}

#colores .cara {
    position: absolute;
    left: 0;
    top: 0;
    width: 450px;
    height: 900px;
    backface-visibility: hidden;
}

#colores .portada-frontal {
    background: transparent;
    border-radius: 0 10px 10px 0;
    overflow: visible;
    box-shadow: 8px 10px 30px rgba(0, 0, 0, .25);
}

#colores .portada-frontal img {
    width: 160%;
    height: 140%;
    display: block;
    object-fit: fill;
    background: transparent;
    position: relative;
    left: -27.5%;
    top: -20%;
}

#colores .portada-trasera {
    transform: rotateY(180deg);
    background: white;
    border-radius: 10px 0 0 10px;
    overflow: hidden;
    box-shadow: -8px 10px 30px rgba(0, 0, 0, .20);
}

#colores .portada-trasera img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: fill;
}

#colores #cerrar {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, .75);
    color: white;
    font-size: 27px;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: .3s;
    z-index: 30;
}

#colores .libro.abierto ~ #cerrar {
    opacity: 1;
    pointer-events: auto;
}

/* Simulador */

#simulador {
    background: black;
    color: white;
    min-height: 80vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 70px 40px;
    overflow: hidden;
}

#simulador h2 {
    color: #d8b46c;
    font-size: 2.2rem;
    margin: 0 0 50px;
    text-align: center;
}

.simulador-contenedor {
    width: 100%;
    max-width: 1250px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 35px;
}

.selector-color {
    width: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.selector-color label {
    color: white;
    font-weight: bold;
    font-size: .95rem;
    line-height: 1.4;
    text-align: center;
}

.selector-color select {
    width: 100%;
    padding: 15px;
    border: 2px solid #d8b46c;
    border-radius: 8px;
    background: #111;
    color: white;
    font-family: inherit;
    font-size: .9rem;
    cursor: pointer;
    outline: none;
}

.selector-color select:hover {
    border-color: white;
}

.selector-color select:focus {
    border-color: #d8b46c;
    box-shadow: 0 0 10px rgba(216, 180, 108, .5);
}

.selector-color select option:disabled {
    color: #555;
    background: #222;
}

.imagen-prenda {
    width: 190px;
    height: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 5px;
}

#camisa-muestra {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity .25s ease, transform .4s ease;
}

#camisa-muestra:hover {
    transform: scale(1.05);
}

.imagen-tinte {
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 5px;
}

#tinte-muestra {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity .25s ease, transform .4s ease;
}

#tinte-muestra:hover {
    transform: scale(1.05);
}

.simbolo {
    color: #d8b46c;
    font-size: 3rem;
    font-weight: bold;
    flex-shrink: 0;
}

.resultado-color {
    width: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.resultado-color p {
    color: white;
    font-weight: bold;
    font-size: .95rem;
    margin: 0 0 15px;
    text-align: center;
}

.resultado-imagen {
    width: 190px;
    height: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

#resultado-muestra {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity .25s ease, transform .4s ease;
}

#resultado-muestra:hover {
    transform: scale(1.05);
}

#resultado-texto {
    color: #d8b46c;
    font-size: 1.1rem;
    margin: 0;
    text-align: center;
}

.mensaje-compatible {
    color: #888;
    font-size: .7rem;
    line-height: 1.4;
    max-width: 280px;
    margin: 0;
    text-align: center;
}

.nota-simulador {
    margin-top: 45px;
    max-width: 750px;
    color: #aaa;
    font-size: .8rem;
    line-height: 1.6;
    text-align: center;
}

@media (max-width: 1000px) {
    .simulador-contenedor {
        gap: 20px;
    }

    .selector-color,
    .resultado-color {
        width: 230px;
    }

    .imagen-prenda,
    .resultado-imagen {
        width: 160px;
        height: 160px;
    }

    .imagen-tinte {
        width: 130px;
        height: 130px;
    }

    .simbolo {
        font-size: 2.5rem;
    }
}

/* Instrucciones */

#instrucciones {
    background-image: url("../imagen/instruccion.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    padding: 70px 10%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

#instrucciones .instrucciones-contenido {
    width: 50%;
    max-width: 900px;
    text-align: left;
}

#instrucciones .video-instrucciones {
    width: 25%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    left: -180px;
}

#instrucciones .video-instrucciones video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

#instrucciones h2 {
    color: #d8b46c;
    font-size: 2.2rem;
    margin-bottom: 30px;
}

#instrucciones h3 {
    color: #d8b46c;
    font-size: 1.2rem;
    margin-top: 20px;
    margin-bottom: 8px;
}

#instrucciones p {
    color: white;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 10px;
    max-width: 800px;
}

/* Elegirnos */

#elegirnos {
    background-image: url("../imagen/elegirnos.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    padding: 70px 10%;
    min-height: 100vh;
    text-align: left;
}

#elegirnos .elegirnos-grid {
    display: flex;
    width: 100%;
    margin: 0;
    text-align: left;
}

#elegirnos .bloque {
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
}

#elegirnos .texto {
    width: 100%;
    text-align: left;
}

#elegirnos h2 {
    color: #d8b46c;
    font-size: 2.2rem;
    margin-top: 30px;
    margin-bottom: 15px;
    text-align: left;
}

#elegirnos h3 {
    color: #d8b46c;
    font-size: 1.2rem;
    margin-top: 22px;
    margin-bottom: 8px;
    text-align: left;
}

#elegirnos p {
    color: white;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 12px;
    max-width: 500px;
    text-align: left;
}

#elegirnos ul {
    margin-left: 20px;
    line-height: 1.8;
    color: white;
    text-align: left;
}

#elegirnos li {
    margin-bottom: 10px;
}

/* Contacto */

#contacto {
    background: black;
    color: white;
    text-align: left;
    padding: 60px 7%;
}

#contacto h2 {
    color: #d8b46c;
    font-size: 40px;
    margin-top: 30px;
    margin-bottom: 15px;
    text-align: left;
}

#contacto p {
    color: white;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 600px;
    text-align: left;
}

.logo-contacto {
    width: 130px;
    height: auto;
    display: inline-block;
    vertical-align: middle;
    margin-left: 8px;
}

.contacto-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 35px;
    flex-wrap: wrap;
}

.contacto-links a img {
    width: 65px;
    height: 65px;
    object-fit: contain;
    transition: .3s;
}

.contacto-links a img:hover {
    transform: scale(1.15);
}

@media (max-width: 900px) {
    #elegirnos {
        padding: 60px 8%;
        text-align: left;
    }

    #elegirnos .elegirnos-grid {
        flex-direction: column;
        gap: 40px;
        width: 100%;
        margin: 0;
        text-align: left;
    }

    #elegirnos .bloque {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        text-align: left;
    }

    #elegirnos .texto {
        width: 100%;
        text-align: left;
    }

    #elegirnos h2 {
        font-size: 1.8rem;
        text-align: left;
    }

    #elegirnos h3 {
        font-size: 1.15rem;
        text-align: left;
    }

    #elegirnos p {
        max-width: 600px;
        margin-left: 0;
        margin-right: 0;
        text-align: left;
    }

    #elegirnos ul {
        text-align: left;
        margin-left: 20px;
    }

    #elegirnos .imagen {
        width: 100%;
        justify-content: flex-start;
    }

    #elegirnos .imagen img {
        width: 120px;
    }

    #contacto {
        padding: 50px 7%;
        text-align: left;
    }

    #contacto h2 {
        font-size: 32px;
        text-align: left;
    }

    #contacto p {
        text-align: left;
    }

    .logo-contacto {
        width: 110px;
    }
}

@media (max-width: 800px) {
    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    section {
        width: 100%;
        max-width: 100%;
        padding-left: 20px;
        padding-right: 20px;
    }

    nav {
        width: 100%;
        padding: 10px 15px;
        flex-wrap: wrap;
        gap: 8px;
    }

    .logo-nav img {
        width: 85px;
    }

    .menu {
        position: static;
        transform: none;
        display: flex;
        gap: 12px;
        margin: 0 auto;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
    }

    .menu a {
        font-size: 11px;
    }

    .contacto-btn {
        padding: 8px 13px;
        font-size: 11px;
        white-space: nowrap;
    }

    #inicio {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    #inicio .portada {
        width: 100%;
        max-width: 100%;
        height: auto;
    }

    #mision {
        width: 100%;
        max-width: 100%;
        min-height: auto;
        padding: 60px 25px;
        background-size: cover;
        background-position: center;
    }

    #mision h2 {
        font-size: 1.6rem;
    }

    #mision p {
        font-size: .9rem;
    }

    #producto {
        width: 100%;
        max-width: 100%;
        min-height: auto;
        padding: 60px 25px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        overflow: hidden;
    }

    #producto .producto-texto {
        width: 100%;
        max-width: 100%;
        text-align: center;
    }

    #producto .producto-texto p {
        max-width: 100%;
    }

    #colores {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
        padding: 40px 10px;
    }

    #colores h2 {
        font-size: 1.6rem;
        text-align: center;
    }

    #colores h3,
    #colores p {
        text-align: center;
    }

    #colores .escenario {
        width: 100%;
        max-width: 450px;
        height: 450px;
        min-height: 450px;
        margin: 25px auto;
        perspective: 1200px;
        display: flex;
        justify-content: center;
        align-items: center;
        overflow: visible;
    }

    #colores .libro {
        width: 450px;
        height: 450px;
        transform: translateX(-75px) scale(.5);
        transform-origin: center center;
    }

    #colores .libro.abierto {
        transform: translateX(0) scale(.5);
    }

    #colores .pagina-derecha,
    #colores .portada {
        left: 225px;
        width: 225px;
        height: 450px;
    }

    #colores .cara {
        width: 225px;
        height: 450px;
    }

    #colores .portada-frontal img {
        width: 140%;
        height: 140%;
        left: -20%;
        top: -20%;
    }

    #colores #cerrar {
        width: 36px;
        height: 36px;
        font-size: 22px;
        top: 10px;
        right: 10px;
    }

    #simulador {
        width: 100%;
        max-width: 100%;
        min-height: auto;
        overflow: hidden;
        padding: 50px 20px;
    }

    #simulador h2 {
        width: 100%;
        font-size: 1.6rem;
        margin-bottom: 35px;
    }

    .simulador-contenedor {
        width: 100%;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 25px;
    }

    .selector-color {
        width: 100%;
        max-width: 320px;
    }

    .selector-color label {
        width: 100%;
        text-align: center;
    }

    .selector-color select {
        width: 100%;
    }

    .imagen-prenda {
        width: 160px;
        height: 160px;
    }

    .imagen-tinte {
        width: 140px;
        height: 140px;
    }

    .simbolo {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        font-size: 2.5rem;
        line-height: 1;
    }

    .resultado-color {
        width: 100%;
        max-width: 320px;
    }

    .resultado-imagen {
        width: 160px;
        height: 160px;
    }

    #resultado-muestra {
        width: 100%;
        height: 100%;
    }

    .nota-simulador {
        font-size: .75rem;
        max-width: 320px;
    }

    #instrucciones {
        width: 100%;
        max-width: 100%;
        padding: 45px 25px;
        flex-direction: column;
        gap: 40px;
        overflow: hidden;
    }

    #instrucciones .instrucciones-contenido {
        width: 100%;
        max-width: 100%;
    }

    #instrucciones .video-instrucciones {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
        left: 0;
    }

    #instrucciones .video-instrucciones video {
        width: 100%;
        max-width: 350px;
    }

    #instrucciones h2 {
        font-size: 1.6rem;
    }

    #instrucciones h3 {
        font-size: 1.05rem;
    }

    #instrucciones p {
        font-size: .9rem;
    }

    #elegirnos {
        width: 100%;
        max-width: 100%;
        padding: 50px 25px;
        overflow: hidden;
    }

    #elegirnos .elegirnos-grid,
    #elegirnos .bloque,
    #elegirnos .texto {
        width: 100%;
        max-width: 100%;
    }

    #elegirnos p {
        max-width: 100%;
    }

    #contacto {
        width: 100%;
        max-width: 100%;
        padding: 50px 25px;
        overflow: hidden;
    }

    .contacto-links {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    nav {
        padding: 9px 10px;
    }

    .logo-nav img {
        width: 75px;
    }

    .menu {
        gap: 8px;
    }

    .menu a {
        font-size: 9px;
    }

    .contacto-btn {
        padding: 7px 10px;
        font-size: 9px;
    }

    section {
        padding-left: 18px;
        padding-right: 18px;
    }

    #mision {
        padding: 50px 20px;
    }

    #mision h2 {
        font-size: 1.4rem;
    }

    #mision p {
        font-size: .85rem;
        line-height: 1.6;
    }

    #producto {
        padding: 50px 20px;
    }

    #producto h2 {
        font-size: 1.4rem;
    }

    #producto p {
        font-size: .85rem;
    }

    #colores {
        padding: 35px 8px;
    }

    #colores h2 {
        font-size: 1.4rem;
    }

    #colores .escenario {
        height: 350px;
        min-height: 350px;
        max-width: 100%;
    }

    #colores .libro {
        transform: translateX(-55px) scale(.39);
    }

    #colores .libro.abierto {
        transform: translateX(0) scale(.39);
    }

    #simulador {
        padding: 45px 20px;
    }

    #simulador h2 {
        font-size: 1.4rem;
    }

    .selector-color {
        max-width: 290px;
    }

    .selector-color label {
        font-size: .85rem;
    }

    .selector-color select {
        padding: 13px;
        font-size: .85rem;
    }

    .imagen-prenda {
        width: 140px;
        height: 140px;
    }

    .imagen-tinte {
        width: 120px;
        height: 120px;
    }

    .simbolo {
        font-size: 2.2rem;
    }

    .resultado-color {
        max-width: 290px;
    }

    .resultado-imagen {
        width: 140px;
        height: 140px;
    }

    #resultado-muestra {
        width: 100%;
        height: 100%;
    }

    #resultado-texto {
        font-size: 1rem;
    }

    .mensaje-compatible {
        font-size: .65rem;
    }

    .nota-simulador {
        font-size: .7rem;
        max-width: 290px;
    }

    #instrucciones {
        padding: 45px 20px;
    }

    #instrucciones h2 {
        font-size: 1.4rem;
    }

    #instrucciones h3 {
        font-size: 1rem;
    }

    #instrucciones p {
        font-size: .85rem;
        line-height: 1.5;
    }

    #instrucciones .video-instrucciones video {
        width: 100%;
        max-width: 320px;
    }

    #elegirnos {
        padding: 45px 20px;
    }

    #elegirnos h2 {
        font-size: 1.4rem;
    }

    #elegirnos h3 {
        font-size: 1rem;
    }

    #elegirnos p {
        font-size: .85rem;
        line-height: 1.5;
        max-width: 100%;
    }

    #elegirnos ul {
        font-size: .85rem;
        line-height: 1.6;
        margin-left: 20px;
    }

    #contacto {
        padding: 45px 20px;
    }

    #contacto h2 {
        font-size: 27px;
    }

    #contacto p {
        font-size: .85rem;
    }

    .contacto-links {
        gap: 20px;
        justify-content: center;
    }

    .contacto-links a img {
        width: 55px;
        height: 55px;
    }

    .logo-contacto {
        width: 100px;
    }
}

@media (max-width: 450px) {
    nav {
        padding: 8px;
        gap: 5px;
    }

    .logo-nav img {
        width: 65px;
    }

    .menu {
        gap: 6px;
    }

    .menu a {
        font-size: 8px;
    }

    .contacto-btn {
        padding: 6px 8px;
        font-size: 8px;
    }

    h2 {
        font-size: 1.3rem;
    }

    #colores .escenario {
        height: 320px;
        min-height: 320px;
    }

    #colores .libro {
        transform: translateX(-48px) scale(.35);
    }

    #colores .libro.abierto {
        transform: translateX(0) scale(.35);
    }

    #simulador {
        padding-left: 10px;
        padding-right: 10px;
    }
}