/* Viewer principal */
#viewer {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Overlays para simular botones */
/* Posiciones */

.whatsapp-overlay {
    position: absolute;
    cursor: pointer;
    z-index: 99999;
    display: block;
}

.link-overlay {
    position: absolute;
    z-index: 99999;
    cursor: pointer;
    display: block;
}

/* Colores */

.email-overlay,
.link-overlay,
.whatsapp-overlay {
    background: transparent;
    border: none;
}

/* Otras configuraciones */

.svg-wrapper {
    position: relative;
}

.svg-page {
    pointer-events: none;
    position: relative;
    z-index: 0 !important;
}

/*
.img-page {
    pointer-events: none;
    position: relative;
    z-index: 0;
}
.img-page {
    position: relative;
    z-index: 0;
    pointer-events: none;
    display: block;
}
*/
/*
.img-page {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
*/
.img-page {
    width: 100%;
    height: auto;
    object-fit: contain;
    pointer-events: none;
    position: relative;
    z-index: 0;
    display: block;
}




/* Ajuste para pantallas medianas */
@media (max-width: 1400px) {
    #viewer {
        margin-left: 80px;   /* coincide con menú compacto */
    }
}

/* Ajuste para móvil */
@media (max-width: 900px) {
    #viewer {
        margin-left: 0;
    }
}

.email-overlay,
.whatsapp-overlay,
.link-overlay,
.form-overlay {
    position: absolute;
    z-index: 999999; /* más alto aún */
}

.email-overlay,
.link-overlay,
.whatsapp-overlay {
    background: transparent;
    border: none;
}

.form-overlay {
    background: rgba(255, 255, 255, 0.85);
    border: 2px solid #0077cc;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 18px;
    color: #333;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.form-overlay[type="button"],
.form-overlay.button {
    background: #0077cc;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    transition: transform 0.15s ease, background 0.2s ease;
}


/* Campos del formulario (4-2_diagnostico) */

.form-overlay {
    background: #ffffff;
    border: 1px solid #cccccc;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 18px;
    color: #333333;
    box-sizing: border-box;
    cursor: text; /* SOLO para inputs y textarea */
}

/* Botón del formulario */
button.form-overlay {
    background: #0077cc;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer; /* ← AQUÍ SE ACTIVA EL CURSOR DE BOTÓN */
    padding: 12px 20px;
    box-sizing: border-box;
    transition: background 0.2s ease, transform 0.15s ease;
}

button.form-overlay:hover {
    background: #005fa3;
    transform: scale(1.02);
}

.form-error {
    color: #d60000;
    font-size: 14px;
    margin-top: 4px;
    display: none;
    font-weight: 600;
}

