@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:ital,wght@0,100..700;1,100..700&family=Limelight&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    height: 100dvh;   /* 👈 fallback moderno */
    overflow: hidden;
    font-family: montserrat;
}

/* Fondo oscuro suavizado */
#welcomeOverlay {
    position: fixed;
    z-index: 200; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.4s ease;
}

/* Caja de mensaje */
#welcomeBox {
    width: 80%;
    max-width: 420px;
    background: #ffffffc5;
    backdrop-filter: blur(4px);
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    font-family: montserrat;
    box-shadow: 0 4px 18px rgba(0,0,0,0.3);
}

#welcomeBox img {
    width: 20%;
}

/* Texto título */
#welcomeBox h2 {
    margin-top: 0;
    font-size: 22px;
    font-weight: bold;
    color: #222;
}

/* Texto normal */
#welcomeBox p {
    font-size: 16px;
    color: #080808;
    margin: 15px 0;
}

/* Botón */
#welcomeBtn {
    padding: 10px 20px;
    background: #5a5a5a;
    font-family: montserrat;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.25s ease;
}

#welcomeBtn:hover {
    background: #580000;
}


#pano {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;   /* 👈 CLAVE para Android */
    background: black;
}

.hotspot {
    padding: 6px; 
    border-radius: 50%; 
    cursor: pointer; 
    position: relative; 
    text-align: center;
}

.hotspot img { 
    transition: transform 0.3s ease; 
    transform-origin: center center; 
}

.hotspot:hover img { 
    transform: rotate(-90deg) scale(1.1); 
}

.hotspot-label {
    position: absolute;
    top: 50%;
    left: 50px;               /* separación horizontal del icono */
    transform: translateY(-50%);
    padding: 3px 10px; 
    font-family:'Arial', sans-serif; 
    font-size: 14px; 
    font-weight: bold;
    color: white; 
    background: rgba(0,0,0,0.65); 
    border-radius: 6px;
    white-space: nowrap; 
    opacity: 0; 
    transition: opacity 0.25s ease, transform 0.25s ease;
}


.hotspot:hover .hotspot-label { 
    opacity: 1; 
    transform: translateY(-50%); 
}

#homeButton {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 55px;
    height: 55px;
    background: rgba(0,0,0,0.55);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    backdrop-filter: blur(4px);
    transition: transform 0.2s ease, background 0.2s ease;
}

#homeButton img {
    width: 32px;
    height: 32px;
    filter: brightness(1000%);
}

#homeButton:hover {
    transform: scale(1.1);
    background: rgba(0,0,0,0.75);
}

/* Menu desplegable */
#homeMenu {
    list-style: none;
    padding: 10px;
    margin: 0;
    position: absolute;
    top: 60px;
    right: 0;
    background: rgba(0,0,0,0.85);
    border-radius: 10px;
    display: none; /* se mostrará al hacer hover */
    flex-direction: column;
    min-width: 160px;
}

#homeMenu li {
    margin: 5px 0;
}

#homeMenu li a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    display: block;
    padding: 6px 10px;
    border-radius: 6px;
    transition: background 0.2s;
}

#homeMenu li a:hover {
    background: rgba(43, 255, 0, 0.719);
}

.modal {
    display: none;
    position: fixed;
    font-family:'Arial', sans-serif;
    z-index: 100;
    left: 0; 
    top: 0;
    width: 100%; 
    height: 100%;
    background: rgba(0,0,0,0.6);
    overflow: auto; /* 👈 permite scroll de toda la pantalla */
}

.modal-content {
    width: 60%;
    max-width: 900px;
    font-family: montserrat;
    background: rgba(230, 230, 230,0.5);
    margin: 40px auto; /* 👈 margen superior menor */
    padding: 15px;
    border-radius: 12px;
    max-height: 90vh; /* 👈 evita que el modal crezca demasiado */
    overflow-y: auto; /* 👈 SCROLL INTERNO SOLO PARA LA FICHA */
    backdrop-filter: blur(4px);
    color:rgb(77, 0, 0);
}

.modal-content h2 {
    text-align: center;
    width: 100%;
    margin-top: 15px;
    margin-bottom: 10px;
    font-size: 30px;
    font-weight: bold;
}

/* Contenedor ficha técnica */
#productDesc {
    border-radius: 10px;
    padding: 5px 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    margin-top: 15px;
    font-size: 15px;
    font-family: montserrat;
    line-height: 1.6;
    color: #333;
    border: 2px solid transparent;
    background: rgba(230, 230, 230,0.1);
}

/* Cada línea de la ficha con icono */
#productDesc p {
    display: flex;
    align-items: center;
    margin: 8px 0;
    padding-left: 15px;
    position: relative;
    border-radius: 10px;
    border: 0.5px solid rgb(136, 136, 136);
    background: rgba(230, 230, 230, 0.384);
}

/* Icono antes de cada punto */
#productDesc p::before {
    /*content: "•"; /* emojis o iconos */
    position: absolute;
    left: 0;
    color: #580000; /* burdeos principal */
    font-weight: bold;
}

/* Títulos de campo en negrita */
#productDesc p strong {
    width: 130px; /* ancho fijo para alinear los valores */
    display: inline-block;
    color: rgb(77, 0, 0);
    /*border:1px solid rgb(136, 136, 136);*/
    padding: 5px 10px;
    margin-right: 20px;
}

/* Efecto hover sobre la ficha */
#productDesc:hover {
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
    transform: translateY(-2px);
    transition: all 0.25s ease;
}

/* Scroll si la ficha es muy larga */
.modal-content {
    max-height: 90vh;
    overflow-y: auto;
}

#colorSelector {
    margin-top: 10px;
    padding: 10px;
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
    text-align: center;
}

#ralButtons, #lonaButtons {
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            gap: 5px;
            margin: 5px 0;
        }

        .ral-btn {
            width: 35px;
            height: 35px;
            border-radius: 30px;
            cursor: pointer;
            border: 2px solid #555;
        }

        .lona-btn {
            width: 35px;
            height: 35px;
            border-radius: 6px;
            cursor: pointer;
            border: 2px solid #555;
        }

        /* Botones de patrón para la lona */
        .pattern-btn {
            width: 35px;
            height: 35px;
            border-radius: 6px;
            cursor: pointer;
            border: 2px solid #555;
            position: relative;
            display: flex;
        }

        .pattern-btn span {
            flex: 1;
            height: 100%;
        }

        /* Centrar todo dentro del selector de colores */
        #colorSelector h3 {
            text-align: center;
            margin-bottom: 5px;
        }

.close { 
    float: right; 
    cursor: pointer; 
    font-size: 24px; 
}

/* Estilo botón Descargar PDF */
#downloadPDF {
    background-color: #e7e7e7; /* azul principal */
    display: block;               /* necesario para margin auto */
    margin: 20px auto 0 auto;     /* centrado horizontal y separación arriba */
    color: rgb(107, 107, 107);              /* texto blanco */
    border: none;
    padding: 12px 25px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 8px;        /* esquinas redondeadas */
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
   
}

/* Hover: efecto al pasar el ratón */
#downloadPDF:hover {
    background-color: #580000; /* azul más oscuro */
    transform: translateY(-2px); /* pequeño levantamiento */
    box-shadow: 0 6px 8px rgba(0,0,0,0.3);
    color:#e7e7e7;
}

/* Active: efecto al hacer click */
#downloadPDF:active {
    transform: translateY(1px);
    box-shadow: 0 3px 4px rgba(0,0,0,0.2);
}

@media (max-width: 600px) {
    .hotspot img {
        width: 30px;
        height: 30px;
    }
    .hotspot-label {
        font-size: 12px;
        top: -25px;
    }
    .modal-content {
        width: 90%;
        margin: 20px auto;
        padding: 15px;
    }
}

